Changeset d795fa6 for resources/views/dashboard/users/create.blade.php
- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/users/create.blade.php
r120759b rd795fa6 27 27 <div class="card"> 28 28 <div class="card-body"> 29 <h6 class="card-title"> User account data</h6>30 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' >29 <h6 class="card-title">Create user</h6> 30 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' class="needs-validation" novalidate> 31 31 @csrf 32 32 <div class="row"> … … 34 34 <div class="form-group"> 35 35 <label>Name</label> 36 <input type="text" name="name" value="{{ old('name') }}" class="form-control" placeholder="Name" required> 36 <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required> 37 <div class="invalid-feedback"> 38 Please enter only letters and spaces with length between [2, 25] 39 </div> 37 40 </div> 38 41 </div> … … 40 43 <div class="form-group"> 41 44 <label>Surname</label> 42 <input type="text" name="surname" value="{{ old('surname') }}" class="form-control" placeholder="Surname" required> 45 <input type="text" name="surname" value="{{ old('surname') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required> 46 <div class="invalid-feedback"> 47 Please enter only letters and spaces with length between [2, 25] 48 </div> 43 49 </div> 44 50 </div> … … 48 54 <div class="form-group"> 49 55 <label class="form-label">Username</label> 50 <input type="text" name="username" value="{{ old('username') }}" class="form-control" placeholder="Username" required> 56 <input type="text" name="username" value="{{ old('username') }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required> 57 <div class="invalid-feedback"> 58 Please enter characters with length between [5, 30] 59 </div> 51 60 </div> 52 61 </div> … … 54 63 <div class="form-group"> 55 64 <label class="form-label">Role</label> 56 <select class="form-control" name="userRole ">65 <select class="form-control" name="userRole required"> 57 66 @foreach ($roles as $role) 58 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ ucfirst($role->name)}}</option>67 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ $role->name }}</option> 59 68 @endforeach 60 69 </select> … … 67 76 <label>Email</label> 68 77 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required> 78 <div class="invalid-feedback"> 79 Please enter a valid email address 80 </div> 69 81 </div> 70 82 </div> 71 83 <div class="col-md-6"> 72 84 <div class="form-group"> 73 <label class="form-label">Mobile Number</label> 74 <input type="text" name="mobile_number" value="{{ old('mobile_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 85 <label class="form-label">Phone Number</label> 86 <input type="text" name="phone_number" value="{{ old('phone_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 87 <div class="invalid-feedback"> 88 Please enter your phone number 89 </div> 75 90 </div> 76 91 </div> … … 83 98 <label>Avatar</label> 84 99 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*"> 100 <div class="invalid-feedback"> 101 Please upload a valid image file 102 </div> 85 103 </div> 86 104 </div>
Note:
See TracChangeset
for help on using the changeset viewer.