68 lines
1.9 KiB
HTML
68 lines
1.9 KiB
HTML
<vn-watcher
|
|
vn-id="watcher"
|
|
url="SambaConfigs"
|
|
data="$ctrl.config"
|
|
id-value="1"
|
|
form="form">
|
|
</vn-watcher>
|
|
<form
|
|
name="form"
|
|
ng-submit="watcher.submit()"
|
|
class="vn-w-md">
|
|
<vn-card class="vn-pa-lg" vn-focus>
|
|
<vn-vertical>
|
|
<vn-check
|
|
label="Enable synchronization"
|
|
ng-model="watcher.hasData">
|
|
</vn-check>
|
|
</vn-vertical>
|
|
<vn-vertical
|
|
ng-if="watcher.hasData"
|
|
class="vn-mt-md">
|
|
<vn-textfield
|
|
label="AD domain"
|
|
ng-model="$ctrl.config.adDomain"
|
|
rule="SambaConfig">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
label="Domain controller"
|
|
ng-model="$ctrl.config.adController"
|
|
rule="SambaConfig">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
label="AD user"
|
|
ng-model="$ctrl.config.adUser"
|
|
rule="SambaConfig">
|
|
</vn-textfield>
|
|
<vn-textfield
|
|
label="AD password"
|
|
ng-model="$ctrl.config.adPassword"
|
|
type="password"
|
|
rule="SambaConfig">
|
|
</vn-textfield>
|
|
<vn-check
|
|
label="Verify certificate"
|
|
ng-model="$ctrl.config.verifyCert">
|
|
</vn-check>
|
|
</vn-vertical>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-button
|
|
disabled="watcher.dataChanged()"
|
|
label="Test connection"
|
|
ng-click="$ctrl.onTestConection()">
|
|
</vn-button>
|
|
<vn-button
|
|
label="Undo changes"
|
|
ng-if="watcher.dataChanged()"
|
|
ng-click="watcher.loadOriginalData()">
|
|
</vn-button>
|
|
</vn-button-bar>
|
|
<vn-submit
|
|
icon="save"
|
|
vn-tooltip="Save"
|
|
class="round"
|
|
fixed-bottom-right>
|
|
</vn-submit>
|
|
</form>
|