Changeset ac3f217 for resources/views/dashboard/users/index.blade.php
- Timestamp:
- 10/27/21 00:00:55 (3 years ago)
- Branches:
- develop, master
- Children:
- e651d0d
- Parents:
- cb88e9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/users/index.blade.php
rcb88e9f rac3f217 11 11 @section('content') 12 12 13 14 <div class="row app-block mb-4">15 13 <div class="page-header justify-content-between"> 16 14 <nav aria-label="breadcrumb" class="d-flex align-items-start"> … … 239 237 </table> 240 238 241 <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-hidden="true">242 <div class="modal-dialog modal-dialog-centered modal-lg" role="document">243 <div class="modal-content">244 <div class="modal-header">245 <h5 class="modal-title" id="exampleModalCenterTitle">Create user</h5>246 <button type="button" class="close" data-dismiss="modal" aria-label="Close">247 <i class="ti-close"></i>248 </button>249 </div>250 <div class="modal-body">251 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'>252 @csrf253 <div class="row">254 <div class="col-md-6">255 <div class="form-group">256 <label>Name</label>257 <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required>258 </div>259 </div>260 <div class="col-md-6">261 <div class="form-group">262 <label>Surname</label>263 <input type="text" name="surname" value="{{ old('surname') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required>264 </div>265 </div>266 </div>267 <div class="row">268 <div class="col-md-6">269 <div class="form-group">270 <label class="form-label">Username</label>271 <input type="text" name="username" value="{{ old('username') }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required>272 </div>273 </div>274 <div class="col-md-6">275 <div class="form-group">276 <label class="form-label">Role</label>277 <select class="form-control" name="userRole" required>278 @foreach ($roles as $role)279 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ $role->name }}</option>280 @endforeach281 </select>282 </div>283 </div>284 </div>285 <div class="row">286 <div class="col-md-6">287 <div class="form-group">288 <label>Email</label>289 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required>290 </div>291 </div>292 <div class="col-md-6">293 <div class="form-group">294 <label class="form-label">Phone Number</label>295 <input type="text" name="phone_number" value="{{ old('phone_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required>296 </div>297 </div>298 </div>299 <div class="row">300 <div class="col-md-6">301 <div class="form-group">302 <label>Avatar</label>303 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*">304 </div>305 </div>306 </div>307 <div class="modal-footer">308 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close309 </button>310 <button type="submit" class="btn btn-primary">Save changes</button>311 </div>312 </form>313 </div>314 </div>315 </div>316 </div>317 318 239 </div> 319 240 </div> … … 321 242 </div> 322 243 </div> 244 245 <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-hidden="true"> 246 <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> 247 <div class="modal-content"> 248 <div class="modal-header"> 249 <h5 class="modal-title" id="exampleModalCenterTitle">Create user</h5> 250 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 251 <i class="ti-close"></i> 252 </button> 253 </div> 254 <div class="modal-body"> 255 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'> 256 @csrf 257 <div class="row"> 258 <div class="col-md-6"> 259 <div class="form-group"> 260 <label>Name</label> 261 <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Name" required> 262 </div> 263 </div> 264 <div class="col-md-6"> 265 <div class="form-group"> 266 <label>Surname</label> 267 <input type="text" name="surname" value="{{ old('surname') }}" minlength="2" maxlength="25" pattern="[a-zA-Zа-шА-Ш._\s]+" class="form-control" placeholder="Surname" required> 268 </div> 269 </div> 270 </div> 271 <div class="row"> 272 <div class="col-md-6"> 273 <div class="form-group"> 274 <label class="form-label">Username</label> 275 <input type="text" name="username" value="{{ old('username') }}" minlength="5" maxlength="30" class="form-control" placeholder="Username" required> 276 </div> 277 </div> 278 <div class="col-md-6"> 279 <div class="form-group"> 280 <label class="form-label">Role</label> 281 <select class="form-control" name="userRole" required> 282 @foreach ($roles as $role) 283 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ $role->name }}</option> 284 @endforeach 285 </select> 286 </div> 287 </div> 288 </div> 289 <div class="row"> 290 <div class="col-md-6"> 291 <div class="form-group"> 292 <label>Email</label> 293 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required> 294 </div> 295 </div> 296 <div class="col-md-6"> 297 <div class="form-group"> 298 <label class="form-label">Phone Number</label> 299 <input type="text" name="phone_number" value="{{ old('phone_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required> 300 </div> 301 </div> 302 </div> 303 <div class="row"> 304 <div class="col-md-6"> 305 <div class="form-group"> 306 <label>Avatar</label> 307 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*"> 308 </div> 309 </div> 310 </div> 311 <div class="modal-footer"> 312 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 313 </button> 314 <button type="submit" class="btn btn-primary">Save changes</button> 315 </div> 316 </form> 317 </div> 318 </div> 319 </div> 323 320 </div> 324 321
Note:
See TracChangeset
for help on using the changeset viewer.