diff options
| author | 2014-01-22 20:34:00 +0100 | |
|---|---|---|
| committer | 2014-01-22 20:34:00 +0100 | |
| commit | 922129c4db5f507b13ff9fca03efddc704418e68 (patch) | |
| tree | b13f2c7fa894a730e74904c1c549610c5e9a3c61 | |
| parent | 7974afa83cef524471109304318ecbe6033303ad (diff) | |
Style formulaire connexion
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/380
| -rw-r--r-- | app/views/index/formLogin.phtml | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/app/views/index/formLogin.phtml b/app/views/index/formLogin.phtml index cc43bcd19..c92b5c187 100644 --- a/app/views/index/formLogin.phtml +++ b/app/views/index/formLogin.phtml @@ -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> |
