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/locations/templates | |
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/locations/templates')
-rw-r--r-- | modules-available/locations/templates/locations.html | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index e8b5d707..11142ef8 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -6,34 +6,59 @@ <table class="table table-condensed" style="margin-bottom:0px"> <tr> <th width="100%">{{lang_locationName}}</th> - <th></th> + <th>{{#havestatistics}}{{lang_machineCount}}{{/havestatistics}}</th> + <th class="slx-nowrap">{{lang_editConfigVariables}}</th> + {{#havesysconfig}} + <th class="slx-nowrap"> + {{#havebaseconfig}}{{lang_sysConfig}}{{/havebaseconfig}} + </th> + {{/havesysconfig}} </tr> {{#list}} <tr> <td> <div style="display:inline-block;width:{{depth}}em"></div> - <a href="#" onclick="slxOpenLocation(this, {{locationid}})">{{locationname}}<b class="caret"></b></a> + <a href="#" onclick="slxOpenLocation(this, {{locationid}})">{{locationname}} <b class="caret"></b></a> </td> <td class="slx-nowrap" align="right"> {{#havestatistics}} {{clientCount}} <a class="btn btn-default btn-xs" href="?do=Statistics&filter=location&argument={{locationid}}"><span class="glyphicon glyphicon-eye-open"></span></a> {{/havestatistics}} + </td> + <td class="slx-nowrap"> {{#havebaseconfig}} - <a class="btn btn-success btn-xs" href="?do=baseconfig&module=locations&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span> {{lang_editConfigVariables}}</a> + <div class="pull-right" style="z-index:-1"> + <a class="btn btn-default btn-xs" href="?do=baseconfig&module=locations&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a> + </div> + {{#overriddenVars}} + {{lang_overrideCount}}: {{overriddenVars}} + {{/overriddenVars}} {{/havebaseconfig}} </td> + <td class="slx-nowrap"> + <div class="pull-right"> + <a class="btn btn-default btn-xs" href="?do=sysconfig&locationid={{locationid}}"><span class="glyphicon glyphicon-edit"></span></a> + </div> + <span class="{{configClass}}"> + {{configName}} + </span> + {{#havesysconfig}} + {{/havesysconfig}} + </td> </tr> {{/list}} {{#unassignedCount}} <tr> - <td></td> + <td>{{lang_unassignedMachines}}</td> <td class="slx-nowrap" align="right"> - {{lang_unassignedMachines}}: {{unassignedCount}} + {{unassignedCount}} <a class="btn btn-default btn-xs" href="?do=Statistics&filter=location&argument=0"> <span class="glyphicon glyphicon-eye-open"></span> </a> </td> + <td></td> + <td>{{defaultConfig}}</td> </tr> {{/unassignedCount}} </table> |