Style whines, flagtypes, classifications

hinted-selects
Vitaliy Filippov 2014-09-15 17:56:19 +04:00
parent a32c3f8d6a
commit 666cdb7704
5 changed files with 48 additions and 39 deletions

View File

@ -869,6 +869,14 @@ table.tabs {
background: white;
}
table.eventbox {
border-color: gray;
padding: 5px;
background: white;
border-radius: 5px;
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.2);
}
/* search */
#summary_field.search_field_row input {

View File

@ -94,14 +94,18 @@ td.forbidden {
background-color: #811;
}
/* Light green color */
td.set {
background-color: #efe;
table.eventbox {
border: 1px solid black;
margin: 8px 0;
}
td.set {
background: #ddd;
padding: 5px;
}
/* Light red color */
td.unset {
background-color: #fee;
color: red;
}
tr.highlight:hover {

View File

@ -22,8 +22,8 @@
title = "Select classification"
%]
<table border=1 cellpadding=4 cellspacing=0>
<tr bgcolor="#6666ff">
<table class="admin_table">
<tr>
<th align="left">Edit Classification ...</th>
<th align="left">Description</th>
<th align="left">Sortkey</th>
@ -32,7 +32,7 @@
</tr>
[% FOREACH cl = classifications %]
<tr>
<tr class="[% loop.index % 2 ? "even_row" : "odd_row" %]">
<td valign="top"><a href="editclassifications.cgi?action=edit&amp;classification=[% cl.name FILTER url_quote %]"><b>[% cl.name FILTER html %]</b></a></td>
<td valign="top">
[% IF cl.description %]

View File

@ -109,10 +109,10 @@
[% BLOCK display_flag_types %]
<table id="flag_types_[% types_id FILTER html %]" cellspacing="0" cellpadding="4" border="1">
<table class="admin_table" id="flag_types_[% types_id FILTER html %]" cellspacing="0" cellpadding="4" border="1">
<tr>
<th>Edit name ...</th>
<th>Name</th>
<th>Description</th>
<th>Sortkey</th>
<th>Properties</th>
@ -128,7 +128,7 @@
[% FOREACH type = types %]
<tr class="[% IF type.is_active %]active[% ELSE %]inactive[% END %]">
<tr class="[% loop.index % 2 ? "even_row" : "odd_row" %] [%+ type.is_active ? 'active' : 'inactive' %]">
<td><a href="editflagtypes.cgi?action=edit&amp;id=[% type.id %]">[% type.name FILTER html FILTER no_break %]</a></td>
<td>[% type.description FILTER html %]</td>
<td align="right">[% type.sortkey FILTER html %]</td>

View File

@ -1,4 +1,3 @@
[%# -*- mode: html -*- %]
[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
@ -83,7 +82,7 @@
[% FOREACH event = events %]
<table cellspacing="2" cellpadding="2" style="border: 1px solid;">
<table class="eventbox" cellpadding="2">
<tr>
<th align="left">
Event:
@ -91,24 +90,24 @@
<td align="right" colspan="2">
<input type="submit" value="Remove Event"
name="remove_event_[% event.key %]"
id="remove_event_[% event.key %]">
id="remove_event_[% event.key %]" />
</td>
</tr>
<tr>
<td valign="top" align="right">
Email subject line:
<td valign="top" align="left">
Email subject:
</td>
<td colspan="2">
<input type="text" name="event_[% event.key %]_subject"
size="60" maxlength="128" value="
[%- event.value.subject FILTER html %]">
[%- event.value.subject FILTER html %]" />
</td>
</tr>
<tr>
<td valign="top" align="right">
Descriptive text sent within whine message:
<td valign="top" align="left">
Description:<br />(email text)
</td>
<td colspan="2">
[% INCLUDE global/textarea.html.tmpl
@ -123,33 +122,32 @@
</tr>
<tr>
<td valign="top" align="right">
Send a message even if there are no [% terms.bugs %] in the search result:
</td>
<td></td>
<td colspan="2">
<input type="checkbox" name="event_[% event.key %]_mailifnobugs"
[%- IF event.value.mailifnobugs == 1 %] checked [% END %]>
id="event_[% event.key %]_mailifnobugs" [% IF event.value.mailifnobugs == 1 %]checked[% END %] />
<label for="event_[% event.key %]_mailifnobugs">Send a message even if there are no [% terms.bugs %] in the search result</label>
</td>
</tr>
[% IF event.value.schedule.size == 0 %]
<tr>
<td valign="top" align="right">
<td valign="top" align="left">
Schedule:
</td>
<td class="unset" colspan="2">
Not scheduled to run<br>
Not scheduled to run<br />
<input type="submit" value="Add a new schedule"
name="add_schedule_[% event.key %]"
id="add_schedule_[% event.key %]">
id="add_schedule_[% event.key %]" />
</td>
</tr>
[% ELSE %]
<tr>
<td valign="top" align="right">
<td valign="top" align="left">
Schedule:
</td>
<td class="set" colspan="2">
@ -224,27 +222,24 @@
[% IF event.value.queries.size == 0 %]
<tr>
<td valign="top" align="right">
<td valign="top" align="left">
Searches:
</td>
<td align="left">
No searches <br>
<td class="unset" align="left">
No searches <br />
<input type="submit" value="Add a new query"
name="add_query_[% event.key %]"
id="add_query_[% event.key %]">
</td>
<td align="right" valign="bottom">
<input type="submit" value="Update / Commit" name="commit" id="update">
id="add_query_[% event.key %]" />
</td>
</tr>
[% ELSE %]
<tr>
<td valign="top" align="right">
<td valign="top" align="left">
Searches:
</td>
<td align="left" colspan="2">
<td class="set" align="left" colspan="2">
<table>
<tr>
@ -299,9 +294,6 @@
name="add_query_[% event.key %]"
id="add_query_[% event.key %]">
</td>
<td align="right" colspan="2">
<input type="submit" value="Update / Commit" name="commit" id="update">
</td>
</tr>
</table>
@ -310,6 +302,11 @@
[% END %]
<tr>
<td></td>
<td><input type="submit" value="Update / Commit" name="commit" id="update" /></td>
</tr>
</table>
[% END %]