diff options
-rwxr-xr-x | themes/courgette/config.twig | 34 | ||||
-rwxr-xr-x | themes/default/config.twig | 33 |
2 files changed, 67 insertions, 0 deletions
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 %} |