diff options
author | Christian Hofmaier | 2020-09-08 20:56:19 +0200 |
---|---|---|
committer | Christian Hofmaier | 2020-09-08 20:56:19 +0200 |
commit | c535ce5e2f78f5223662c97543f718334abf2a35 (patch) | |
tree | 728fe2fcfe16e33757daeb086ba905c2f834118e /modules-available/locations/templates/location-subnets.html | |
parent | [locationinfo] Fix overriding "show hostnames" not being saved (diff) | |
download | slx-admin-c535ce5e2f78f5223662c97543f718334abf2a35.tar.gz slx-admin-c535ce5e2f78f5223662c97543f718334abf2a35.tar.xz slx-admin-c535ce5e2f78f5223662c97543f718334abf2a35.zip |
[locations] Migrate openingtimes from infoscreen to locations module
- move openingtimes from infoscreen db to locations db
- read-only openingtimes in infoscreen
Diffstat (limited to 'modules-available/locations/templates/location-subnets.html')
-rw-r--r-- | modules-available/locations/templates/location-subnets.html | 44 |
1 files changed, 40 insertions, 4 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 6062b559..b85ddbec 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -62,7 +62,7 @@ <div class="slx-bold">{{lang_locationInfo}}</div> <div class="row"> - <div class="col-md-4"> + <div class="col-md-3"> {{#haveDozmod}} <div> <span class="slx-ga2">{{lang_referencingLectures}}:</span> {{lectures}} @@ -81,7 +81,13 @@ </div> {{/haveStatistics}} </div> - <div class="col-md-4 text-center"> + <div class="col-md-3 text-center"> + <button type="button" class="btn btn-default" data-toggle="modal" data-target="#openingTimesModal{{locationid}}" onclick="loadOpeningTimes('{{locationid}}')"> + <span class="glyphicon glyphicon-time"></span> + {{lang_openingTime}} + </button> + </div> + <div class="col-md-3 text-center"> {{#roomplanner}} <a class="btn btn-default" href="?do=roomplanner&locationid={{locationid}}" target="_blank" onclick="window.open(this.href, '_blank', 'toolbar=0,scrollbars,resizable');return false"> @@ -91,7 +97,7 @@ </a> {{/roomplanner}} </div> - <div class="col-md-4 text-right"> + <div class="col-md-3 text-right"> <button {{perms.location.delete.disabled}} type="button" class="btn btn-danger" data-toggle="modal" data-target="#deleteLocationModal{{locationid}}"><span class="glyphicon glyphicon-trash"></span> {{lang_deleteLocation}}</button> <button onclick="deleteSubnetWarning('{{locationid}}')" {{perms.save_button.disabled}} type="button" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button> </div> @@ -130,4 +136,34 @@ </div> </form> -</div>
\ No newline at end of file +</div> + +<div class="modal fade" id="openingTimesModal{{locationid}}" tabindex="-1" role="dialog"> + <div class="modal-dialog"> + + <div class="modal-content"> + <form method="post" action="?do=Locations" id="settings-form"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="updateOpeningtimes"> + <input type="hidden" name="page" value="details"> + <input type="hidden" name="openingtimes" id="json-openingtimes" value=""> + + <div class="modal-header">{{locationname}}</div> + <div class="modal-body"></div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">{{lang_close}}</button> + <button type="submit" class="btn btn-primary"> + <span class="glyphicon glyphicon-floppy-disk"></span> + {{lang_save}} + </button> + </div> + + </form> + </div> + + </div> +</div> + +<script type="text/javascript"> + $('#settings-form').submit(submitLocationSettings); +</script>
\ No newline at end of file |