summaryrefslogtreecommitdiffstats
path: root/templates/administration
diff options
context:
space:
mode:
authorraul2014-08-06 16:31:54 +0200
committerraul2014-08-06 16:31:54 +0200
commit244a87be2aa4b7721fca1afefcdeae8f44478add (patch)
treec1666b7208d3ebdf988f3ab18f35465d21ee9a65 /templates/administration
parent[i18n] Altering JSONs through the web interface is now possible (diff)
downloadslx-admin-244a87be2aa4b7721fca1afefcdeae8f44478add.tar.gz
slx-admin-244a87be2aa4b7721fca1afefcdeae8f44478add.tar.xz
slx-admin-244a87be2aa4b7721fca1afefcdeae8f44478add.zip
[i18n]Corrected the system and added warnings to the table lines of the Language Administration page
Diffstat (limited to 'templates/administration')
-rw-r--r--templates/administration/messages.html126
-rw-r--r--templates/administration/template.html8
2 files changed, 72 insertions, 62 deletions
diff --git a/templates/administration/messages.html b/templates/administration/messages.html
index 76d2d1e0..657dba9e 100644
--- a/templates/administration/messages.html
+++ b/templates/administration/messages.html
@@ -5,68 +5,78 @@
</div>
<div class="panel-body">
<p>{{lang_templateMessagesHelp}}
- <form action="?do=Admin" method="post">
</div>
- <table class="table table-hover">
- <thead>
- <tr>
- <th>{{lang_messages}}</th>
- <th style='text-align:center;'>{{lang_germanJSON}}</th>
- <th style='text-align:center;'>{{lang_englishJSON}}</th>
- <th style='text-align:center;'>{{lang_portugueseJSON}}</th>
- </tr>
- </thead>
- <tbody>
- {{#msgs}}
+ <form action="?do=Admin" method="post">
+ <table class="table table-hover">
+ <thead>
<tr>
- <td>{{tag}}</td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang-de-{{tag}}">
- </td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang-en-{{tag}}">
- </td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang-pt-{{tag}}">
- </td>
+ <th>{{lang_messages}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_germanJSON}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_englishJSON}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_portugueseJSON}}</th>
</tr>
- {{/msgs}}
- </tbody>
- </table>
- <table class="table table-hover">
- <thead>
- <tr>
- <th>{{lang_messagesHardcoded}}</th>
- <th style='text-align:center;'>{{lang_germanJSON}}</th>
- <th style='text-align:center;'>{{lang_englishJSON}}</th>
- <th style='text-align:center;'>{{lang_portugueseJSON}}</th>
- </tr>
- </thead>
- <tbody>
- {{#msgsHC}}
+ </thead>
+ <tbody>
+ {{#msgs}}
+ <tr>
+ <td>{{tag}}</td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang#de#{{tag}}">
+ </td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang#en#{{tag}}">
+ </td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang#pt#{{tag}}">
+ </td>
+ </tr>
+ {{/msgs}}
+ </tbody>
+ </table>
+ <div class="panel-body">
+ <a class="btn btn-primary" href='?do=Admin' >{{lang_back}}</a>
+ <a class="btn btn-primary" href='?do=Admin' >{{lang_newTag}}</a>
+ <input type="hidden" name="update" value="true">
+ <input type="hidden" name="path" value="messages">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="submit" class="btn btn-primary" value="{{lang_update}}">
+ </form>
+ </div>
+ <form action="?do=Admin" method="post">
+ <table class="table table-hover">
+ <thead>
<tr>
- <td>{{tag}}</td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang-de-{{tag}}">
- </td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang-en-{{tag}}">
- </td>
- <td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang-pt-{{tag}}">
- </td>
+ <th>{{lang_messagesHardcoded}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_germanJSON}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_englishJSON}}</th>
+ <th style='text-align:center;width:260px;'>{{lang_portugueseJSON}}</th>
</tr>
- {{/msgsHC}}
- </tbody>
- </table>
- <div class="panel-body">
- <a class="btn btn-primary" href='?do=Admin' >{{lang_back}}</a>
- <a class="btn btn-primary" href='?do=Admin' >{{lang_newTag}}</a>
- <input type="hidden" name="update" value="true">
- <input type="hidden" name="path" value="{{path}}">
- <input type="hidden" name="token" value="{{token}}">
- <input type="submit" class="btn btn-primary" value="{{lang_update}}">
- </form>
- </div>
+ </thead>
+ <tbody>
+ {{#msgsHC}}
+ <tr>
+ <td>{{tag}}</td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang#de#{{tag}}">
+ </td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang#en#{{tag}}">
+ </td>
+ <td style='width:250px;text-align:center;'>
+ <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang#pt#{{tag}}">
+ </td>
+ </tr>
+ {{/msgsHC}}
+ </tbody>
+ </table>
+ <div class="panel-body">
+ <a class="btn btn-primary" href='?do=Admin' >{{lang_back}}</a>
+ <a class="btn btn-primary" href='?do=Admin' >{{lang_newTag}}</a>
+ <input type="hidden" name="update" value="true">
+ <input type="hidden" name="path" value="messages-hardcoded">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="submit" class="btn btn-primary" value="{{lang_update}}">
+ </form>
+ </div>
</div>
</div>
diff --git a/templates/administration/template.html b/templates/administration/template.html
index 1ff2e23a..fd357b3d 100644
--- a/templates/administration/template.html
+++ b/templates/administration/template.html
@@ -17,16 +17,16 @@
</thead>
<tbody>
{{#tags}}
- <tr>
+ <tr class="{{class}}">
<td>{{tag}}</td>
<td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang-de-{{tag}}">
+ <input type="text" class="form-control" placeholder="{{lang_germanTAG}}" value="{{de}}" name="lang#de#{{tag}}">
</td>
<td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang-en-{{tag}}">
+ <input type="text" class="form-control" placeholder="{{lang_englishTAG}}" value="{{en}}" name="lang#en#{{tag}}">
</td>
<td style='width:250px;text-align:center;'>
- <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang-pt-{{tag}}">
+ <input type="text" class="form-control" placeholder="{{lang_portugueseTAG}}" value="{{pt}}" name="lang#pt#{{tag}}">
</td>
</tr>
{{/tags}}