summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-02 18:52:26 +0200
committerSimon Rettberg2014-09-02 18:52:26 +0200
commit27da31299a24b61ef76604bc1fb3a67ccc150951 (patch)
tree627b9b770f143420a7afa3a8e49a78ec7f9471a2 /templates
parent[i18n] Language handling is now completely dynamic, no more hardcoded de,en,pt (diff)
downloadslx-admin-27da31299a24b61ef76604bc1fb3a67ccc150951.tar.gz
slx-admin-27da31299a24b61ef76604bc1fb3a67ccc150951.tar.xz
slx-admin-27da31299a24b61ef76604bc1fb3a67ccc150951.zip
[i18n] Also add submit button at the top of the edit template, so hitting enter in a text field doesn't delete the first tag
Diffstat (limited to 'templates')
-rw-r--r--templates/translation/edit.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/translation/edit.html b/templates/translation/edit.html
index 049be6cb..5fd2ef19 100644
--- a/templates/translation/edit.html
+++ b/templates/translation/edit.html
@@ -9,6 +9,11 @@
{{lang_templateHint}}
</div>
<form action="?do=Translation" method="post">
+ <input type="hidden" name="path" value="{{path}}">
+ <input type="hidden" name="token" value="{{token}}">
+ <a class="btn btn-primary" href='?do=Translation' >{{lang_back}}</a>
+ <button class="btn btn-primary" type="button" onclick="addTag()" >{{lang_createTag}}</button>
+ <button type="submit" class="btn btn-primary" name="update" value="true">{{lang_save}}</button>
<table class="table table-hover">
<thead>
<tr>
@@ -38,9 +43,7 @@
</tbody>
</table>
<a class="btn btn-primary" href='?do=Translation' >{{lang_back}}</a>
- <button class="btn btn-primary" type="button" onclick="addTag()" >{{lang_createTag}}</button>
- <input type="hidden" name="path" value="{{path}}">
- <input type="hidden" name="token" value="{{token}}">
+ <button class="btn btn-primary" type="button" onclick="addTag()" >{{lang_createTag}}</button>
<button type="submit" class="btn btn-primary" name="update" value="true">{{lang_save}}</button>
</form>
</div>