Cleaner admin settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d18ee78454
commit
69197003a2
|
|
@ -0,0 +1,9 @@
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
width: 33%;
|
||||||
|
min-width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-top: 25px;
|
||||||
|
}
|
||||||
|
|
@ -2,37 +2,43 @@
|
||||||
/** @var array $_ */
|
/** @var array $_ */
|
||||||
/** @var \OCP\IL10N $l */
|
/** @var \OCP\IL10N $l */
|
||||||
script('registration', 'settings');
|
script('registration', 'settings');
|
||||||
|
style('registration', 'settings');
|
||||||
?>
|
?>
|
||||||
<form id="registration_settings_form" class="section">
|
<form id="registration_settings_form" class="section">
|
||||||
<h2><?php p($l->t('Registration')); ?></h2><span id="registration_settings_msg" class="msg"></span>
|
<h2><?php p($l->t('Registration')); ?></h2><span id="registration_settings_msg" class="msg"></span>
|
||||||
|
|
||||||
|
<h3><?php p($l->t('Registered users default group')); ?></h3>
|
||||||
<p>
|
<p>
|
||||||
<label for="registered_user_group"><?php p($l->t('Default group that all registered users belong')); ?></label>
|
<label>
|
||||||
<select id="registered_user_group" name="registered_user_group">
|
<select id="registered_user_group" name="registered_user_group">
|
||||||
<option value="none" <?php echo $_['current'] === 'none' ? 'selected="selected"' : ''; ?>><?php p($l->t('None')); ?></option>
|
<option value="none" <?php echo $_['current'] === 'none' ? 'selected="selected"' : ''; ?>><?php p($l->t('None')); ?></option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($_['groups'] as $group) {
|
foreach ($_['groups'] as $group) {
|
||||||
$selected = $_['current'] === $group ? 'selected="selected"' : '';
|
$selected = $_['current'] === $group ? 'selected="selected"' : '';
|
||||||
echo '<option value="'.$group.'" '.$selected.'>'.$group.'</option>';
|
echo '<option value="'.$group.'" '.$selected.'>'.$group.'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</p>
|
</label>
|
||||||
<p>
|
|
||||||
<label for="allowed_domains"><?php p($l->t('Allowed mail address domains for registration')); ?></label>
|
|
||||||
<input type="text" id="allowed_domains" name="allowed_domains" value=<?php p($_['allowed']);?>>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<em><?php p($l->t('Enter a semicolon-separated list of allowed domains. Example: nextcloud.com;example.com'));?></em>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div style="margin-top: 10px;">
|
<h3><?php p($l->t('Allowed email domains')); ?></h3>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" id="admin_approval_required" class="checkbox" name="admin_approval_required" <?php if ($_['approval_required'] === "yes") {
|
<label>
|
||||||
echo " checked";
|
<input type="text" id="allowed_domains" name="allowed_domains" value="<?php p($_['allowed']);?>" placeholder="nextcloud.com;*.example.com">
|
||||||
} ?>>
|
</label>
|
||||||
<label for="admin_approval_required"><?php p($l->t('Require admin approval?')); ?></label>
|
</p>
|
||||||
</p>
|
<p>
|
||||||
|
<em><?php p($l->t('Enter a semicolon-separated list of allowed domains, * for wildcard. Example: %s', ['nextcloud.com;*.example.com']));?></em>
|
||||||
|
</p>
|
||||||
|
|
||||||
<em><?php p($l->t('Enabling "admin approval" will prevent registrations from mobile and desktop clients to complete as the credentials can not be verified by the client until the user was enabled.'));?></em>
|
<h3><?php p($l->t('Admin approval')); ?></h3>
|
||||||
</div>
|
<p>
|
||||||
|
<input type="checkbox" id="admin_approval_required" class="checkbox" name="admin_approval_required" <?php if ($_['approval_required'] === "yes") {
|
||||||
|
echo " checked";
|
||||||
|
} ?>>
|
||||||
|
<label for="admin_approval_required"><?php p($l->t('Require admin approval')); ?></label>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<em><?php p($l->t('Enabling "admin approval" will prevent registrations from mobile and desktop clients to complete as the credentials can not be verified by the client until the user was enabled.'));?></em>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue