add new frontend

This commit is contained in:
TimmensOne
2023-04-06 12:17:42 +02:00
parent 50acb5fd41
commit 64c64c001b
18 changed files with 887 additions and 398 deletions

View File

@@ -1,25 +1,51 @@
@extends('layout')
@section('content')
<h1>Login Form</h1>
<form method="POST" action="/users/authenticate">
@csrf
<label for="rz_username">RZ-Username:</label>
<input type="text" id="rz_username" name="rz_username" value="{{ old('device_id') }}" required>
@error('rz_username')
<p>{{ $message }}</p>
@enderror
<br />
<label for="hashed_password">Password:</label>
<input type="password" id="hashed_password" name="password" required>
@error('hashed_password')
<p>{{ $message }}</p>
@enderror
<br />
<input type="submit" value="Login">
<div>
<p>Don't have an account?</p>
<a href="/register">Register</a>
<div class="columns is-centered">
<div class="column is-4">
<div class="box">
<h3 class="title is-3 has-text-centered">Login Form</h3>
<form method="POST" action="/users/authenticate">
@csrf
<div class="field">
<label for="rz_username" class="label">RZ-Username</label>
<div class="control">
<input class="input" type="text" id="rz_username" placeholder="RZ-Username"
name="rz_username" value="{{ old('device_id') }}" required />
</div>
@error('rz_username')
<p class="help is-danger">{{ $message }}</p>
@enderror
</div>
<div class="field">
<label for="hashed_password" class="label">Password</label>
<div class="control">
<input class="input" type="password" id="hashed_password" name="password" required />
</div>
@error('hashed_password')
<p class="help is-danger">{{ $message }}</p>
@enderror
</div>
<div class="field is-grouped is-grouped-centered">
<div class="control">
<button class="button is-success" type="submit">Login</button>
</div>
<div class="control">
<a class="button is-success is-light" href="/home">Cancel</a>
</div>
</div>
</form>
<div class="has-text-centered">
<p>Don't have an account?</p>
<a href="/register">Register</a>
</div>
</div>
</div>
</form>
@endsection
</div>
@endsection