diff options
author | Simon Rettberg | 2016-06-22 17:56:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-06-22 17:56:04 +0200 |
commit | a6a484ea37aeb91f848c11cb818e2d7d4351d391 (patch) | |
tree | 03cc7b9df8dabf61bdb1bc84137601ce187339ef /modules-available/sysconfig/templates/list-configs.html | |
parent | [location] Support passing array of selected locs to getLocations() (diff) | |
download | slx-admin-a6a484ea37aeb91f848c11cb818e2d7d4351d391.tar.gz slx-admin-a6a484ea37aeb91f848c11cb818e2d7d4351d391.tar.xz slx-admin-a6a484ea37aeb91f848c11cb818e2d7d4351d391.zip |
[locations/sysconfig] Implement location specific sysconfig
Diffstat (limited to 'modules-available/sysconfig/templates/list-configs.html')
-rw-r--r-- | modules-available/sysconfig/templates/list-configs.html | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/modules-available/sysconfig/templates/list-configs.html b/modules-available/sysconfig/templates/list-configs.html new file mode 100644 index 00000000..ed027385 --- /dev/null +++ b/modules-available/sysconfig/templates/list-configs.html @@ -0,0 +1,115 @@ +{{#locationid}} +<div class="col-md-12"> + <h1>{{locationname}}</h1> + <div class="alert alert-info"> + <span class="glyphicon glyphicon-exclamation-sign"></span> + {{lang_editingLocationInfo}} + </div> +</div> +{{/locationid}} +<div class="col-md-6"> + <div class="panel panel-default"> + <div class="panel-heading"> + {{lang_availableSystem}} + <a class="btn btn-default" data-toggle="modal" data-target="#help-config"><span class="glyphicon glyphicon-question-sign"></span></a> + </div> + <div class="panel-body"> + <form method="post" action="?do=SysConfig"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="config"> + <input type="hidden" name="locationid" value="{{locationid}}"> + <table id="conftable" class="slx-table" style="max-width:100px !important"> + {{#configs}} + <tr> + <td data-modlist="{{modlist}}" class="slx-pointer slx-width-ignore slx-nowrap"onclick="showmod(this, 'bold')" onmouseover="showmod(this, 'fade')" onmouseout="showmod(this, 'reset')" width="100%"> + <div class="slx-dyn-ellipsis">{{config}}</div> + </td> + <td> + {{^current}} + <button class="btn btn-primary btn-xs" name="activate" value="{{configid}}"> + <span class="glyphicon glyphicon-flag"></span> + {{lang_activate}} + </button> + {{/current}} + {{#current}} + <span class="btn btn-success btn-xs slx-nopointer"> + <span class="glyphicon glyphicon-ok"></span> + {{lang_active}} + </span> + {{/current}} + </td> + <td> + {{#locationCount}} + <span class="badge" {{#readableLocList}} data-toggle="tooltip" data-placement="top" title="{{readableLocList}}" {{/readableLocList}} > + +{{locationCount}} + </span> + {{/locationCount}} + </td> + <td class="slx-nowrap"> + <button + {{#needrebuild}} + class="refconf btn btn-primary btn-xs" + {{/needrebuild}} + {{^needrebuild}} + class="refconf btn btn-default btn-xs" + {{/needrebuild}} + name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></button> + </td> + <td class="slx-nowrap"> + <a class="btn btn-success btn-xs" href="?do=SysConfig&action=addconfig&edit={{configid}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a> + <button class="btn btn-danger btn-xs" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button> + </td> + </tr> + {{/configs}} + {{#locationid}} + <tr> + <td><i>Vererben von übergeordnetem Raum</i></td> + <td> + {{^inheritConfig}} + <button class="btn btn-primary btn-xs" name="activate" value="0"> + <span class="glyphicon glyphicon-flag"></span> + {{lang_activate}} + </button> + {{/inheritConfig}} + {{#inheritConfig}} + <span class="btn btn-success btn-xs slx-nopointer"> + <span class="glyphicon glyphicon-ok"></span> + {{lang_active}} + </span> + {{/inheritConfig}} + </td> + <td></td> + <td></td> + </tr> + {{/locationid}} + </table> + {{^configs}} + <div class="alert alert-warning"> + {{lang_systemConfigurationNotFound}} + </div> + {{^modules}} + <div class="alert alert-danger"> + {{lang_systemConfigurationAlert}} + </div> + {{/modules}} + {{/configs}} + </form> + </div> + <div class="panel-footer"> + <a class="btn btn-primary" href="?do=SysConfig&action=addconfig">{{lang_newConfiguration}}</a> + </div> + </div> + + <div class="modal fade" id="help-config" tabindex="-1" role="dialog"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header">{{lang_systemConfiguration}}</div> + <div class="modal-body"> + {{lang_helpSystemConfiguration}} + </div> + <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div> + </div> + </div> + </div> + +</div>
\ No newline at end of file |