From 55ad13a15405c088e419f07a00fe51675fc7065b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 6 Apr 2020 01:37:58 -0400 Subject: [PATCH] Initial simplification of the bug metadata display. --- templates/bugfield_input_checkbox.tpl | 10 +- templates/bugfield_input_text.tpl | 8 +- templates/bugfield_select_single.tpl | 10 +- templates/bugfield_static_text.tpl | 6 +- templates/fields.css | 52 +++++----- templates/newreport.tpl | 74 ++++++++------- templates/search.tpl | 98 +++++++++---------- templates/showreport.tpl | 131 +++++++++++++------------- 8 files changed, 196 insertions(+), 193 deletions(-) diff --git a/templates/bugfield_input_checkbox.tpl b/templates/bugfield_input_checkbox.tpl index acad0e0..431b21a 100644 --- a/templates/bugfield_input_checkbox.tpl +++ b/templates/bugfield_input_checkbox.tpl @@ -1,6 +1,6 @@ -
- $field[name] $help[field$field[fieldid]] -
-
- \ No newline at end of file +
+
$field[name] $help[field$field[fieldid]]
+
+
+ diff --git a/templates/bugfield_input_text.tpl b/templates/bugfield_input_text.tpl index 576fc8f..492fb44 100644 --- a/templates/bugfield_input_text.tpl +++ b/templates/bugfield_input_text.tpl @@ -1,6 +1,6 @@ -
- $field[name] $help[field$field[fieldid]] -
maxlength="$field[maxlength]" />
-
+
+
$field[name] $help[field$field[fieldid]]
+
maxlength="$field[maxlength]" />
+
diff --git a/templates/bugfield_select_single.tpl b/templates/bugfield_select_single.tpl index 919adab..eb63af2 100644 --- a/templates/bugfield_select_single.tpl +++ b/templates/bugfield_select_single.tpl @@ -1,6 +1,6 @@ -
- $field[name] $help[field$field[fieldid]] -
-
- \ No newline at end of file +
+
$field[name] $help[field$field[fieldid]]
+
+
+ diff --git a/templates/bugfield_static_text.tpl b/templates/bugfield_static_text.tpl index 617bcda..d7a9309 100644 --- a/templates/bugfield_static_text.tpl +++ b/templates/bugfield_static_text.tpl @@ -1,6 +1,6 @@ -
- $field[name] $help[field$field[fieldid]] +
+
$field[name] $help[field$field[fieldid]]
$field[value]
-
+ diff --git a/templates/fields.css b/templates/fields.css index 3924b2b..99a0170 100644 --- a/templates/fields.css +++ b/templates/fields.css @@ -18,38 +18,34 @@ || ################################################################### \*=====================================================================*/ -legend -{ - background-color: rgb(51, 51, 51); - font-weight: bold; - font-size: 11px; - margin-left: 10px; - color: rgb(255, 255, 255); - padding: 2px; - border: 1px solid rgb(0, 0, 0); +.field { + display: flex; + width: 100%; + + margin: 3px 0; } - legend a - { - color: rgb(255, 255, 255); - } +.field .label { + width: 20%; -fieldset -{ - border-width: 1px 0px 0px 0px; - border-color: rgb(0, 0, 0); - border-style: solid; - padding: 5px; + background-color: rgb(78, 78, 78); + font-weight: bold; + font-size: 11px; + color: rgb(255, 255, 255); + padding: 3px; + border: 1px solid rgb(0, 0, 0); } -.helplink -{ - border: none; + .field .label a { + color: rgb(255, 255, 255); + } + +.field .value { + width: 80%; + padding: 3px; } -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ \ No newline at end of file +.helplink { + border: none; + float: right; +} diff --git a/templates/newreport.tpl b/templates/newreport.tpl index 61c8801..f77b0ad 100644 --- a/templates/newreport.tpl +++ b/templates/newreport.tpl @@ -26,33 +26,33 @@ $header
-
- {@"Reporter"} $help[reporter] -
$reporter
-
+
+
{@"Reporter"} $help[reporter]
+
$reporter
+
-
- {@"Product/Version"} $help[product] -
-
+
+
{@"Product/Version"} $help[product]
+
+
-
- {@"Status"} $help[status] -
-
+
+
{@"Status"} $help[status]
+
+
-
- {@"Severity"} $help[severity] -
-
+
+
{@"Severity"} $help[severity]
+
+
$customfields[left] @@ -64,36 +64,36 @@ $header
-
- {@"Summary"} $help[summary] -
-
+
+
{@"Summary"} $help[summary]
+
+
-
- {@"Assignment"} $help[assignedto] -
-
+
+
{@"Assignment"} $help[assignedto]
+
+
-
- {@"Resolution"} $help[resolution] -
-
+
+
{@"Resolution"} $help[resolution]
+
+
-
- {@"Priority"} $help[priority] -
-
+
+
{@"Priority"} $help[priority]
+
+
@@ -107,13 +107,15 @@ $header
-
- {@"Description/Initial Report"} +
+
{@"Description/Initial Report"}
+
checked="checked" /> {@"Parse Links in the Comment"}
-
+
+
@@ -129,4 +131,4 @@ $header -$footer \ No newline at end of file +$footer diff --git a/templates/search.tpl b/templates/search.tpl index bbfcbc1..c85504d 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -28,52 +28,52 @@ $header
-
- {@"Search Mode"} +
+
{@"Search Mode"}
-
+
-
+
-
- {@"Reporter"} $help[reporter] -
-
+
+
{@"Reporter"} $help[reporter]
+
+
-
- {@"Product / Version"} $help[product] -
-
+
+
{@"Product / Version"} $help[product]
+
+
-
- {@"Status"} $help[status] -
-
+
+
{@"Status"} $help[status]
+
+
-
- {@"Priority"} $help[priority] -
-
+
+
{@"Priority"} $help[priority]
+
+
-
- {@"Date (submitted since)"} +
+
{@"Date (submitted since)"}
-
+
-
+ $customfields[left] @@ -97,17 +97,17 @@ $header
-
- {@"Summary / Comment Text"} -
-
+
+
{@"Summary / Comment Text"}
+
+
-
- {@"Sort By"} +
+
{@"Sort By"}
-
+
-
+
-
- {@"Assignment"} $help[assignedto] -
-
+
+
{@"Assignment"} $help[assignedto]
+
+
-
- {@"Resolution"} $help[resolution] -
-
+
+
{@"Resolution"} $help[resolution]
+
+
-
- {@"Severity"} $help[severity] -
-
+
+
{@"Severity"} $help[severity]
+
+
-
- {@"Favorite"} -
+
+
{@"Favorite"}
+
-
+
@@ -177,4 +177,4 @@ $header -$footer \ No newline at end of file +$footer diff --git a/templates/showreport.tpl b/templates/showreport.tpl index a8f2540..392675b 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -21,9 +21,9 @@ $header
-
- {@"Bug Id"} $help[bugid] -
+
+
{@"Bug Id"} $help[bugid]
+
$bug[bugid] @@ -38,53 +38,53 @@ $header / [$favoritetext] / [{@"Delete"}]
-
+
-
- {@"Reporter"} $help[reporter] -
$bug[userinfo]
-
+
+
{@"Reporter"} $help[reporter]
+
$bug[userinfo]
+
-
- {@"Product/Version"} $help[product] -
$bug[product] / $bug[component] / $bug[version]
-
+
+
{@"Product/Version"} $help[product]
+
$bug[product] / $bug[component] / $bug[version]
+
-
- {@"Status"} $help[status] -
+
+
{@"Status"} $help[status]
+
$bug[status]
-
+ -
- {@"Severity"} $help[severity] -
+
+
{@"Severity"} $help[severity]
+
$bug[severity]
-
+ -
- {@"Duplicate Of"} $help[duplicateof] -
+
+
{@"Duplicate Of"} $help[duplicateof]
+
$bug[duplicateof]" /> $duplicate[bugid] @@ -92,7 +92,7 @@ $header $duplicateof[summary]{@"- none -"}
-
+ $customfields[left] @@ -104,75 +104,75 @@ $header
-
- {@"Summary"} $help[summary] -
+
+
{@"Summary"} $help[summary]
+
$bug[summary]
-
+
-
- {@"Report Time"} $help[dateline] -
$bug[datetime]
-
+
+
{@"Report Time"} $help[dateline]
+
$bug[datetime]
+
-
- {@"Assignment"} $help[assignedto] -
+
+
{@"Assignment"} $help[assignedto]
+
$bug[assigninfo]{@"- none -"}
-
+ -
- {@"Resolution"} $help[resolution] -
+
+
{@"Resolution"} $help[resolution]
+
$bug[resolution]
-
+ -
- {@"Priority"} $help[priority] -
+
+
{@"Priority"} $help[priority]
+
$bug[priority]
-
+ -
- {@"Dependencies"} $help[dependency] -
+
+
{@"Dependencies"} $help[dependency]
+
$dependencies $dependencies{@"- none -"}
-
+ $customfields[right] @@ -187,13 +187,16 @@ $header
-
- {@"New Reply"} : {@"Automation"} $help[newreply] +
+
{@"New Reply"} $help[newreply] +
{@"Automation"}
+
checked="checked" /> {@"Parse Links in the Comment"}
-
+
+
@@ -215,34 +218,36 @@ $header
-
- {@"Attachments"} : {@"New"} +
+
{@"Attachments"} : {@"New"}
- $attachments -
+
$attachments
+
fiftyhundred"> -
- {@"Votes"} +
+
{@"Votes"}
+
{@"For"}: $vote[votefor] ($vote[forpercent]%)
{@"Against"}: $vote[voteagainst] ($vote[againstpercent]%)
{@"Total"}: $vote[total]
-
+
+
-
- {@"Your Vote"} +
+
{@"Your Vote"}
-
+ {@"Vote For (+1)"}
@@ -250,7 +255,7 @@ $header
-
+
@@ -265,4 +270,4 @@ $description $comments -$footer \ No newline at end of file +$footer -- 2.43.5