[Rt-commit] r3413 - in rt/branches/3.5-TESTING: . html/Ticket
trs at bestpractical.com
trs at bestpractical.com
Wed Jul 6 22:07:12 EDT 2005
Author: trs
Date: Wed Jul 6 22:07:12 2005
New Revision: 3413
Modified:
rt/branches/3.5-TESTING/ (props changed)
rt/branches/3.5-TESTING/html/Ticket/Create.html
Log:
r4844 at wintermute: tom | 2005-07-06 22:05:41 -0400
The Show details/Show basics links are now in the actions/subactions menu and
work via Javascript and CSS (much like hideshow, actually). For users who don't
have JS enabled, both basics and details will be displayed (a JS onload event is
what hides the details at first).
I had pushed the necessary JS and CSS earlier, but forgot to commit this component
change.
Modified: rt/branches/3.5-TESTING/html/Ticket/Create.html
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Create.html (original)
+++ rt/branches/3.5-TESTING/html/Ticket/Create.html Wed Jul 6 22:07:12 2005
@@ -43,17 +43,18 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<& /Elements/Header, Title => loc("Create a new ticket") &>
+<& /Elements/Header,
+ Title => loc("Create a new ticket"),
+ onload => "hide(document.getElementById('Ticket-Create-details'));" &>
<& /Elements/Tabs,
current_toptab => "Ticket/Create.html",
- Title => loc("Create a new ticket") &>
+ Title => loc("Create a new ticket"),
+ actions => $actions &>
<form action="<%$RT::WebPath%>/Ticket/Create.html" method="POST" enctype="multipart/form-data" name="TicketCreate">
<input type="hidden" class="hidden" Name="id" value="new">
-<a name="top">
-
-
-[<a class="currenttab"><&|/l&>Show basics</&></a>] [<a href="#detail"><&|/l&>Show details</&></a>]
-<br/>
+
+<div id="Ticket-Create-basics">
+<a name="basics"></a>
<&| /Widgets/TitleBox, title => loc("Create a new ticket") &>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td class="label"><&|/l&>Queue</&>:</td>
@@ -163,16 +164,10 @@
</table>
</&>
<& /Elements/Submit, Label => loc("Create")&>
+</div>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-
-<a name="detail">
- [<a href="#top"><&|/l&>Show basics</&></a>] [<a class="currenttab"><&|/l&>Show details</&></a>]
-<br/>
+<div id="Ticket-Create-details">
+<a name="details"></a>
<table width="100%" border="0">
<tr>
<td width="50%" valign="TOP">
@@ -236,12 +231,8 @@
</tr>
</table>
<& /Elements/Submit, Label => loc("Create") &>
+</div>
</form>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
-<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<%INIT>
@@ -308,6 +299,15 @@
$RT::Logger->crit("After display call; error is $@");
$m->abort();
}
+
+my $actions = {
+ A => {
+ html => q[<a href="#basics" onclick="return switchVisibility('Ticket-Create-basics','Ticket-Create-details');">] . loc('Show basics') . q[</a>],
+ },
+ B => {
+ html => q[<a href="#details" onclick="return switchVisibility('Ticket-Create-details','Ticket-Create-basics');">] . loc('Show details') . q[</a>],
+ },
+};
</%INIT>
<%ARGS>
More information about the Rt-commit
mailing list