FEATURE #1359: registration works now
Some basic form of registration is done. It does not look very nice, however I was able to create new user. This part will need a lots of other improvements, however new user was created. Yay!
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{route('users.new')}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.name')
|
||||
<input type="text" placeholder="@lang('admin/userManagement.name')" name="name">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.email')
|
||||
|
||||
<input type="text" name="email" placeholder="somebody@example.com">
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.password')
|
||||
|
||||
<input type="text" name="password">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<div>
|
||||
@lang('admin/userManagement.roles')
|
||||
|
||||
@foreach($roles as $role => $translation)
|
||||
<label>
|
||||
@lang($translation)
|
||||
<input type="radio" name="role" value="{{$role}}">
|
||||
</label>
|
||||
@endforeach
|
||||
|
||||
|
||||
@if ($errors->has('role'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('role') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<input type="submit" value="@lang('admin/userManagement.register')">
|
||||
</label>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
Reference in New Issue
Block a user