]> git.wh0rd.org - tt-rss.git/blobdiff - modules/pref-feeds.php
refactor feed subscription/browser dialogs
[tt-rss.git] / modules / pref-feeds.php
index 698aa1525c81303aab51d2ee655fc81c78bd04f7..d0bc194a46064914df9e21d00c48ab921d0ee176 100644 (file)
                        /* Title */
 
                        print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
+                               placeHolder=\"".__("Feed Title")."\"
                                style=\"font-size : 16px; width: 20em\" name=\"title\" value=\"$title\">";
 
                        /* Feed URL */
 
                        print __('URL:') . " ";
                        print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
+                               placeHolder=\"".__("Feed URL")."\"
                                regExp='^(http|https)://.*' style=\"width : 20em\"
                                name=\"feed_url\" value=\"$feed_url\">";
 
 
                        $auth_login = htmlspecialchars(db_fetch_result($result, 0, "auth_login"));
 
-                       print "<table>";
+#                      print "<table>";
 
-                       print "<tr><td>" . __('Login:') . "</td><td>";
+#                      print "<tr><td>" . __('Login:') . "</td><td>";
 
                        print "<input dojoType=\"dijit.form.TextBox\" 
-                               name=\"auth_login\" value=\"$auth_login\">";
+                               placeHolder=\"".__("Login")."\"
+                               name=\"auth_login\" value=\"$auth_login\"><br/>";
 
-                       print "</tr><tr><td>" . __("Password:") . "</td><td>";
+#                      print "</tr><tr><td>" . __("Password:") . "</td><td>";
 
                        $auth_pass = htmlspecialchars(db_fetch_result($result, 0, "auth_pass"));
 
                        print "<input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\" 
+                               placeHolder=\"".__("Password")."\"
                                value=\"$auth_pass\">";
 
-                       print "</td></tr></table>";
+#                      print "</td></tr></table>";
 
                        print "</div>";
                        print "<div class=\"dlgSec\">".__("Options")."</div>";
                                <input type=\"submit\" class=\"button\" 
                                onclick=\"return feedsEditSave()\" value=\"".__('Save')."\">
                                <input type='submit' class='button'                     
-                               onclick=\"return feedEditCancel()\" value=\"".__('Cancel')."\">
+                               onclick=\"return closeInfoBox()\" value=\"".__('Cancel')."\">
                                </div>";
 
                        print "]]></content></dlg>";
        
                                        $check_box = "<input onclick='toggleSelectListRow2(this)' 
                                                dojoType=\"dijit.form.CheckBox\"
-                                               type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
+                                               type=\"checkbox\" \">";
        
                                        $class = ($feedctr % 2) ? "even" : "odd";
        
                                                $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
                                        }
 
-                                       $check_box = "<input onclick='toggleSelectListRow(this)' class='feedBrowseCB' 
-                                               type=\"checkbox\" id=\"FBCHK-" . $line["id"] . "\">";
+                                       $check_box = "<input onclick='toggleSelectListRow2(this)' dojoType=\"dijit.form.CheckBox\"
+                                               type=\"checkbox\">";
        
                                        $class = ($feedctr % 2) ? "even" : "odd";