diff options
author | raul | 2014-07-15 21:06:07 +0200 |
---|---|---|
committer | raul | 2014-07-15 21:06:07 +0200 |
commit | bd9cdadb71b9cb46e7c8c629739997d2a0c1388e (patch) | |
tree | 2c8084c0132b581f6e2eb850248eddee69a77b7a /templates | |
parent | [i18n] Updated the translations (diff) | |
download | slx-admin-bd9cdadb71b9cb46e7c8c629739997d2a0c1388e.tar.gz slx-admin-bd9cdadb71b9cb46e7c8c629739997d2a0c1388e.tar.xz slx-admin-bd9cdadb71b9cb46e7c8c629739997d2a0c1388e.zip |
[i18n] Added administration interface for the i18n system
Diffstat (limited to 'templates')
-rw-r--r-- | templates/administration/_page.html | 34 | ||||
-rw-r--r-- | templates/administration/template.html | 37 | ||||
-rw-r--r-- | templates/main-menu-login.html | 1 | ||||
-rw-r--r-- | templates/main-menu-logout.html | 1 |
4 files changed, 73 insertions, 0 deletions
diff --git a/templates/administration/_page.html b/templates/administration/_page.html new file mode 100644 index 00000000..b6d11cd6 --- /dev/null +++ b/templates/administration/_page.html @@ -0,0 +1,34 @@ +<div class="container"> + <div class="panel panel-default"> + <div class="panel-heading"> + Language Administration + </div> + <div class="panel-body"> + <table class="table table-hover"> + <thead> + <tr> + <th>Template</th> + <th style='text-align:center;'>{{lang_german}}</th> + <th style='text-align:center;'>{{lang_english}}</th> + <th style='text-align:center;'>Português</th> + <tr> + </thead> + <tbody> + {{#table}} + <tr onclick="goTo('{{link}}');"> + <td>{{template}}</td> + <td style='width:200px;text-align:center;'>{{de}}</td> + <td style='width:200px;text-align:center;'>{{en}}</td> + <td style='width:200px;text-align:center;'>{{pt}}</td> + </tr> + {{/table}} + </tbody> + </table> + </div> + </div> +</div> +<script> +function goTo(link){ + window.location.href = "?do=Admin&template=" + link; +} +</script> diff --git a/templates/administration/template.html b/templates/administration/template.html new file mode 100644 index 00000000..02317472 --- /dev/null +++ b/templates/administration/template.html @@ -0,0 +1,37 @@ +<div class="container"> + <div class="panel panel-default"> + <div class="panel-heading"> + {{template}} + </div> + <div class="panel-body"> + <table class="table table-hover"> + <thead> + <tr> + <th>Mustache Tag</th> + <th style='text-align:center;'>German JSON</th> + <th style='text-align:center;'>English JSON</th> + <th style='text-align:center;'>Portuguese JSON</th> + </tr> + </thead> + <tbody> + {{#tags}} + <tr> + <td>{{tag}}</td> + <td style='width:250px;text-align:center;'> + <input type="text" class="form-control" placeholder="German TAG" value="{{de}}"> + </td> + <td style='width:250px;text-align:center;'> + <input type="text" class="form-control" placeholder="English TAG" value="{{en}}"> + </td> + <td style='width:250px;text-align:center;'> + <input type="text" class="form-control" placeholder="Portuguese TAG" value="{{pt}}"> + </td> + </tr> + {{/tags}} + </tbody> + </table> + <a class="btn btn-primary" href='?do=Admin' >Back</a> + <a class="btn btn-primary" href='#' >Update</a> + </div> + </div> +</div> diff --git a/templates/main-menu-login.html b/templates/main-menu-login.html index e9459e90..2b165fb5 100644 --- a/templates/main-menu-login.html +++ b/templates/main-menu-login.html @@ -19,6 +19,7 @@ <li><a href="?do=SysConfig">{{lang_localization}}</a></li> <li><a href="?do=MiniLinux">bwLehrpool Mini-Linux</a></li> <li><a href="?do=BaseConfig">{{lang_configurationVariables}}</a></li> + <li><a href="?do=Admin">Admin</a></li> <li class="divider"></li> <li class="dropdown-header">{{lang_server}}</li> <li><a href="?do=ServerSetup">{{lang_configurationBasic}}</a></li> diff --git a/templates/main-menu-logout.html b/templates/main-menu-logout.html index eab8bfa1..abe2c516 100644 --- a/templates/main-menu-logout.html +++ b/templates/main-menu-logout.html @@ -19,6 +19,7 @@ <li><a href="?do=SysConfig">{{lang_localization}}</a></li> <li><a href="?do=MiniLinux">bwLehrpool Mini-Linux</a></li> <li><a href="?do=BaseConfig">{{lang_configurationVariables}}</a></li> + <li><a href="?do=Admin">Admin</a></li> <li class="divider"></li> <li class="dropdown-header">{{lang_server}}</li> <li><a href="?do=ServerSetup">{{lang_configurationBasic}}</a></li> |