60 lines
3.2 KiB
HTML
60 lines
3.2 KiB
HTML
<div class="console-config__container">
|
||
<div loading-spinner if="dataLoading" overlay="true" fixed-full-screen="true"></div>
|
||
<table class="console-config__table">
|
||
<thead>
|
||
<tr>
|
||
<th colspan="2">{{'console.config.providerSettings.providers' | i18n}}</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="data in providerData | filter : paginate" name="data.name" ng-if="data.active" ng-model="selected" ng-class="{'selected-row': data.id === isSelectedRow}">
|
||
<td class="provider-checkbox">
|
||
<input type="checkbox" ng-checked="data.enabled" ng-click="providerStatusChange(data)" ng-disabled="data.instanceName !== 'mcsm'" class="console-config__checkbox" />
|
||
</td>
|
||
<td ng-class="(data.settings.length > 0) ? 'pointer-cursor' : 'normal-cursor'" ng-click="settingsDisplay(data)">{{data.name}}</td>
|
||
</tr>
|
||
</tbody>
|
||
<tfoot>
|
||
<tr>
|
||
<td colspan="2">{{'console.config.providerSettings.total' | i18n}}: {{pagination.totalItems}}</td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
<pagination previous-text="‹" next-text="›" first-text="«" last-text="»" total-items="pagination.totalItems" ng-model="pagination.currentPage"
|
||
max-size="5" boundary-links="true"
|
||
items-per-page="pagination.numPerPage" class="pagination-sm">
|
||
</pagination>
|
||
|
||
<div class="console-config__reload-providers">
|
||
<button class="btn_primary" ng-click="reloadProviders()">{{'console.config.providerSettings.reload' | i18n}}</button>
|
||
</div>
|
||
|
||
<div id="provider-settings" class="console-config__provider-settings" ng-if="showSettings && settingsData && settingsData.length">
|
||
<div ng-form="formHolder.providerSettingsForm">
|
||
<table class="console-config__table console__config-setting">
|
||
<thead>
|
||
<tr>
|
||
<th colspan="2">{{'console.config.providerSettings.title' | i18n}}</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="setting in settingsData">
|
||
<td>{{getValidLabel(setting)}}</td>
|
||
<td ng-if="setting.value !== 'true' && setting.value !== 'false'" >
|
||
<input ng-model="setting.value" type="{{getValidInputType(setting)}}"/>
|
||
</td>
|
||
<td ng-if="setting.value === 'true' || setting.value === 'false'" class="provider-checkbox">
|
||
<span ng-click="flipCheckbox(setting)" ng-model="setting.value" ng-class="setting.value === 'true' ? 'icon-left-check_square_o' : 'icon-left-square_o'" class="console-config__checkbox icon-left-check_square_o"></span>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<tfoot>
|
||
<tr>
|
||
<td colspan="2"><button class="btn_primary" ng-disabled="!formHolder.providerSettingsForm.$dirty" ng-click="submitSettings()">{{'console.config.providerSettings.update' | i18n}}</button></td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
</div> |