mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-24 12:08:33 -04:00
Style formulaire connexion
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/380
This commit is contained in:
1 parent
7974afa83c
commit
922129c4db
1 file changed
+31
-20
@@ -1,4 +1,24 @@
|
||||
<div class="post content">
|
||||
<style>
|
||||
h1, div > p {
|
||||
text-align:center;
|
||||
}
|
||||
p {
|
||||
margin:1em auto;
|
||||
}
|
||||
form {
|
||||
display:block;
|
||||
margin:1em auto 3em auto;
|
||||
padding:0;
|
||||
width:10em;
|
||||
}
|
||||
input, button.btn {
|
||||
display:block;
|
||||
margin:.5em auto;
|
||||
}
|
||||
input {
|
||||
width:99%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
if (Minz_Configuration::canLogIn()) {
|
||||
@@ -7,25 +27,17 @@ if (Minz_Configuration::canLogIn()) {
|
||||
|
||||
case 'form':
|
||||
?><form id="loginForm" method="post" action="<?php echo _url('index', 'formLogin'); ?>">
|
||||
<div class="form-group">
|
||||
<label class="group-name" for="username"><?php echo Minz_Translate::t('username'); ?></label>
|
||||
<div class="group-controls">
|
||||
<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="group-name" for="passwordPlain"><?php echo Minz_Translate::t('password'); ?></label>
|
||||
<div class="group-controls">
|
||||
<p>
|
||||
<label for="username"><?php echo Minz_Translate::t('username'); ?></label>
|
||||
<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
|
||||
</p><p>
|
||||
<label for="passwordPlain"><?php echo Minz_Translate::t('password'); ?></label>
|
||||
<input type="password" id="passwordPlain" required="required" />
|
||||
<input type="hidden" id="challenge" name="challenge" />
|
||||
<input type="hidden" id="challenge" name="challenge" /><br />
|
||||
<noscript><strong><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></strong></noscript>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-actions">
|
||||
<div class="group-controls">
|
||||
<button id="loginButton" type="submit" class="btn btn-important"><?php echo Minz_Translate::t('login'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</p><p>
|
||||
<button id="loginButton" type="submit" class="btn btn-important"><?php echo Minz_Translate::t('login'); ?></button>
|
||||
</p>
|
||||
</form><?php
|
||||
break;
|
||||
|
||||
@@ -39,5 +51,4 @@ if (Minz_Configuration::canLogIn()) {
|
||||
}
|
||||
?>
|
||||
|
||||
<p><a href="<?php echo _url('index', 'about'); ?>"><?php echo Minz_Translate::t('about_freshrss'); ?></a></p>
|
||||
</div>
|
||||
<p><a href="<?php echo _url('index', 'about'); ?>"><?php echo Minz_Translate::t('about_freshrss'); ?></a></p>
|
||||
Reference in new issue
Block a user