~alcinnz/Hearth

ref: bb4e369e919c008e989e5981397eceda6931b5f2 Hearth/tpl/bookmarks/new.html -rw-r--r-- 1.1 KiB
bb4e369e — Adrian Cochrane Add tagging & bookmark-editting support! 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8 />
  <title>➕️{{ _["Add Bookmark"] }}</title>
</head>
<body><form method="POST">
  <dl>
    <dt><label for="input-name">{{ _["Name"] }}</label></dt>
    <dd><input type="text" name="label" value="{{ Q.label }}" required
            id="input-name" /></dd>
    <dt><label for="input-url">{{ _["Web Address"] }}</label></dt>
    <dd><input type="url" name="href" value="{{ Q.href }}" required id="input-url" /></dd>
    <dt><label for="input-title">{{ _["Description"] }}</label></dt>
    <dd><textarea id="input-title" name="title"></textarea></dd>
    <dt><label for="input-tags">📑️{{ _["Tags"] }}</label></dt>
    <dd><select name="tags" id="input-tags" multiple>{% for tag in alltags %}
      <option {% if tag.label|in(Q.tags) %}selected{% endif %}>{{ tag.label }}</option>
    {% endfor %}</select></dd>
    <dd><label>New tag<input name="tags" /></label></dd>
  </dl>
  <p><button type="submit" formaction="read-later">📚️{{ _["Read Later"] }}</button>
    <!-- TODO: Implement these! -->
    <button type="submit">⭐️{{ _["Favourite"] }}</button>
</form></body>
</html>