Commit a84d94e0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 433015: The "Remove Event" and "Update/Commit" buttons in editwhines.cgi are…

Bug 433015: The "Remove Event" and "Update/Commit" buttons in editwhines.cgi are too far on the right - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=pyrzak a=LpSolit
parent 777969da
...@@ -94,6 +94,16 @@ td.forbidden { ...@@ -94,6 +94,16 @@ td.forbidden {
background-color: #811; background-color: #811;
} }
/* Light green color */
td.set {
background-color: #efe;
}
/* Light red color */
td.unset {
background-color: #fee;
}
tr.highlight:hover { tr.highlight:hover {
background-color: yellow; background-color: yellow;
} }
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
[% title = "Set up whining" %] [% title = "Set up whining" %]
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = title title = title
style_urls = ['skins/standard/admin.css']
doc_section = "whining.html" doc_section = "whining.html"
%] %]
...@@ -84,13 +85,12 @@ ...@@ -84,13 +85,12 @@
[% FOREACH event = events %] [% FOREACH event = events %]
<table cellspacing="2" cellpadding="2" width="100%" <table cellspacing="2" cellpadding="2" style="border: 1px solid;">
style="border: 1px solid;">
<tr> <tr>
<th align="left" bgcolor="#FFFFFF" colspan="2"> <th align="left">
Event: Event:
</th> </th>
<td align="right"> <td align="right" colspan="2">
<input type="submit" value="Remove Event" <input type="submit" value="Remove Event"
name="remove_event_[% event.key %]" name="remove_event_[% event.key %]"
id="remove_event_[% event.key %]"> id="remove_event_[% event.key %]">
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<td valign="top" align="right"> <td valign="top" align="right">
Email subject line: Email subject line:
</td> </td>
<td> <td colspan="2">
<input type="text" name="event_[% event.key %]_subject" <input type="text" name="event_[% event.key %]_subject"
size="60" maxlength="128" value=" size="60" maxlength="128" value="
[%- event.value.subject FILTER html %]"> [%- event.value.subject FILTER html %]">
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<td valign="top" align="right"> <td valign="top" align="right">
Descriptive text sent within whine message: Descriptive text sent within whine message:
</td> </td>
<td> <td colspan="2">
[% INCLUDE global/textarea.html.tmpl [% INCLUDE global/textarea.html.tmpl
name = "event_${event.key}_body" name = "event_${event.key}_body"
minrows = 3 minrows = 3
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<td valign="top" align="right"> <td valign="top" align="right">
Schedule: Schedule:
</td> </td>
<td align="left" bgcolor="#FFEEEE"> <td class="unset" colspan="2">
Not scheduled to run<br> Not scheduled to run<br>
<input type="submit" value="Add a new schedule" <input type="submit" value="Add a new schedule"
name="add_schedule_[% event.key %]" name="add_schedule_[% event.key %]"
...@@ -144,18 +144,20 @@ ...@@ -144,18 +144,20 @@
<td valign="top" align="right"> <td valign="top" align="right">
Schedule: Schedule:
</td> </td>
<td align="left" bgcolor="#EEFFEE"> <td class="set" colspan="2">
<table> <table>
<tr> <tr>
<th> <th>
Interval Interval
</th> </th>
[% IF mail_others %]
<th> <th>
[% IF mail_others %]
Mail to Mail to
</th>
[% END %] [% END %]
</th>
<th>
</th>
</tr> </tr>
[% FOREACH schedule = event.value.schedule %] [% FOREACH schedule = event.value.schedule %]
<tr> <tr>
...@@ -198,17 +200,15 @@ ...@@ -198,17 +200,15 @@
[% END %] [% END %]
<tr> <tr>
<td> <td colspan="3">
<input type="submit" value="Add a new schedule" <input type="submit" value="Add a new schedule"
name="add_schedule_[% event.key %]" name="add_schedule_[% event.key %]"
id="add_schedule_[% event.key %]"> id="add_schedule_[% event.key %]">
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
[% END %] [% END %]
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
<td valign="top" align="right"> <td valign="top" align="right">
Searches: Searches:
</td> </td>
<td align="left" colspan="1"> <td align="left">
No searches <br> No searches <br>
<input type="submit" value="Add a new query" <input type="submit" value="Add a new query"
name="add_query_[% event.key %]" name="add_query_[% event.key %]"
...@@ -236,13 +236,15 @@ ...@@ -236,13 +236,15 @@
<td valign="top" align="right"> <td valign="top" align="right">
Searches: Searches:
</td> </td>
<td align="left"> <td align="left" colspan="2">
<table> <table>
<tr> <tr>
<th>Sort</th> <th>Sort</th>
<th>Search</th> <th>Search</th>
<th>Title</th> <th>Title</th>
<th></th>
<th></th>
</tr> </tr>
[% FOREACH query = event.value.queries %] [% FOREACH query = event.value.queries %]
...@@ -269,10 +271,10 @@ ...@@ -269,10 +271,10 @@
<td align="left"> <td align="left">
<input type="hidden" value="[% query.onemailperbug FILTER html %]" <input type="hidden" value="[% query.onemailperbug FILTER html %]"
name="orig_query_onemailperbug_[% query.id %]"> name="orig_query_onemailperbug_[% query.id %]">
<input type="checkbox" [% IF query.onemailperbug == 1 %] <input type="checkbox" [% IF query.onemailperbug == 1 %] checked [% END %]
checked [% END %]name="query_onemailperbug_ id="query_onemailperbug_[% query.id %]"
[% query.id %]"> name="query_onemailperbug_[% query.id %]">
One message per [% terms.bug %] <label for="query_onemailperbug_[% query.id %]">One message per [% terms.bug %]</label>
</td> </td>
<td align="right"> <td align="right">
<input type="submit" value="Remove" <input type="submit" value="Remove"
...@@ -289,14 +291,13 @@ ...@@ -289,14 +291,13 @@
name="add_query_[% event.key %]" name="add_query_[% event.key %]"
id="add_query_[% event.key %]"> id="add_query_[% event.key %]">
</td> </td>
<td align="right" colspan="2">
<input type="submit" value="Update / Commit" name="commit" id="update">
</td>
</tr> </tr>
</table> </table>
</td> </td>
<td align="right" valign="bottom">
<input type="submit" value="Update / Commit" name="commit" id="update">
</td>
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment