urlsnail/resources/views/bookmarks/edit.blade.php

41 lines
1.8 KiB
PHP
Raw Normal View History

2024-05-26 12:48:04 +00:00
@extends('layouts.app')
@section('content')
<p>
<a href="{{ action('BookmarkController@index') }}">&larr; Back</a>
</p>
2024-05-26 13:41:28 +00:00
<form method="post" class="form" action="{{ action('BookmarkController@update', ['bookmark' => $bookmark]) }}">
@csrf
2024-05-26 12:48:04 +00:00
<div class="bookmark">
2024-05-26 13:41:28 +00:00
<div class="bookmark-title form-row"g>
2024-05-26 12:48:04 +00:00
<label class="form-label" for="title">
Title:
</label>
2024-05-26 13:41:28 +00:00
<input type="text" class="form-input" name="title" value="{{ $bookmark->title }}">
2024-05-26 12:48:04 +00:00
</div>
<div class="bookmark-href form-row form-row-stacked">
<label class="form-label" for="href">
URL:
</label>
2024-05-26 13:41:28 +00:00
<input type="text" class="form-input" name="href" value="{{ $bookmark->href }}">
2024-05-26 12:48:04 +00:00
</div>
<div class="bookmark-description form-row form-row-stacked">
<label class="form-label" for="description">
Description:
</label>
2024-05-26 13:41:28 +00:00
<textarea name="description" class="form-textarea">{{ $bookmark->description }}</textarea>
2024-05-26 12:48:04 +00:00
</div>
2024-05-29 21:07:23 +00:00
<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>
2024-05-26 12:48:04 +00:00
<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