aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-28 01:08:25 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-28 01:08:25 +0100
commit0842be443489690e50636b55aaceac6534645538 (patch)
tree88a60931b9e6a420d98a3aa22ae168f153d47eb9 /app
parent8ffa896e68d05403cd65bd7b1ca3d4657347c10a (diff)
Zone utilisateurs limitée à l'administrateur
Diffstat (limited to 'app')
-rw-r--r--app/views/configure/users.phtml82
1 files changed, 41 insertions, 41 deletions
diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtml
index e6bebc77c..3640a2ff4 100644
--- a/app/views/configure/users.phtml
+++ b/app/views/configure/users.phtml
@@ -4,28 +4,7 @@
<a href="<?php echo _url('index', 'index'); ?>"><?php echo Minz_Translate::t('back_to_rss_feeds'); ?></a>
<form method="post" action="<?php echo _url('configure', 'users'); ?>">
- <legend><?php echo Minz_Translate::t('users'); ?></legend>
-
- <div class="form-group">
- <div class="group-controls">
- <label class="checkbox" for="anon_access">
- <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess() == 'yes' ? ' checked="checked"' : ''; ?> />
- <?php echo Minz_Translate::t('allow_anonymous'); ?>
- </label>
- </div>
- </div>
-
- <div class="form-group">
- <label class="group-name" for="auth_type"><?php echo Minz_Translate::t('auth_type'); ?></label>
- <div class="group-controls">
- <select id="auth_type" name="auth_type">
- <option value="none">None (dangerous)</option>
- <option value="http_auth">HTTP Auth ($_SERVER['REMOTE_USER'])</option>
- <option value="persona">Mozilla Persona</option>
- </select>
- (selector not implemented yet)
- </div>
- </div>
+ <legend><?php echo Minz_Translate::t('login_configuration'); ?></legend>
<div class="form-group">
<label class="group-name" for="current_user"><?php echo Minz_Translate::t('current_user'); ?></label>
@@ -39,21 +18,23 @@
</div>
</div>
- <?php if (Minz_Configuration::isAdmin()) { ?>
-
<div class="form-group">
- <label class="group-name" for="users_list"><?php echo Minz_Translate::t('users_list'); ?></label>
+ <label class="group-name" for="mail_login"><?php echo Minz_Translate::t('persona_connection_email'); ?></label>
+ <?php $mail = $this->conf->mailLogin(); ?>
<div class="group-controls">
- <select id="users_list" name="users_list"><?php
- foreach (listUsers() as $user) {
- echo '<option>', $user, '</option>';
- }
- ?></select>
- (not implemented yet)
+ <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>" />
+ <noscript><b><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></b></noscript>
</div>
</div>
- <?php } ?>
+ <div class="form-group">
+ <label class="group-name" for="token"><?php echo Minz_Translate::t('auth_token'); ?></label>
+ <?php $token = $this->conf->token(); ?>
+ <div class="group-controls">
+ <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>"/>
+ <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
+ </div>
+ </div>
<div class="form-group form-actions">
<div class="group-controls">
@@ -62,23 +43,40 @@
</div>
</div>
- <legend><?php echo Minz_Translate::t('login_configuration'); ?></legend>
+ <?php if (Minz_Configuration::isAdmin()) { ?>
+
+ <legend><?php echo Minz_Translate::t('users'); ?></legend>
<div class="form-group">
- <label class="group-name" for="mail_login"><?php echo Minz_Translate::t('persona_connection_email'); ?></label>
- <?php $mail = $this->conf->mailLogin(); ?>
<div class="group-controls">
- <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>" />
- <noscript><b><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></b></noscript>
+ <label class="checkbox" for="anon_access">
+ <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess() == 'yes' ? ' checked="checked"' : ''; ?> />
+ <?php echo Minz_Translate::t('allow_anonymous'); ?>
+ </label>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="token"><?php echo Minz_Translate::t('auth_token'); ?></label>
- <?php $token = $this->conf->token(); ?>
+ <label class="group-name" for="auth_type"><?php echo Minz_Translate::t('auth_type'); ?></label>
<div class="group-controls">
- <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>"/>
- <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
+ <select id="auth_type" name="auth_type">
+ <option value="none">None (dangerous)</option>
+ <option value="http_auth">HTTP Auth ($_SERVER['REMOTE_USER'])</option>
+ <option value="persona">Mozilla Persona</option>
+ </select>
+ (selector not implemented yet)
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="group-name" for="users_list"><?php echo Minz_Translate::t('users_list'); ?></label>
+ <div class="group-controls">
+ <select id="users_list" name="users_list"><?php
+ foreach (listUsers() as $user) {
+ echo '<option>', $user, '</option>';
+ }
+ ?></select>
+ (not implemented yet)
</div>
</div>
@@ -88,5 +86,7 @@
<button type="reset" class="btn"><?php echo Minz_Translate::t('cancel'); ?></button>
</div>
</div>
+
+ <?php } ?>
</form>
</div>