2019-11-01 14:06:59 +00:00
|
|
|
{! vim: set ts=2 sw=2 et tw=120: !}
|
2019-10-21 16:56:21 +00:00
|
|
|
|
|
|
|
<h3>{name}</h3>
|
|
|
|
<img src="{dataURL}" alt="{name}">
|
2019-10-28 07:35:04 +00:00
|
|
|
{?b}
|
|
|
|
<p>
|
|
|
|
<strong>Bookmarked</strong>
|
|
|
|
</p>
|
|
|
|
{/b}
|
2019-10-21 16:56:21 +00:00
|
|
|
{?details}
|
2019-10-21 20:17:21 +00:00
|
|
|
<a href="/favorites/{_id}">Details</a>
|
2019-10-21 16:56:21 +00:00
|
|
|
{:else}
|
2019-10-21 20:17:21 +00:00
|
|
|
<form method="POST" action="/favorites/{_id}?_method=PUT">
|
2019-10-21 16:56:21 +00:00
|
|
|
<input type="hidden" name="dataURL" value="{dataURL}">
|
|
|
|
<label for="name">Name:</label>
|
|
|
|
<input type="text" name="name" placeholder="Name" value="{name}"><br>
|
|
|
|
<button>Update</button><br>
|
2019-10-21 20:17:21 +00:00
|
|
|
<button formaction="/favorites/{_id}?_method=DELETE">Delete</button><br>
|
|
|
|
{?b}
|
|
|
|
<button name="bookmarked" value="false"
|
|
|
|
formaction="/favorites/{_id}/bookmarked?_method=PUT">Remove bookmark</button>
|
|
|
|
{:else}
|
|
|
|
<button name="bookmarked" value="true"
|
|
|
|
formaction="/favorites/{_id}/bookmarked?_method=PUT">Add bookmark</button>
|
|
|
|
{/b}
|
2019-10-21 16:56:21 +00:00
|
|
|
</form>
|
2019-10-21 20:17:21 +00:00
|
|
|
<a href="/favorites">Favourites list</a>
|
2019-10-21 16:56:21 +00:00
|
|
|
{/details}
|