Skip to content
Snippets Groups Projects
Commit c1499f98 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

update Global Settings page to new layout.

parent 34f8a52a
Branches
Tags
No related merge requests found
<div class="wrapper mt4">
<h2>Settings</h2>
<table class="Table my2">
<tr>
<th>Name</th>
<th>Description</th>
<th>Value</th>
</tr>
<tr ng-repeat="setting in settings">
<td>{{setting.key}}</td>
<td>{{setting.description}}</td>
<td>
<input class="input block full" type="text" placeholder="{{setting.default}}" ng-model="setting.value"></input>
</td>
<td>
<div class="float-right">
<button class="Button Button--primary" ng-click="saveSetting(setting)" ng-disabled="!setting.value || setting.value === setting.originalValue">Save</button>
<button class="mx2 Button Button--remove" ng-click="deleteSetting(setting)" ng-disabled="!setting.originalValue">Clear</button>
</div>
</td>
</tr>
</table>
<div class="wrapper">
<section>
<h2 class="PageTitle">Global Settings</h2>
</section>
<section>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Value</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-show="!settings">
<td colspan=4>
<cv-loading-icon></cv-loading-icon>
<h3>Loading ...</h3>
</td>
</tr>
<tr ng-repeat="setting in settings">
<td>{{setting.key}}</td>
<td>{{setting.description}}</td>
<td>
<input class="input block full" type="text" placeholder="{{setting.default}}" ng-model="setting.value"></input>
</td>
<td>
<button class="Button Button--primary" ng-click="saveSetting(setting)" ng-disabled="!setting.value || setting.value === setting.originalValue">Save</button>
<button class="mx2 Button Button--remove" ng-click="deleteSetting(setting)" ng-disabled="!setting.originalValue">Clear</button>
</td>
</tr>
</tbody>
</table>
</section>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment