develop
Last change
on this file since b9c4a92 was d795fa6, checked in by Berat Kjufliju <kufliju@…>, 3 years ago |
added validation to blades
|
-
Property mode
set to
100644
|
File size:
3.2 KB
|
Line | |
---|
1 | @extends('layouts.app')
|
---|
2 |
|
---|
3 | @section("title", "Departments - Create department")
|
---|
4 |
|
---|
5 | @section('pageTitle', 'Create department')
|
---|
6 |
|
---|
7 | @section('content')
|
---|
8 |
|
---|
9 | <div class="page-header">
|
---|
10 | <nav aria-label="breadcrumb" class="d-flex align-items-start">
|
---|
11 | <ol class="breadcrumb">
|
---|
12 | <li class="breadcrumb-item">
|
---|
13 | <a href="{{ url('dashboard/departments') }}">Departments</a>
|
---|
14 | </li>
|
---|
15 | <li class="breadcrumb-item active" aria-current="page">New department</li>
|
---|
16 | </ol>
|
---|
17 | </nav>
|
---|
18 | </div>
|
---|
19 |
|
---|
20 | <div class="row">
|
---|
21 | <div class="col-md-12">
|
---|
22 |
|
---|
23 | <div class="row">
|
---|
24 | <div class="col-lg-12 col-md-12">
|
---|
25 | <div class="tab-content" id="v-pills-tabContent">
|
---|
26 | <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
|
---|
27 | <div class="card">
|
---|
28 | <div class="card-body">
|
---|
29 | <h6 class="card-title">New department</h6>
|
---|
30 | <form action="{{ route("dashboard.departments.store") }}" method="post" accept-charset="utf-8" class="needs-validation" novalidate>
|
---|
31 | @csrf
|
---|
32 | <div class="row">
|
---|
33 | <div class="col-md-6">
|
---|
34 | <div class="form-group">
|
---|
35 | <label>Name</label>
|
---|
36 | <input type="text" name="name" value="{{ old('name') }}" minlength="2" maxlength="30" class="form-control" placeholder="Name" required>
|
---|
37 | <div class="invalid-feedback">
|
---|
38 | Please enter characters with length between [2, 30]
|
---|
39 | </div>
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 | <div class="col-md-6">
|
---|
43 | <div class="form-group">
|
---|
44 | <label>Code</label>
|
---|
45 | <input type="text" name="code" value="{{ old('code') }}" minlength="2" maxlength="30" class="form-control" placeholder="Code" required>
|
---|
46 | <div class="invalid-feedback">
|
---|
47 | Please enter characters with length between [2, 30]
|
---|
48 | </div>
|
---|
49 | </div>
|
---|
50 | </div>
|
---|
51 | </div>
|
---|
52 | <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
|
---|
53 | </form>
|
---|
54 | </div>
|
---|
55 | </div>
|
---|
56 | </div>
|
---|
57 | </div>
|
---|
58 | </div>
|
---|
59 | </div>
|
---|
60 | </div>
|
---|
61 | </div>
|
---|
62 |
|
---|
63 | @endsection
|
---|
Note:
See
TracBrowser
for help on using the repository browser.