|
|
@@ -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>
|