@extends('layouts.app') @section('template_title') {!! trans('usersmanagement.create-new-user') !!} @endsection @section('template_fastload_css') @endsection @section('content')
{!! trans('usersmanagement.create-new-user') !!}
{!! Form::open(array('route' => 'users.store', 'method' => 'POST', 'role' => 'form', 'class' => 'needs-validation')) !!} {!! csrf_field() !!}
{!! Form::label('email', trans('forms.create_user_label_email'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('email', NULL, array('id' => 'email', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_email'))) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('name', trans('forms.create_user_label_username'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('name', NULL, array('id' => 'name', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_username'))) !!}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('tgl_lahir', trans('forms.create_user_label_tgllahir'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('tgl_lahir', NULL, array('id' => 'tgl_lahir', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_tgllahir'))) !!}
@if ($errors->has('first_name')) {{ $errors->first('tgl_lahir') }} @endif
{!! Form::label('tgl_join', trans('forms.create_user_label_tgljoin'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('tgl_join', NULL, array('id' => 'tgl_join', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_tgljoin'))) !!}
@if ($errors->has('tgl_join')) {{ $errors->first('tgl_join') }} @endif
{!! Form::label('role', trans('forms.create_user_label_role'), array('class' => 'col-md-3 control-label')); !!}
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
{!! Form::label('password', trans('forms.create_user_label_password'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::password('password', array('id' => 'password', 'class' => 'form-control ', 'placeholder' => trans('forms.create_user_ph_password'))) !!}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('password_confirmation', trans('forms.create_user_label_pw_confirmation'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_pw_confirmation'))) !!}
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
{!! Form::button(trans('forms.create_user_button_text'), array('class' => 'btn btn-success margin-bottom-1 mb-1 float-right','type' => 'submit' )) !!} {!! Form::close() !!}
{{--
{!! Form::open(array('action' => 'UsersManagementController@store')) !!}
{!! Form::label('name', trans('forms.create_user_label_username'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('name', NULL, array('id' => 'name', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_username'))) !!}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('email', trans('forms.create_user_label_email'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('email', NULL, array('id' => 'email', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_email'))) !!}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('tgl_lahir', trans('forms.create_user_label_tgllahir'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('tgl_lahir', NULL, array('id' => 'tgl_lahir', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_tgllahir'))) !!}
@if ($errors->has('first_name')) {{ $errors->first('tgl_lahir') }} @endif
{!! Form::label('tgl_join', trans('forms.create_user_label_tgljoin'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::text('tgl_join', NULL, array('id' => 'tgl_join', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_tgljoin'))) !!}
@if ($errors->has('tgl_join')) {{ $errors->first('tgl_join') }} @endif
{!! Form::label('role', trans('forms.create_user_label_role'), array('class' => 'col-md-3 control-label')); !!}
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
{!! Form::label('password', trans('forms.create_user_label_password'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::password('password', array('id' => 'password', 'class' => 'form-control ', 'placeholder' => trans('forms.create_user_ph_password'))) !!}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('password_confirmation', trans('forms.create_user_label_pw_confirmation'), array('class' => 'col-md-3 control-label')); !!}
{!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_pw_confirmation'))) !!}
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
{!! Form::button(' ' . trans('forms.create_user_button_text'), array('class' => 'btn btn-success btn-flat margin-bottom-1 pull-right','type' => 'submit', )) !!} {!! Form::close() !!}
--}}
@endsection @section('footer_scripts') @endsection