source: resources/views/dashboard/categories/edit.blade.php@ 0924b6c

Last change on this file since 0924b6c was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 2.0 KB
Line 
1@extends("layouts.dashboard")
2
3@section("title", "Add new category - Dashboard | TechnoBlog")
4
5@section("dashboard_content")
6
7<div class="my-3 my-md-5">
8
9 <div class="container">
10
11 <div class="row">
12
13 <div class="col-sm-12">
14
15 <form class="card actionForm" action="{{ route("dashboard.categories.edit", ["id" => $category->id]) }}" method="post" accept-charset="UTF-8">
16
17 <nav aria-label="breadcrumb">
18 <ol class="breadcrumb" style="border-radius: 0px !important;">
19 <li class="breadcrumb-item">
20 <a href="{{ route("dashboard.index") }}">Dashboard</a>
21 </li>
22 <li class="breadcrumb-item">
23 <a href="{{ route("dashboard.categories.index") }}">Categories</a>
24 </li>
25 <li class="breadcrumb-item active" aria-current="page">Edit</li>
26 </ol>
27 </nav>
28
29 <div class="card-body">
30
31 <h3 class="card-title border-bottom pb-4">Edit category</h3>
32
33 @method("patch")
34 @csrf
35
36 <div class="row">
37
38 <div class="col-md-6 m-auto">
39
40 <fieldset class="form-fieldset">
41
42 <p class="text-dark pb-4">Please note that the new category will be unavailable for users until publishing your first post.</p>
43
44 <div class="form-group">
45 <label class="form-label">Name</label>
46 <input type="text" name="name" value="{{ old("name", $category->name) }}" autocomplete="off" class="form-control" required>
47 </div>
48
49 <div class="form-group">
50 <label class="form-label">Choose color for new category</label>
51 <div class="input-group">
52 <input type="text" name="color" value="{{ old("color", $category->color) }}" class="form-control categoryColor" autocomplete="off" required>
53 </div>
54 </div>
55
56 </fieldset>
57
58 </div>
59
60 </div>
61
62 </div>
63
64 <div class="card-footer text-right">
65 <input type="submit" value="Edit category" class="submitBtn btn btn-primary">
66 </div>
67
68 </form>
69
70 </div>
71
72 </div>
73
74 </div>
75
76 </div>
77
78@endsection
Note: See TracBrowser for help on using the repository browser.