summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates/page-panels.html
diff options
context:
space:
mode:
authorSimon Rettberg2017-06-13 18:32:23 +0200
committerSimon Rettberg2017-06-13 18:32:23 +0200
commit0085d9309252fc1eec276b6eb05f271a140bee5d (patch)
tree01b36229b0b6e1a7477274ba8b62231c1b82ccbb /modules-available/locationinfo/templates/page-panels.html
parent[locationinfo] Location edit part done so far (diff)
downloadslx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.gz
slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.xz
slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.zip
[locationinfo] slxadmin part done, todo: frontend+api
Diffstat (limited to 'modules-available/locationinfo/templates/page-panels.html')
-rw-r--r--modules-available/locationinfo/templates/page-panels.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/modules-available/locationinfo/templates/page-panels.html b/modules-available/locationinfo/templates/page-panels.html
new file mode 100644
index 00000000..e4894571
--- /dev/null
+++ b/modules-available/locationinfo/templates/page-panels.html
@@ -0,0 +1,57 @@
+<h2>{{lang_panelsTable}}</h2>
+
+<p>{{lang_panelsTableHints}}</p>
+
+<table class="table table-hover">
+ <thead>
+ <tr>
+ <th>{{lang_panel}}</th>
+ <th>{{lang_panelType}}</th>
+ <th>{{lang_locations}}</th>
+ <th width="1"></th>
+ <th width="1"></th>
+ </tr>
+ </thead>
+ <tbody>
+ <form method="post" action="?do=locationinfo" onsubmit="return confirm('{{lang_areYouSure}}')">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="deletePanel">
+ {{#panels}}
+ <tr>
+ <td>
+ {{panelname}}
+ </td>
+ <td>
+ {{paneltype}}
+ </td>
+ <td>
+ {{locations}}
+ </td>
+ <td>
+ <a class="btn btn-default btn-xs" href="?do=locationinfo&amp;show=edit-panel&amp;uuid={{paneluuid}}">
+ <span class="glyphicon glyphicon-cog"></span>
+ {{lang_edit}}
+ </a>
+ </td>
+ <td>
+ <button type="submit" name="uuid" value="{{paneluuid}}" class="btn btn-danger btn-xs">
+ <span class="glyphicon glyphicon-trash"></span>
+ {{lang_delete}}
+ </button>
+ </td>
+ </tr>
+ {{/panels}}
+ </form>
+ </tbody>
+</table>
+
+<div>
+ <a class="btn btn-sm btn-success" href="?do=locationinfo&amp;show=edit-panel&amp;uuid=new-default">
+ <span class="glyphicon glyphicon-plus"></span>
+ {{lang_defaultPanel}}
+ </a>
+ <a class="btn btn-sm btn-success" href="?do=locationinfo&amp;show=edit-panel&amp;uuid=new-summary">
+ <span class="glyphicon glyphicon-plus"></span>
+ {{lang_summaryPanel}}
+ </a>
+</div> \ No newline at end of file