From: Graeme M. <ma...@us...> - 2005-08-15 19:54:24
|
Update of /cvsroot/mailmanager/mailmanager/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22895 Modified Files: Tag: UI_MARK_2 master.zpt master_style_css.dtml Log Message: * Account list and username dropdowns now positioned correctly. * Master stylesheet validates (mostly putting the contents of forms inside a paragraph). * Other than an odd white bar along the very top, the page header now looks dead right. * Added a 'skip to content' link at the top so that text-only readers can skip the junk. Index: master_style_css.dtml =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/www/master_style_css.dtml,v retrieving revision 1.10.4.3 retrieving revision 1.10.4.4 diff -u -d -r1.10.4.3 -r1.10.4.4 --- master_style_css.dtml 8 Aug 2005 16:25:38 -0000 1.10.4.3 +++ master_style_css.dtml 15 Aug 2005 19:54:13 -0000 1.10.4.4 @@ -69,8 +69,12 @@ float: right; } +#header p { + margin: 0; +} + #nav ul { - margin: 0 0 0 0; + margin: 0; padding: 10px 10px 0; list-style: none; white-space: nowrap; @@ -87,6 +91,7 @@ #getTicket { float: left !important; background: inherit !important; + margin-top: -15px !important; } #nav ul > li > a { @@ -330,3 +335,7 @@ .visualFontSizeCorrection { background-color: #ffffff; } + +.hidden { + display: none; +} \ No newline at end of file Index: master.zpt =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/www/master.zpt,v retrieving revision 1.33.4.6 retrieving revision 1.33.4.7 diff -u -d -r1.33.4.6 -r1.33.4.7 --- master.zpt 15 Aug 2005 17:03:14 -0000 1.33.4.6 +++ master.zpt 15 Aug 2005 19:54:13 -0000 1.33.4.7 @@ -13,28 +13,23 @@ <meta http-equiv="content-script-type" content="text/javascript" /> <link rel="stylesheet" type="text/css" href="master_style_css" /> <link rel="shortcut icon" href="images/icon.jpg" /> - <metal:slot define-slot="head" tal:omit-tag=""> - </metal:slot> + <meta metal:define-slot="head" tal:omit-tag="" content="Keep Validators Happy"> + </meta> </head> <body metal:define-macro="template"> - <a name="top"></a> <div id="header"> - <h1> - <a title="MailManager Home" href="index_html"> - <img src="images/logo_lp.gif" alt="logicalware : mailmanager" /> - </a> - </h1> + <p class="hidden"> + <a name="top"></a> + Skip to <a href="#main_content">main content</a>. + </p> - <!-- TODO: Forms for selecting user and account to show and for - getting ticket by id need to be done properly.. --> - <div metal:define-slot="agent_list" id="agent_list"> - - <form action="setSession" method="post" - tal:define="assigned request/SESSION/assigned | user/getUserName" - tal:condition="python:user.has_role('Tickets')"> - <label for="value">User</label> - <select name="value" + <form metal:define-slot="agent_list" action="setSession" method="post" + tal:define="assigned request/SESSION/assigned | user/getUserName" + tal:condition="python:user.has_role('Tickets')"> + <p id="agent_list"> + <label for="header_username_dropdown">User</label> + <select id="header_username_dropdown" name="value" onchange="window.open('setSession?key=assigned&value=' + this.options[this.selectedIndex].value, '_top')"> <option value=""> @@ -49,15 +44,15 @@ </select> <input type="image" src="images/button_go_one.gif" alt="Go" /> <input type="hidden" name="key" value="assigned" /> - </form> - </div> <!-- end agent_list slot --> - - <div metal:define-slot="account_list" id="account_list"> - <form action="setSession" method="post" + </p> + </form> + + <form metal:define-slot="account_list" action="setSession" method="post" tal:define="acc_id request/SESSION/account_id | nothing" tal:condition="python:user.has_role('Tickets')"> - <label for="value">Account</label> - <select name="value" + <p id="account_list"> + <label for="header_account_name">Account</label> + <select id="header_account_name" name="value" onchange="window.open('setSession?key=account_id&value=' + this.options[this.selectedIndex].value, '_top')"> <option value=""> @@ -72,18 +67,24 @@ </select> <input type="image" src="images/button_go_one.gif" alt="Go" /> <input type="hidden" name="key" value="account_id" /> - </form> - </div> <!-- end account_list slot --> + </p> + </form> + <h1> + <a title="MailManager Home" href="index_html"> + <img src="images/logo_lp.gif" alt="logicalware : mailmanager" /> + </a> + </h1> + <div id="nav"> <ul> <li id="getTicket"> - <form action="getTicket" method="post" tal:condition="python:user.has_role('Tickets')"> + <form action="getTicket" method="post" tal:condition="python:user.has_role('Tickets')"><p> <label for="ticket_id">Get Ticket</label> - <input size="5" name="ticket_id" /> + <input size="5" id="ticket_id" name="ticket_id" /> <input type="image" src="images/button_go_one.gif" alt="Go" /> - </form> + </p></form> </li> <li> <a href="Tickets" title="Tickets" @@ -159,6 +160,7 @@ </div> <div id="content"> + <a name="main_content"></a> <div metal:define-slot="main_content"> <p>The main content of the page.</p> </div> |