-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathedit.blade.php
41 lines (39 loc) · 1.82 KB
/
edit.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@extends('layouts.app')
@section('title', '- edit: ' . $tag->name)
@section('content')
<section class="section" style=" height: 69vh;">
<div class="container">
<form action="{{ route('tags.update',$tag) }}" method="POST">
@method('PUT')
@csrf
<div class="columns is-centered">
<div class="column is-6">
<div class="columns is-multiline is-vcentered">
<div class="column is-12">
<h2 class="title is-2">Edit tag</h2>
</div>
<div class="column is-12">
<div class="field">
<label class="label">name</label>
<div class="control">
<input class="input @error('name') is-danger @enderror" name="name" type="text"
placeholder="Post name"
value="{{ $tag->name }}">
</div>
@error('name')
<p class="help is-danger">{{ $message }}</p>
@enderror
</div>
</div>
<div class="column is-12">
<input type="submit"
class="button is-primary is-outlined is-fullwidth"
value="Add new tag">
</div>
</div>
</div>
</div>
</form>
</div>
</section>
@endsection