41 lines
1.8 KiB
PHP
41 lines
1.8 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<p>
|
|
<a href="{{ action('BookmarkController@index') }}">← Back</a>
|
|
</p>
|
|
<form method="post" class="form" action="{{ action('BookmarkController@update', ['bookmark' => $bookmark]) }}">
|
|
@csrf
|
|
<div class="bookmark">
|
|
<div class="bookmark-title form-row"g>
|
|
<label class="form-label" for="title">
|
|
Title:
|
|
</label>
|
|
<input type="text" class="form-input" name="title" value="{{ $bookmark->title }}">
|
|
</div>
|
|
<div class="bookmark-href form-row form-row-stacked">
|
|
<label class="form-label" for="href">
|
|
URL:
|
|
</label>
|
|
<input type="text" class="form-input" name="href" value="{{ $bookmark->href }}">
|
|
</div>
|
|
<div class="bookmark-description form-row form-row-stacked">
|
|
<label class="form-label" for="description">
|
|
Description:
|
|
</label>
|
|
<textarea name="description" class="form-textarea">{{ $bookmark->description }}</textarea>
|
|
</div>
|
|
<div class="bookmark-tags form-row form-row-stacked">
|
|
<label class="form-label" for="description">
|
|
Tags:
|
|
</label>
|
|
<input type="text" class="form-input" name="tags" value="@foreach ($bookmark->tags as $tag){{ $tag->name }} @endforeach">
|
|
</div>
|
|
<div class="form-row align-right bookmark-actions">
|
|
<a class="form-button" href="{{ action('BookmarkController@show', ['bookmark' => $bookmark]) }}">Cancel</a>
|
|
<input type="submit" class="form-button" value="Save">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@endsection
|