diff options
author | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-08 21:07:59 +0200 |
---|---|---|
committer | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-08 21:07:59 +0200 |
commit | 693b3f86776ae236d69ac6ed085b5e46b9054642 (patch) | |
tree | 52beeeaccc06b8d9ae52ca99b507f2e29eb47fe8 /tpl/_menu.twig | |
parent | 3eb049036e601c1978cf5f7f0d5be8c577933b72 (diff) | |
download | wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.tar.gz wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.tar.zst wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.zip |
Implemented Add Button
Added a button to add an URL when directly into Poche. If JS isn't
enabled, nothing happens.
Diffstat (limited to 'tpl/_menu.twig')
-rw-r--r-- | tpl/_menu.twig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tpl/_menu.twig b/tpl/_menu.twig index 699d6a0c..8341c49c 100644 --- a/tpl/_menu.twig +++ b/tpl/_menu.twig | |||
@@ -4,4 +4,13 @@ | |||
4 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> | 4 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> |
5 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> | 5 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> |
6 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | 6 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> |
7 | </ul> \ No newline at end of file | 7 | <li><a id="addurlbutton" onclick="showinput();" href="#" title="{% trans "addlink" %}">{% trans "addlink" %}</a></li> |
8 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | ||
9 | </ul> | ||
10 | <div id="inputform"> | ||
11 | <form method="get" action="index.php"> | ||
12 | <label class="addurl" for="plainurl">Entrez ici votre URL</label><br /> | ||
13 | <input autofocus required placeholder="Ex:monsite.net/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | ||
14 | <input type="submit" value="Envoyer" /> | ||
15 | </form> | ||
16 | </div> \ No newline at end of file | ||