Changeset d795fa6 for resources/views/dashboard/users/edit.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/edit.blade.php
r120759b rd795fa6 28 28 <div class="card-body"> 29 29 <h6 class="card-title">User account data</h6> 30 <form action="{{ route("dashboard.users.edit", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' >30 <form action="{{ route("dashboard.users.edit", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data' class="needs-validation" novalidate> 31 31 @method("patch") 32 32 @csrf … … 35 35 <div class="form-group"> 36 36 <label>Name</label> 37 <input type="text" name="name" value="{{ $user->name }}" class="form-control" placeholder="Name" required> 37 <input type="text" name="name" value="{{ $user->name }}" minlength="2" maxlength="30" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required> 38 <div class="invalid-feedback"> 39 Please enter only letters and spaces with length between [2, 30] 40 </div> 38 41 </div> 39 42 </div> … … 41 44 <div class="form-group"> 42 45 <label>Surname</label> 43 <input type="text" name="surname" value="{{$user->surname}}" class="form-control" placeholder="Surname" required> 46 <input type="text" name="surname" value="{{$user->surname}}" minlength="2" maxlength="30" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required> 47 <div class="invalid-feedback"> 48 Please enter only letters and spaces with length between [2, 30] 49 </div> 44 50 </div> 45 51 </div> … … 49 55 <div class="form-group"> 50 56 <label class="form-label">Username</label> 51 <input type="text" name="username" value="{{ $user->username }}" class="form-control" placeholder="Username" required> 57 <input type="text" name="username" value="{{ $user->username }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required> 58 <div class="invalid-feedback"> 59 Please enter characters with length between [5, 30] 60 </div> 52 61 </div> 53 62 </div> … … 56 65 <label class="form-label">Role</label> 57 66 58 <select class="form-control" name="userRole" >67 <select class="form-control" name="userRole" required> 59 68 @foreach($roles as $role) 60 69 <option value="{{ $role->id }}" {{ $user->role_id == $role->id ? "selected" : "" }}>{{ $role->name }}</option> … … 68 77 <div class="form-group"> 69 78 <label>Email</label> 70 <input type="email" name="email" value="{{ $user->email }}" class="form-control" placeholder="E-mail" required> 79 <input type="email" name="email" value="{{ $user->email }}" maxlength="50" class="form-control" placeholder="E-mail" required> 80 <div class="invalid-feedback"> 81 Please enter a valid email address with length <=50 82 </div> 71 83 </div> 72 84 </div> 73 85 <div class="col-md-6"> 74 86 <div class="form-group"> 75 <label class="form-label">Mobile Number</label> 76 <input type="text" name="mobile_number" value="{{ $user->mobile_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 87 <label class="form-label">Phone Number</label> 88 <input type="text" name="phone_number" value="{{ $user->phone_number }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 89 <div class="invalid-feedback"> 90 Please enter your phone number 91 </div> 77 92 </div> 78 93 </div> … … 83 98 <label>Avatar</label> 84 99 <input type="file" name="avatar" value="{{ $user->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.