summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates/page-config-panel-summary.html
diff options
context:
space:
mode:
authorChristian Hofmaier2018-10-11 15:29:03 +0200
committerChristian Hofmaier2018-10-11 15:29:03 +0200
commit410946b3c55f5b1b3a8e5f1056504caebca37ee1 (patch)
tree7ed70291674e5383ef2de78a1fdd1ea8385b2164 /modules-available/locationinfo/templates/page-config-panel-summary.html
parent[locationinfo] disable add location when 4 rooms in list in default-panel-config (diff)
downloadslx-admin-410946b3c55f5b1b3a8e5f1056504caebca37ee1.tar.gz
slx-admin-410946b3c55f5b1b3a8e5f1056504caebca37ee1.tar.xz
slx-admin-410946b3c55f5b1b3a8e5f1056504caebca37ee1.zip
[locationinfo] apply design guidelines / table styling
- move buttons to the right hand side - use modals for confirmation check - table styling/adjustment -- add missing headers -- remove text from buttons in table -- center buttons / header-text - improve language-tags
Diffstat (limited to 'modules-available/locationinfo/templates/page-config-panel-summary.html')
-rw-r--r--modules-available/locationinfo/templates/page-config-panel-summary.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules-available/locationinfo/templates/page-config-panel-summary.html b/modules-available/locationinfo/templates/page-config-panel-summary.html
index 7f145916..11f0dc65 100644
--- a/modules-available/locationinfo/templates/page-config-panel-summary.html
+++ b/modules-available/locationinfo/templates/page-config-panel-summary.html
@@ -101,7 +101,7 @@
<div class="panel-heading">{{lang_locations}}</div>
<div class="panel-body">
<input type="hidden" name="locationids" value="{{locationids}}" id="locationids">
- <p>{{lang_fourLocsHint}}</p>
+ <p>{{lang_locsHint}}</p>
<ul id="selected-locations" class="list-unstyled">
</ul>
@@ -122,8 +122,10 @@
</div>
</div>
- <a href="?do=locationinfo&amp;show=panels" class="btn btn-default">{{lang_cancel}}</a>
- <button type="submit" class="btn btn-primary">{{lang_save}}</button>
+ <div class="text-right">
+ <a href="?do=locationinfo&amp;show=panels" class="btn btn-default">{{lang_cancel}}</a>
+ <button type="submit" class="btn btn-primary">{{lang_save}}</button>
+ </div>
</form>
<div class="modal fade" id="no-locations-message" tabindex="-1" role="dialog">
@@ -171,6 +173,7 @@ document.addEventListener("DOMContentLoaded", function () {
// Adding/removing locations
$locList.find('a').click(function(ev) {
ev.preventDefault();
+ ev.stopPropagation();
var $this = $(this);
var name = $this.find('.name').text();
var id = $this.data('lid');
@@ -187,8 +190,8 @@ document.addEventListener("DOMContentLoaded", function () {
function addLocation(id, name) {
$selLocs.find('li[data-lid="' + id + '"]').remove();
- var delButton = $('<button class="btn btn-danger btn-xs" type="button">').append($('<span class="glyphicon glyphicon-remove">')).click(delParent);
- $selLocs.append($('<li>').attr('data-lid', id).text(name).prepend(delButton));
+ var delButton = $('<button style="margin-right: 5px;" class="btn btn-danger btn-xs" type="button">').append($('<span class="glyphicon glyphicon-remove">')).click(delParent);
+ $selLocs.append($('<li style="margin-top: 5px;">').attr('data-lid', id).text(name).prepend(delButton));
}
function delParent() {