From a4565e88edbc8e3bd092a475469769c86a4c350c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 2 Aug 2013 22:40:51 +0200 Subject: add Twig & refactor poche --- tpl/home.html | 6 ++++-- tpl/install.twig | 28 +++++++++++++++++++++++++++ tpl/js.html | 36 +++++++++++++++++------------------ tpl/layout.twig | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tpl/login.twig | 31 ++++++++++++++++++++++++++++++ 5 files changed, 139 insertions(+), 20 deletions(-) create mode 100644 tpl/install.twig create mode 100644 tpl/layout.twig create mode 100644 tpl/login.twig (limited to 'tpl') diff --git a/tpl/home.html b/tpl/home.html index 90e247f7..8b602a25 100644 --- a/tpl/home.html +++ b/tpl/home.html @@ -3,6 +3,7 @@

logo pochepoche

+{% block menu %} - {if condition="isset($entries)"} +{% endblock %} +{% block precontent %} - {/if} +{% endblock %} {include="messages"} \ No newline at end of file diff --git a/tpl/install.twig b/tpl/install.twig new file mode 100644 index 00000000..4342df2e --- /dev/null +++ b/tpl/install.twig @@ -0,0 +1,28 @@ +{% extends "layout.twig" %} +{% block title %}Installation{% endblock %} +{% block content %} +
+
+

{% trans "install your poche" %}

+

+ {% trans "poche is still not installed. Please fill the below form to install it. Don't hesitate to read the documentation on poche website." %} +

+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+{% endblock %} \ No newline at end of file diff --git a/tpl/js.html b/tpl/js.html index a02212b0..3a51af6e 100644 --- a/tpl/js.html +++ b/tpl/js.html @@ -1,22 +1,22 @@ - - + + - {if="$load_all_js == '1'"} - - + - {/if} \ No newline at end of file + + {/if} \ No newline at end of file diff --git a/tpl/layout.twig b/tpl/layout.twig new file mode 100644 index 00000000..c5f52bbd --- /dev/null +++ b/tpl/layout.twig @@ -0,0 +1,58 @@ + + + + + + + + + + + {% block title %}{% endblock %} - poche + + + + + + + + + + + + + +
+

logo pochepoche

+
+
+ {% block menu %}{% endblock %} + {% block precontent %}{% endblock %} + {% block content %}{% endblock %} + {% block js %}{% endblock %} +
+ + + + \ No newline at end of file diff --git a/tpl/login.twig b/tpl/login.twig new file mode 100644 index 00000000..390718b6 --- /dev/null +++ b/tpl/login.twig @@ -0,0 +1,31 @@ +{% extends "layout.twig" %} +{% block title %}Login{% endblock %} +{% block content %} +
+
+

{% trans "login to your poche" %}

+ {% if demo == 1 %}

{% trans "you are in demo mode, some features may be disabled." %}

{% endif %} +
+ + +
+ +
+ + +
+
+ +
+ + (Do not check on public computers) +
+
+
+ +
+
+ + +
+{% endblock %} \ No newline at end of file -- cgit v1.2.3