2020-10-31 21:56:02 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="AccountConfigs"
|
|
|
|
data="$ctrl.config"
|
|
|
|
id-value="1"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="watcher.submit()"
|
|
|
|
class="vn-w-md">
|
2020-11-07 20:05:14 +00:00
|
|
|
<vn-card class="vn-pa-lg" vn-focus>
|
2020-10-31 21:56:02 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-textfield
|
2020-11-12 22:20:25 +00:00
|
|
|
label="Homedir base"
|
2020-10-31 21:56:02 +00:00
|
|
|
ng-model="$ctrl.config.homedir"
|
2020-11-07 20:05:14 +00:00
|
|
|
rule="AccountConfig">
|
2020-10-31 21:56:02 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
label="Shell"
|
|
|
|
ng-model="$ctrl.config.shell"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-input-number
|
2020-11-12 22:20:25 +00:00
|
|
|
label="User and role base id"
|
2020-10-31 21:56:02 +00:00
|
|
|
ng-model="$ctrl.config.idBase"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
label="Min"
|
|
|
|
ng-model="$ctrl.config.min"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
|
|
|
label="Max"
|
|
|
|
ng-model="$ctrl.config.max"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
label="Warn"
|
|
|
|
ng-model="$ctrl.config.warn"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
|
|
|
label="Inact"
|
|
|
|
ng-model="$ctrl.config.inact"
|
|
|
|
rule="AccountConfig">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-button
|
|
|
|
label="Undo changes"
|
|
|
|
ng-if="watcher.dataChanged()"
|
|
|
|
ng-click="watcher.loadOriginalData()">
|
|
|
|
</vn-button>
|
2020-11-12 22:20:25 +00:00
|
|
|
<vn-button
|
|
|
|
ng-if="!watcher.dataChanged()"
|
|
|
|
label="Synchronize all"
|
|
|
|
ng-click="$ctrl.onSynchronizeAll()">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
ng-if="!watcher.dataChanged()"
|
|
|
|
label="Synchronize user"
|
|
|
|
ng-click="syncUser.show()">
|
|
|
|
</vn-button>
|
|
|
|
<vn-button
|
|
|
|
ng-if="!watcher.dataChanged()"
|
|
|
|
label="Synchronize roles"
|
|
|
|
ng-click="$ctrl.onSynchronizeRoles()">
|
|
|
|
</vn-button>
|
2020-10-31 21:56:02 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
<vn-submit
|
|
|
|
icon="save"
|
|
|
|
vn-tooltip="Save"
|
|
|
|
class="round"
|
|
|
|
fixed-bottom-right>
|
|
|
|
</vn-submit>
|
|
|
|
</form>
|
2020-11-12 22:20:25 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="syncUser"
|
|
|
|
on-accept="$ctrl.onUserSync()"
|
|
|
|
on-close="$ctrl.onSyncClose()">
|
|
|
|
<tpl-body>
|
|
|
|
<vn-textfield
|
|
|
|
label="Username"
|
|
|
|
ng-model="$ctrl.syncUser"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
label="Password"
|
|
|
|
ng-model="$ctrl.syncPassword"
|
|
|
|
type="password"
|
|
|
|
info="If password is not specified, just user attributes are synchronized">
|
|
|
|
</vn-textfield>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Synchronize</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|