diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/baggy/_search-form.twig | 2 | ||||
-rwxr-xr-x | themes/baggy/config.twig | 10 | ||||
-rwxr-xr-x | themes/baggy/css/main.css | 4 | ||||
-rwxr-xr-x | themes/courgette/config.twig | 6 | ||||
-rwxr-xr-x | themes/default/_search-form.twig | 2 | ||||
-rwxr-xr-x | themes/default/config.twig | 7 | ||||
-rw-r--r-- | themes/default/css/messages.css | 5 | ||||
-rw-r--r-- | themes/default/js/popupForm.js | 1 |
8 files changed, 27 insertions, 10 deletions
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig index b8ac3bfa..7b2c7082 100644 --- a/themes/baggy/_search-form.twig +++ b/themes/baggy/_search-form.twig | |||
@@ -1,7 +1,7 @@ | |||
1 | <div id="search-form" class="messages info"> | 1 | <div id="search-form" class="messages info"> |
2 | <form method="get" action="index.php"> | 2 | <form method="get" action="index.php"> |
3 | <input type="hidden" name="view" value="search"></input> | 3 | <input type="hidden" name="view" value="search"></input> |
4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> | 4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input required placeholder="{% trans "Enter your search here" %}" type="text" name="search" id="searchfield" /> |
5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> | 5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> |
6 | </form> | 6 | </form> |
7 | </div> \ No newline at end of file | 7 | </div> \ No newline at end of file |
diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig index 7bd229cb..3523cd08 100755 --- a/themes/baggy/config.twig +++ b/themes/baggy/config.twig | |||
@@ -136,11 +136,15 @@ | |||
136 | <fieldset class="w500p"> | 136 | <fieldset class="w500p"> |
137 | <div class="row"> | 137 | <div class="row"> |
138 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> | 138 | <label class="col w150p" for="newusername">{% trans 'Login for new user' %}</label> |
139 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}"> | 139 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}" required> |
140 | </div> | 140 | </div> |
141 | <div class="row"> | 141 | <div class="row"> |
142 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | 142 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> |
143 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | 143 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans 'Password' %}" required> |
144 | </div> | ||
145 | <div class="row"> | ||
146 | <label class="col w150p" for="newuseremail">{% trans 'Email for new user (not required)' %}</label> | ||
147 | <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}"> | ||
144 | </div> | 148 | </div> |
145 | <div class="row mts txtcenter"> | 149 | <div class="row mts txtcenter"> |
146 | <button type="submit">{% trans "Send" %}</button> | 150 | <button type="submit">{% trans "Send" %}</button> |
@@ -161,5 +165,5 @@ | |||
161 | </div> | 165 | </div> |
162 | </form> | 166 | </form> |
163 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | 167 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> |
164 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | 168 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server (and eventual databases)." %}</p>{% endif %} |
165 | {% endblock %} | 169 | {% endblock %} |
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 9c50786b..52ba50f2 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css | |||
@@ -89,7 +89,7 @@ form fieldset { | |||
89 | margin: 0; | 89 | margin: 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | form input[type="text"], select, form input[type="password"], form input[type="url"] { | 92 | form input[type="text"], select, form input[type="password"], form input[type="url"], form input[type="email"] { |
93 | border: 1px solid #999; | 93 | border: 1px solid #999; |
94 | padding: 0.5em 1em; | 94 | padding: 0.5em 1em; |
95 | min-width: 12em; | 95 | min-width: 12em; |
@@ -180,7 +180,7 @@ h2:after { | |||
180 | padding-top: 9.5em; | 180 | padding-top: 9.5em; |
181 | height: 100%; | 181 | height: 100%; |
182 | box-shadow:inset -4px 0 20px rgba(0,0,0,0.6); | 182 | box-shadow:inset -4px 0 20px rgba(0,0,0,0.6); |
183 | z-index: 10; | 183 | z-index: 15; |
184 | } | 184 | } |
185 | 185 | ||
186 | #main { | 186 | #main { |
diff --git a/themes/courgette/config.twig b/themes/courgette/config.twig index 9ab58461..c4933794 100755 --- a/themes/courgette/config.twig +++ b/themes/courgette/config.twig | |||
@@ -97,6 +97,10 @@ | |||
97 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | 97 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> |
98 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | 98 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> |
99 | </div> | 99 | </div> |
100 | <div class="row"> | ||
101 | <label class="col w150p" for="newuseremail">{% trans 'Email for new user (not required)' %}</label> | ||
102 | <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}"> | ||
103 | </div> | ||
100 | <div class="row mts txtcenter"> | 104 | <div class="row mts txtcenter"> |
101 | <button type="submit">{% trans "Send" %}</button> | 105 | <button type="submit">{% trans "Send" %}</button> |
102 | </div> | 106 | </div> |
@@ -116,6 +120,6 @@ | |||
116 | </div> | 120 | </div> |
117 | </form> | 121 | </form> |
118 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | 122 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> |
119 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | 123 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server (and eventual databases)." %}</p>{% endif %} |
120 | </div> | 124 | </div> |
121 | {% endblock %} | 125 | {% endblock %} |
diff --git a/themes/default/_search-form.twig b/themes/default/_search-form.twig index 33bea20d..0cf6097a 100755 --- a/themes/default/_search-form.twig +++ b/themes/default/_search-form.twig | |||
@@ -2,7 +2,7 @@ | |||
2 | <form method="get" action="index.php"> | 2 | <form method="get" action="index.php"> |
3 | <p> | 3 | <p> |
4 | <input type="hidden" name="view" value="search"></input> | 4 | <input type="hidden" name="view" value="search"></input> |
5 | <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" /> | 5 | <label>{% trans "Search" %}</label> : <input type="text" required placeholder="{% trans "Enter your search here" %}" name="search" id="searchfield" /> |
6 | <input type="submit" value="{% trans "Search" %} !"></input> | 6 | <input type="submit" value="{% trans "Search" %} !"></input> |
7 | </p> | 7 | </p> |
8 | </form> | 8 | </form> |
diff --git a/themes/default/config.twig b/themes/default/config.twig index 5656fadd..36b66e88 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -120,7 +120,6 @@ | |||
120 | <p><a href="?import">{% trans "You can click here to fetch content for articles with no content." %}</a></p> | 120 | <p><a href="?import">{% trans "You can click here to fetch content for articles with no content." %}</a></p> |
121 | 121 | ||
122 | <h2>{% trans "Export your wallabag data" %}</h2> | 122 | <h2>{% trans "Export your wallabag data" %}</h2> |
123 | {% if constant('STORAGE') == 'sqlite' %} | ||
124 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> | 123 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your wallabag data." %}</p> |
125 | 124 | ||
126 | <h2>{% trans "Cache" %}</h2> | 125 | <h2>{% trans "Cache" %}</h2> |
@@ -142,6 +141,10 @@ | |||
142 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> | 141 | <label class="col w150p" for="password4newuser">{% trans "Password for new user" %}</label> |
143 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> | 142 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans "Password" %}"> |
144 | </div> | 143 | </div> |
144 | <div class="row"> | ||
145 | <label class="col w150p" for="newuseremail">{% trans 'Email for new user (not required)' %}</label> | ||
146 | <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}"> | ||
147 | </div> | ||
145 | <div class="row mts txtcenter"> | 148 | <div class="row mts txtcenter"> |
146 | <button type="submit">{% trans "Send" %}</button> | 149 | <button type="submit">{% trans "Send" %}</button> |
147 | </div> | 150 | </div> |
@@ -161,5 +164,5 @@ | |||
161 | </div> | 164 | </div> |
162 | </form> | 165 | </form> |
163 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> | 166 | {% else %}<p>{% trans "You are the only user, you cannot delete your own account." %}<br /> |
164 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server." %}</p>{% endif %} | 167 | {% trans "To completely remove wallabag, delete the wallabag folder on your web server (and eventual databases)." %}</p>{% endif %} |
165 | {% endblock %} | 168 | {% endblock %} |
diff --git a/themes/default/css/messages.css b/themes/default/css/messages.css index 46b54795..3ad4e34e 100644 --- a/themes/default/css/messages.css +++ b/themes/default/css/messages.css | |||
@@ -8,6 +8,11 @@ | |||
8 | border-radius: 4px; | 8 | border-radius: 4px; |
9 | } | 9 | } |
10 | 10 | ||
11 | /* Search form message needs a little more width, depending on translations */ | ||
12 | #search-form { | ||
13 | width: 420px; | ||
14 | } | ||
15 | |||
11 | .messages a.closeMessage { | 16 | .messages a.closeMessage { |
12 | display: none; | 17 | display: none; |
13 | float: right; | 18 | float: right; |
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js index 06be3f0c..a32e6e70 100644 --- a/themes/default/js/popupForm.js +++ b/themes/default/js/popupForm.js | |||
@@ -10,6 +10,7 @@ $(document).ready(function() { | |||
10 | 10 | ||
11 | $("#search").click(function(){ | 11 | $("#search").click(function(){ |
12 | closeSearch(); | 12 | closeSearch(); |
13 | $('#searchfield').focus(); | ||
13 | }); | 14 | }); |
14 | 15 | ||
15 | $("#search-form-close").click(function(){ | 16 | $("#search-form-close").click(function(){ |