2024-05-30 21:47:52 +00:00
|
|
|
<x-urlsnail-layout>
|
2024-05-30 20:55:08 +00:00
|
|
|
<h2>{{ $bookmark ? "Edit Bookmark" : "Add Bookmark" }}</h2>
|
2024-05-26 12:48:04 +00:00
|
|
|
<p>
|
|
|
|
<a href="{{ action('BookmarkController@index') }}">← Back</a>
|
|
|
|
</p>
|
2024-05-30 20:55:08 +00:00
|
|
|
<form method="post" class="form" action="{{ $bookmark ? action('BookmarkController@update', ['bookmark' => $bookmark]) : action('BookmarkController@store') }}">
|
2024-05-26 13:41:28 +00:00
|
|
|
@csrf
|
2024-05-26 12:48:04 +00:00
|
|
|
<div class="bookmark">
|
2024-05-30 20:55:08 +00:00
|
|
|
<div class="bookmark-title form-row">
|
2024-05-26 12:48:04 +00:00
|
|
|
<label class="form-label" for="title">
|
|
|
|
Title:
|
|
|
|
</label>
|
2024-05-30 20:55:08 +00:00
|
|
|
<input type="text" class="form-input" name="title" value="{{ $bookmark?->title }}" tabindex="1">
|
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-30 20:55:08 +00:00
|
|
|
<input type="text" class="form-input" name="href" value="{{ $bookmark?->href }}" tabindex="3">
|
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-30 20:55:08 +00:00
|
|
|
<textarea name="description" class="form-textarea" tabindex="2">{{ $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>
|
2024-05-30 20:55:08 +00:00
|
|
|
<input type="text" class="form-input" name="tags" tabindex="4" value="@foreach ($bookmark?->tags ?? [] as $tag){{ $tag->name }} @endforeach">
|
2024-05-29 21:07:23 +00:00
|
|
|
</div>
|
2024-05-26 12:48:04 +00:00
|
|
|
<div class="form-row align-right bookmark-actions">
|
2024-05-30 20:55:08 +00:00
|
|
|
<a class="form-button" tabindex="5" href="{{ $bookmark ? action('BookmarkController@show', ['bookmark' => $bookmark]) : action('BookmarkController@index') }}">Cancel</a>
|
|
|
|
<input type="submit" tabindex="6" class="form-button" value="Save">
|
2024-05-26 12:48:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2024-05-30 21:47:52 +00:00
|
|
|
</x-urlsnail-layout>
|