Changeset 65fafc4
- Timestamp:
- 10/27/21 00:19:36 (3 years ago)
- Branches:
- develop, master
- Children:
- 9c3c224
- Parents:
- 7614db3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/users/index.blade.php
r7614db3 r65fafc4 34 34 </div> 35 35 36 {{-- <div class="row">--}} 36 <div class="row"> 37 37 <div class="col-md-12"> 38 38 <div class="card"> … … 115 115 </tr> 116 116 117 <div class="col-md-12"> 117 118 <div class="modal fade" id="editModal_{{$user->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 118 119 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> … … 206 207 </div> 207 208 </div> 208 209 </div> 210 211 <div class="col-md-6"> 209 212 <div class="modal fade" id="deleteModal_{{$user->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 210 213 <div class="modal-dialog modal-dialog-centered" role="document"> … … 233 236 </div> 234 237 </div> 235 236 <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-hidden="true">237 <div class="modal-dialog modal-dialog-centered modal-lg" role="document">238 <div class="modal-content">239 <div class="modal-header">240 <h5 class="modal-title" id="exampleModalCenterTitle">Create user</h5>241 <button type="button" class="close" data-dismiss="modal" aria-label="Close">242 <i class="ti-close"></i>243 </button>244 </div>245 <div class="modal-body">246 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'>247 @csrf248 <div class="row">249 <div class="col-md-6">250 <div class="form-group">251 <label>Name</label>252 <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required>253 </div>254 </div>255 <div class="col-md-6">256 <div class="form-group">257 <label>Surname</label>258 <input type="text" name="surname" value="{{ old('surname') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required>259 </div>260 </div>261 </div>262 <div class="row">263 <div class="col-md-6">264 <div class="form-group">265 <label class="form-label">Username</label>266 <input type="text" name="username" value="{{ old('username') }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required>267 </div>268 </div>269 <div class="col-md-6">270 <div class="form-group">271 <label class="form-label">Role</label>272 <select class="form-control" name="userRole" required>273 @foreach ($roles as $role)274 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ $role->name }}</option>275 @endforeach276 </select>277 </div>278 </div>279 </div>280 <div class="row">281 <div class="col-md-6">282 <div class="form-group">283 <label>Email</label>284 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required>285 </div>286 </div>287 <div class="col-md-6">288 <div class="form-group">289 <label class="form-label">Phone Number</label>290 <input type="text" name="phone_number" value="{{ old('phone_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required>291 </div>292 </div>293 </div>294 <div class="row">295 <div class="col-md-6">296 <div class="form-group">297 <label>Avatar</label>298 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*">299 </div>300 </div>301 </div>302 <div class="modal-footer">303 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close304 </button>305 <button type="submit" class="btn btn-primary">Save changes</button>306 </div>307 </form>308 </div>309 </div>310 </div>311 238 </div> 312 239 … … 319 246 </div> 320 247 </div> 321 {{-- </div>--}} 248 </div> 249 250 251 <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-hidden="true"> 252 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> 253 <div class="modal-content"> 254 <div class="modal-header"> 255 <h5 class="modal-title" id="exampleModalCenterTitle">Create user</h5> 256 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 257 <i class="ti-close"></i> 258 </button> 259 </div> 260 <div class="modal-body"> 261 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'> 262 @csrf 263 <div class="row"> 264 <div class="col-md-6"> 265 <div class="form-group"> 266 <label>Name</label> 267 <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required> 268 </div> 269 </div> 270 <div class="col-md-6"> 271 <div class="form-group"> 272 <label>Surname</label> 273 <input type="text" name="surname" value="{{ old('surname') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required> 274 </div> 275 </div> 276 </div> 277 <div class="row"> 278 <div class="col-md-6"> 279 <div class="form-group"> 280 <label class="form-label">Username</label> 281 <input type="text" name="username" value="{{ old('username') }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required> 282 </div> 283 </div> 284 <div class="col-md-6"> 285 <div class="form-group"> 286 <label class="form-label">Role</label> 287 <select class="form-control" name="userRole" required> 288 @foreach ($roles as $role) 289 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ $role->name }}</option> 290 @endforeach 291 </select> 292 </div> 293 </div> 294 </div> 295 <div class="row"> 296 <div class="col-md-6"> 297 <div class="form-group"> 298 <label>Email</label> 299 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required> 300 </div> 301 </div> 302 <div class="col-md-6"> 303 <div class="form-group"> 304 <label class="form-label">Phone Number</label> 305 <input type="text" name="phone_number" value="{{ old('phone_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 306 </div> 307 </div> 308 </div> 309 <div class="row"> 310 <div class="col-md-6"> 311 <div class="form-group"> 312 <label>Avatar</label> 313 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*"> 314 </div> 315 </div> 316 </div> 317 <div class="modal-footer"> 318 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 319 </button> 320 <button type="submit" class="btn btn-primary">Save changes</button> 321 </div> 322 </form> 323 </div> 324 </div> 325 </div> 326 </div> 322 327 323 328
Note:
See TracChangeset
for help on using the changeset viewer.