blob: 4db7b9b27bc33858eddef343179d89862d295925 (
plain) (
tree)
|
|
{{#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 table-hover" style="width:100%">
{{#configs}}
<tr>
<td data-id="{{configid}}" data-modlist="{{modlist}}" class="confrow slx-pointer" width="100%">
<table class="slx-ellipsis"><tr><td>{{config}}</td></tr></table>
</td>
<td>
{{^current}}
<button class="btn btn-primary btn-xs" name="activate" value="{{configid}}" {{perms.config.assign.disabled}}>
<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="text-nowrap">
{{^locationid}}
<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}}"
{{perms.config.edit.disabled}}>
<span class="glyphicon glyphicon-refresh"></span>
</button>
{{/locationid}}
</td>
<td class="text-nowrap">
{{^locationid}}
<a class="btn btn-success btn-xs {{perms.config.edit.disabled}}"
href="?do=SysConfig&action=addconfig&edit={{configid}}" title="{{lang_edit}}">
<span class="glyphicon glyphicon-edit"></span>
</a>
<button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}"
title="{{lang_delete}}" {{perms.config.edit.disabled}}>
<span class="glyphicon glyphicon-trash"></span>
</button>
{{/locationid}}
</td>
</tr>
{{/configs}}
{{#locationid}}
<tr>
<td><table class="slx-ellipsis"><tr><td><i>{{lang_inheritFromParentLoc}}</i></td></tr></table></td>
<td>
{{^inheritConfig}}
<button class="btn btn-info 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>
{{^locationid}}
<div class="panel-footer text-right">
<a class="btn btn-primary {{perms.config.edit.disabled}}" href="?do=SysConfig&action=addconfig">
{{lang_newConfiguration}}
</a>
</div>
{{/locationid}}
</div>
<div class="modal fade" id="help-config" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><b>{{lang_systemConfiguration}}</b></h4>
</div>
<div class="modal-body">
{{lang_helpSystemConfiguration}}
</div>
</div>
</div>
</div>
</div>
|