diff options
Diffstat (limited to 'themes')
-rwxr-xr-x | themes/baggy/config.twig | 32 | ||||
-rwxr-xr-x | themes/courgette/config.twig | 34 | ||||
-rwxr-xr-x | themes/default/config.twig | 33 |
3 files changed, 99 insertions, 0 deletions
diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index d441de7c..29d9e048 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig | |||
@@ -128,4 +128,36 @@ | |||
128 | <h2>{% trans "Cache" %}</h2> | 128 | <h2>{% trans "Cache" %}</h2> |
129 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> | 129 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> |
130 | 130 | ||
131 | <h2>{% trans 'Add user' %}</h2> | ||
132 | <p>{% trans 'Add a new user :' %}</p> | ||
133 | <form method="post" action="?newuser"> | ||
134 | <fieldset class="w500p"> | ||
135 | <div class="row"> | ||
136 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> | ||
137 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}"> | ||
138 | </div> | ||
139 | <div class="row"> | ||
140 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | ||
141 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | ||
142 | </div> | ||
143 | <div class="row mts txtcenter"> | ||
144 | <button type="submit">{% trans "Send" %}</button> | ||
145 | </div> | ||
146 | </fieldset> | ||
147 | </form> | ||
148 | |||
149 | <h2>{% trans "Delete account" %}</h2> | ||
150 | {% if not only_user %}<form method="post" action="?deluser"> | ||
151 | <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p> | ||
152 | <fieldset class="w500p"> | ||
153 | <div class="row"> | ||
154 | <label class="col w150p" for="password4deletinguser">{% trans "Type here your password" %}</label> | ||
155 | <input class="col" type="password" id="password4deletinguser" name="password4deletinguser" placeholder="{% trans "Password" %}"> | ||
156 | </div> | ||
157 | <div class="row mts txtcenter"> | ||
158 | <button type="submit">{% trans "Send" %}</button> | ||
159 | </div> | ||
160 | </form> | ||
161 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | ||
162 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | ||
131 | {% endblock %} | 163 | {% endblock %} |
diff --git a/themes/courgette/config.twig b/themes/courgette/config.twig index 6e1a9043..a022d733 100755 --- a/themes/courgette/config.twig +++ b/themes/courgette/config.twig | |||
@@ -80,5 +80,39 @@ | |||
80 | 80 | ||
81 | <h2>{% trans "Export your wallabag data" %}</h2> | 81 | <h2>{% trans "Export your wallabag data" %}</h2> |
82 | <p><a href="./?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> | 82 | <p><a href="./?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> |
83 | |||
84 | |||
85 | <h2>{% trans 'Add user' %}</h2> | ||
86 | <p>{% trans 'Add a new user :' %}</p> | ||
87 | <form method="post" action="?newuser"> | ||
88 | <fieldset class="w500p"> | ||
89 | <div class="row"> | ||
90 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> | ||
91 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}"> | ||
92 | </div> | ||
93 | <div class="row"> | ||
94 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | ||
95 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | ||
96 | </div> | ||
97 | <div class="row mts txtcenter"> | ||
98 | <button type="submit">{% trans "Send" %}</button> | ||
99 | </div> | ||
100 | </fieldset> | ||
101 | </form> | ||
102 | |||
103 | <h2>{% trans "Delete account" %}</h2> | ||
104 | {% if not only_user %}<form method="post" action="?deluser"> | ||
105 | <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p> | ||
106 | <fieldset class="w500p"> | ||
107 | <div class="row"> | ||
108 | <label class="col w150p" for="password4deletinguser">{% trans "Type here your password" %}</label> | ||
109 | <input class="col" type="password" id="password4deletinguser" name="password4deletinguser" placeholder="{% trans "Password" %}"> | ||
110 | </div> | ||
111 | <div class="row mts txtcenter"> | ||
112 | <button type="submit">{% trans "Send" %}</button> | ||
113 | </div> | ||
114 | </form> | ||
115 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | ||
116 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | ||
83 | </div> | 117 | </div> |
84 | {% endblock %} | 118 | {% endblock %} |
diff --git a/themes/default/config.twig b/themes/default/config.twig index bb39dea2..5ed9d80f 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -126,4 +126,37 @@ | |||
126 | 126 | ||
127 | <h2>{% trans "Cache" %}</h2> | 127 | <h2>{% trans "Cache" %}</h2> |
128 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> | 128 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> |
129 | |||
130 | <h2>{% trans 'Add user' %}</h2> | ||
131 | <p>{% trans 'Add a new user :' %}</p> | ||
132 | <form method="post" action="?newuser"> | ||
133 | <fieldset class="w500p"> | ||
134 | <div class="row"> | ||
135 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> | ||
136 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}"> | ||
137 | </div> | ||
138 | <div class="row"> | ||
139 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | ||
140 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | ||
141 | </div> | ||
142 | <div class="row mts txtcenter"> | ||
143 | <button type="submit">{% trans "Send" %}</button> | ||
144 | </div> | ||
145 | </fieldset> | ||
146 | </form> | ||
147 | |||
148 | <h2>{% trans "Delete account" %}</h2> | ||
149 | {% if not only_user %}<form method="post" action="?deluser"> | ||
150 | <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p> | ||
151 | <fieldset class="w500p"> | ||
152 | <div class="row"> | ||
153 | <label class="col w150p" for="password4deletinguser">{% trans "Type here your password" %}</label> | ||
154 | <input class="col" type="password" id="password4deletinguser" name="password4deletinguser" placeholder="{% trans "Password" %}"> | ||
155 | </div> | ||
156 | <div class="row mts txtcenter"> | ||
157 | <button type="submit">{% trans "Send" %}</button> | ||
158 | </div> | ||
159 | </form> | ||
160 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | ||
161 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | ||
129 | {% endblock %} | 162 | {% endblock %} |