Path: blob/1.0-develop/resources/views/admin/users/new.blade.php
7461 views
@extends('layouts.admin')12@section('title')3Create User4@endsection56@section('content-header')7<h1>Create User<small>Add a new user to the system.</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li><a href="{{ route('admin.users') }}">Users</a></li>11<li class="active">Create</li>12</ol>13@endsection1415@section('content')16<div class="row">17<form method="post">18<div class="col-md-6">19<div class="box box-primary">20<div class="box-header with-border">21<h3 class="box-title">Identity</h3>22</div>23<div class="box-body">24<div class="form-group">25<label for="email" class="control-label">Email</label>26<div>27<input type="text" autocomplete="off" name="email" value="{{ old('email') }}" class="form-control" />28</div>29</div>30<div class="form-group">31<label for="username" class="control-label">Username</label>32<div>33<input type="text" autocomplete="off" name="username" value="{{ old('username') }}" class="form-control" />34</div>35</div>36<div class="form-group">37<label for="name_first" class="control-label">Client First Name</label>38<div>39<input type="text" autocomplete="off" name="name_first" value="{{ old('name_first') }}" class="form-control" />40</div>41</div>42<div class="form-group">43<label for="name_last" class="control-label">Client Last Name</label>44<div>45<input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" />46</div>47</div>48<div class="form-group">49<label class="control-label">Default Language</label>50<div>51<select name="language" class="form-control">52@foreach($languages as $key => $value)53<option value="{{ $key }}" @if(config('app.locale') === $key) selected @endif>{{ $value }}</option>54@endforeach55</select>56<p class="text-muted"><small>The default language to use when rendering the Panel for this user.</small></p>57</div>58</div>59</div>60<div class="box-footer">61{!! csrf_field() !!}62<input type="submit" value="Create User" class="btn btn-success btn-sm">63</div>64</div>65</div>66<div class="col-md-6">67<div class="box">68<div class="box-header with-border">69<h3 class="box-title">Permissions</h3>70</div>71<div class="box-body">72<div class="form-group col-md-12">73<label for="root_admin" class="control-label">Administrator</label>74<div>75<select name="root_admin" class="form-control">76<option value="0">@lang('strings.no')</option>77<option value="1">@lang('strings.yes')</option>78</select>79<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>80</div>81</div>82</div>83</div>84</div>85<div class="col-md-6">86<div class="box">87<div class="box-header with-border">88<h3 class="box-title">Password</h3>89</div>90<div class="box-body">91<div class="alert alert-info">92<p>Providing a user password is optional. New user emails prompt users to create a password the first time they login. If a password is provided here you will need to find a different method of providing it to the user.</p>93</div>94<div id="gen_pass" class=" alert alert-success" style="display:none;margin-bottom: 10px;"></div>95<div class="form-group">96<label for="pass" class="control-label">Password</label>97<div>98<input type="password" name="password" class="form-control" />99</div>100</div>101</div>102</div>103</div>104</form>105</div>106@endsection107108@section('footer-scripts')109@parent110<script>$("#gen_pass_bttn").click(function (event) {111event.preventDefault();112$.ajax({113type: "GET",114url: "/password-gen/12",115headers: {116'X-CSRF-TOKEN': '{{ csrf_token() }}'117},118success: function(data) {119$("#gen_pass").html('<strong>Generated Password:</strong> ' + data).slideDown();120$('input[name="password"], input[name="password_confirmation"]').val(data);121return false;122}123});124return false;125});126</script>127@endsection128129130