Use SettingsSection
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
467029bf89
commit
29023f2851
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -21,8 +21,8 @@
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div id="registration_settings_form">
|
<div id="registration_settings_form">
|
||||||
<div class="section">
|
<SettingsSection
|
||||||
<h2>{{ t('registration', 'Registration settings') }}</h2>
|
:title="t('registration', 'Registration settings')">
|
||||||
<p>
|
<p>
|
||||||
<input id="admin_approval"
|
<input id="admin_approval"
|
||||||
v-model="adminApproval"
|
v-model="adminApproval"
|
||||||
|
|
@ -55,11 +55,10 @@
|
||||||
@search-change="searchGroup"
|
@search-change="searchGroup"
|
||||||
@change="saveData" />
|
@change="saveData" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</SettingsSection>
|
||||||
|
|
||||||
<div class="section">
|
|
||||||
<h2>{{ t('registration', 'Email settings') }}</h2>
|
|
||||||
|
|
||||||
|
<SettingsSection
|
||||||
|
:title="t('registration', 'Email settings')">
|
||||||
<p>
|
<p>
|
||||||
<label for="allowed_domains">{{ domainListLabel }}</label>
|
<label for="allowed_domains">{{ domainListLabel }}</label>
|
||||||
<input
|
<input
|
||||||
|
|
@ -105,11 +104,10 @@
|
||||||
@change="saveData">
|
@change="saveData">
|
||||||
<label for="disable_email_verification">{{ t('registration', 'Disable email verification') }}</label>
|
<label for="disable_email_verification">{{ t('registration', 'Disable email verification') }}</label>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</SettingsSection>
|
||||||
|
|
||||||
<div class="section">
|
|
||||||
<h2>{{ t('registration', 'User settings') }}</h2>
|
|
||||||
|
|
||||||
|
<SettingsSection
|
||||||
|
:title="t('registration', 'User settings')">
|
||||||
<p>
|
<p>
|
||||||
<input id="email_is_login"
|
<input id="email_is_login"
|
||||||
v-model="emailIsLogin"
|
v-model="emailIsLogin"
|
||||||
|
|
@ -185,12 +183,11 @@
|
||||||
@change="saveData">
|
@change="saveData">
|
||||||
<label for="enforce_phone">{{ t('registration', 'Enforce phone field') }}</label>
|
<label for="enforce_phone">{{ t('registration', 'Enforce phone field') }}</label>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</SettingsSection>
|
||||||
|
|
||||||
<div class="section">
|
|
||||||
<h2>{{ t('registration', 'User instructions') }}</h2>
|
|
||||||
<em>{{ t('registration', 'Caution: The user instructions will not be translated and will therefore be displayed as configured below for all users regardless of their actual language.') }}</em>
|
|
||||||
|
|
||||||
|
<SettingsSection
|
||||||
|
:title="t('registration', 'User instructions')"
|
||||||
|
:description="t('registration', 'Caution: The user instructions will not be translated and will therefore be displayed as configured below for all users regardless of their actual language.')">
|
||||||
<h3>{{ t('registration', 'Registration form instructions') }}</h3>
|
<h3>{{ t('registration', 'Registration form instructions') }}</h3>
|
||||||
<p>
|
<p>
|
||||||
<input v-model="additionalHint"
|
<input v-model="additionalHint"
|
||||||
|
|
@ -214,12 +211,13 @@
|
||||||
@input="debounceSavingSlow">
|
@input="debounceSavingSlow">
|
||||||
</p>
|
</p>
|
||||||
<em>{{ t('registration', 'Add additional user instructions (e.g. for choosing their login name). If configured the text is embedded in the verification-email.') }}</em>
|
<em>{{ t('registration', 'Add additional user instructions (e.g. for choosing their login name). If configured the text is embedded in the verification-email.') }}</em>
|
||||||
</div>
|
</SettingsSection>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Multiselect from '@nextcloud/vue/dist/Components/Multiselect'
|
import Multiselect from '@nextcloud/vue/dist/Components/Multiselect'
|
||||||
|
import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'
|
||||||
import axios from '@nextcloud/axios'
|
import axios from '@nextcloud/axios'
|
||||||
import { showError, showSuccess } from '@nextcloud/dialogs'
|
import { showError, showSuccess } from '@nextcloud/dialogs'
|
||||||
import '@nextcloud/dialogs/styles/toast.scss'
|
import '@nextcloud/dialogs/styles/toast.scss'
|
||||||
|
|
@ -232,6 +230,7 @@ export default {
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Multiselect,
|
Multiselect,
|
||||||
|
SettingsSection,
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue