Matthias Andreas Benkard | 2d4f92e | 2020-02-09 16:15:07 +0100 | [diff] [blame] | 1 | {@java.util.List<eu.mulk.mulkcms2.benki.bookmarks.Bookmark> bookmarks} |
Matthias Andreas Benkard | bca9461 | 2020-02-10 20:58:13 +0100 | [diff] [blame^] | 2 | {@java.lang.Boolean authenticated} |
Matthias Andreas Benkard | 2d4f92e | 2020-02-09 16:15:07 +0100 | [diff] [blame] | 3 | |
| 4 | {#include base.html} |
| 5 | |
| 6 | {#title}Benki Bookmarks{/title} |
| 7 | {#siteSection}Bookmarks{/siteSection} |
| 8 | {#bookmarksClass}this-page{/bookmarksClass} |
| 9 | |
| 10 | {#head}{/head} |
| 11 | |
| 12 | {#body} |
| 13 | |
Matthias Andreas Benkard | bca9461 | 2020-02-10 20:58:13 +0100 | [diff] [blame^] | 14 | {#if authenticated} |
| 15 | <section id="bookmark-submission"> |
| 16 | <form class="pure-form pure-form-aligned" method="post"> |
| 17 | <fieldset> |
| 18 | <legend>Submit Bookmark</legend> |
| 19 | |
| 20 | <div class="pure-control-group"> |
| 21 | <label for="title-input">Title:</label> |
| 22 | <input name="title" id="title-input" type="text" placeholder="Title" required/> |
| 23 | </div> |
| 24 | |
| 25 | <div class="pure-control-group"> |
| 26 | <label for="uri-input">URI:</label> |
| 27 | <input name="uri" id="uri-input" type="text" placeholder="URI" required/> |
| 28 | </div> |
| 29 | |
| 30 | <div class="pure-control-group"> |
| 31 | <label for="description-input">Description:</label> |
| 32 | <textarea name="description" id="description-input" placeholder="Description"></textarea> |
| 33 | </div> |
| 34 | |
| 35 | <div class="pure-control-group"> |
| 36 | <label for="visibility-input">Visibility:</label> |
| 37 | <select id="visibility-input" name="visibility" required> |
| 38 | <option value="public">Public</option> |
| 39 | <option value="semiprivate" selected>Semiprivate</option> |
| 40 | <option value="private">Private</option> |
| 41 | </select> |
| 42 | </div> |
| 43 | |
| 44 | <div class="pure-controls"> |
| 45 | <button type="submit" class="pure-button pure-button-primary">Submit Bookmark</button> |
| 46 | </div> |
| 47 | </fieldset> |
| 48 | </form> |
| 49 | </section> |
| 50 | {/if} |
| 51 | |
Matthias Andreas Benkard | 2d4f92e | 2020-02-09 16:15:07 +0100 | [diff] [blame] | 52 | {#for bookmark in bookmarks} |
| 53 | {#with bookmark} |
| 54 | <article class="bookmark"> |
| 55 | <header> |
| 56 | <a href="{uri}"><h1 class="bookmark-title">{title}</h1></a> |
Matthias Andreas Benkard | 424e16e | 2020-02-09 18:29:56 +0100 | [diff] [blame] | 57 | <div class="bookmark-info"> |
Matthias Andreas Benkard | 2d4f92e | 2020-02-09 16:15:07 +0100 | [diff] [blame] | 58 | <time datetime="{date.htmlDateTime}">{date.humanDateTime}</time> |
| 59 | <span class="bookmark-owner">{owner.firstName} {owner.lastName}</span> |
| 60 | </div> |
| 61 | </header> |
| 62 | |
| 63 | <section class="bookmark-description"> |
Matthias Andreas Benkard | 424e16e | 2020-02-09 18:29:56 +0100 | [diff] [blame] | 64 | {descriptionHtml.raw} |
Matthias Andreas Benkard | 2d4f92e | 2020-02-09 16:15:07 +0100 | [diff] [blame] | 65 | </section> |
| 66 | </article> |
| 67 | {/with} |
| 68 | {/for} |
| 69 | |
| 70 | {/body} |
| 71 | |
| 72 | {/include} |