]> git.wh0rd.org Git - tt-rss.git/commitdiff
login form: resize input fields, fix missing error output
authorAndrew Dolgov <fox@fakecake.org>
Mon, 10 Sep 2012 16:37:41 +0000 (20:37 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Mon, 10 Sep 2012 16:37:41 +0000 (20:37 +0400)
classes/handler/public.php
include/login_form.php

index 4b595d49a5c7e7faac7bfe784af9f8d01d742146..3f65275a3d6a9ffef64090d3d7bf9297fea805bd 100644 (file)
@@ -199,7 +199,7 @@ class Handler_Public extends Handler {
                $result = db_query($this->link, "SELECT * FROM ttrss_settings_profiles,ttrss_users
                        WHERE ttrss_users.id = ttrss_settings_profiles.owner_uid AND login = '$login' ORDER BY title");
 
-               print "<select dojoType='dijit.form.Select' name='profile'>";
+               print "<select dojoType='dijit.form.Select' style='width : 220px; margin : 0px' name='profile'>";
 
                print "<option value='0'>" . __("Default profile") . "</option>";
 
index ba2917efa76df0311c03da2a497466463e8fcc95..865709f0e40fdd498a0d6bd787525a54362bbeee 100644 (file)
        div.row {
                padding : 0px 0px 5px 0px;
        }
+
+       div.row-error {
+               color : red;
+               text-align : center;
+               padding : 0px 0px 5px 0px;
+       }
+
        </style>
 </head>
 
@@ -142,11 +149,17 @@ function bwLimitChange(elem) {
 <div class='form'>
 
        <fieldset>
-
+               <?php if ($_SESSION["login_error_msg"]) { ?>
+               <div class="row-error">
+                       <?php echo $_SESSION["login_error_msg"] ?>
+               </div>
+                       <?php $_SESSION["login_error_msg"] = ""; ?>
+               <?php } ?>
                <div class="row">
                        <label><?php echo __("Login:") ?></label>
                        <input name="login"
                                onchange="fetchProfiles()" onfocus="fetchProfiles()" onblur="fetchProfiles()"
+                               style="width : 220px"
                                dojoType="dijit.form.TextBox" required="1"
                                value="<?php echo $_SESSION["fake_login"] ?>" />
                </div>
@@ -154,6 +167,7 @@ function bwLimitChange(elem) {
                <div class="row">
                        <label><?php echo __("Password:") ?></label>
                        <input type="password" name="password" dojoType="dijit.form.TextBox" required="1"
+                                       style="width : 220px"
                                        value="<?php echo $_SESSION["fake_password"] ?>"/>
                </div>
 
@@ -161,14 +175,15 @@ function bwLimitChange(elem) {
                        <label><?php echo __("Language:") ?></label>
                        <?php
                                print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
-                                       "dojoType='dijit.form.Select'");
+                                       "style='width : 220px; margin : 0px' dojoType='dijit.form.Select'");
                        ?>
                </div>
 
                <div class="row">
                        <label><?php echo __("Profile:") ?></label>
 
-                       <span id='profile_box'><select disabled='disabled' dojoType='dijit.form.Select'>
+                       <span id='profile_box'><select disabled='disabled' dojoType='dijit.form.Select'
+                               style='width : 220px; margin : 0px'>
                                <option><?php echo __("Default profile") ?></option></select></span>
 
                </div>