diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 802ec54..5d36884 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -430,6 +430,13 @@ class Poche ); Tools::logm('config view'); break; + case 'edit-tags': + # tags + $tags = $this->store->retrieveTagsByEntry($id); + $tpl_vars = array( + 'tags' => $tags, + ); + break; case 'tags': $tags = $this->store->retrieveAllTags(); $tpl_vars = array( diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 5bb65fe..9d91169 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -106,6 +106,9 @@ class Tools case 'tags': $tpl_file = 'tags.twig'; break; + case 'edit-tags': + $tpl_file = 'edit-tags.twig'; + break; case 'view': $tpl_file = 'view.twig'; break; diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig new file mode 100644 index 0000000..0bd1aba --- /dev/null +++ b/themes/default/edit-tags.twig @@ -0,0 +1,18 @@ +{% extends "layout.twig" %} +{% block title %}edit tags{% endblock %} +{% block menu %} +{% include '_menu.twig' %} +{% endblock %} +{% block content %} +{% if tags is empty %} +no tags +{% endif %} + +
+ + {% trans "you can type several tags, separated by comma" %}
+ +
+{% endblock %} \ No newline at end of file diff --git a/themes/default/view.twig b/themes/default/view.twig index 5a7c916..9f9e23c 100644 --- a/themes/default/view.twig +++ b/themes/default/view.twig @@ -21,7 +21,7 @@

{{ entry.title|raw }}

{{ content | raw }}