salix/modules/account/front/samba/index.html

72 lines
2.1 KiB
HTML
Raw Normal View History

2020-10-31 21:56:02 +00:00
<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>
2020-10-31 21:56:02 +00:00
<vn-vertical>
2020-11-02 18:58:07 +00:00
<vn-check
2023-11-17 07:56:25 +00:00
label="Enable synchronization"
2020-11-02 18:58:07 +00:00
ng-model="watcher.hasData">
</vn-check>
</vn-vertical>
<vn-vertical
ng-if="watcher.hasData"
class="vn-mt-md">
2020-10-31 21:56:02 +00:00
<vn-textfield
2023-11-17 07:56:25 +00:00
label="AD domain"
ng-model="$ctrl.config.adDomain"
2020-11-07 20:05:14 +00:00
rule="SambaConfig">
2020-10-31 21:56:02 +00:00
</vn-textfield>
<vn-textfield
2023-11-17 07:56:25 +00:00
label="Domain controller"
ng-model="$ctrl.config.adController"
2020-10-31 21:56:02 +00:00
rule="SambaConfig">
</vn-textfield>
2020-11-02 18:58:07 +00:00
<vn-textfield
2023-11-17 07:56:25 +00:00
label="AD user"
2020-11-02 18:58:07 +00:00
ng-model="$ctrl.config.adUser"
rule="SambaConfig">
</vn-textfield>
<vn-textfield
2023-11-17 07:56:25 +00:00
label="AD password"
2020-11-02 18:58:07 +00:00
ng-model="$ctrl.config.adPassword"
type="password"
rule="SambaConfig">
</vn-textfield>
2023-11-17 07:56:25 +00:00
<vn-textfield
label="User DN (without domain part)"
ng-model="$ctrl.config.userDn"
rule="SambaConfig">
</vn-textfield>
<vn-check
2023-11-17 07:56:25 +00:00
label="Verify certificate"
ng-model="$ctrl.config.verifyCert">
</vn-check>
2020-10-31 21:56:02 +00:00
</vn-vertical>
</vn-card>
<vn-button-bar>
2020-12-16 10:07:06 +00:00
<vn-submit
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
disabled="watcher.dataChanged()"
label="Test connection"
ng-click="$ctrl.onTestConection()">
</vn-button>
2020-10-31 21:56:02 +00:00
<vn-button
2020-12-16 10:07:06 +00:00
class="cancel"
2020-10-31 21:56:02 +00:00
label="Undo changes"
2020-12-16 10:07:06 +00:00
disabled="!watcher.dataChanged()"
2020-10-31 21:56:02 +00:00
ng-click="watcher.loadOriginalData()">
</vn-button>
</vn-button-bar>
2023-11-17 07:56:25 +00:00
</form>