aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2006-10-18 02:58:34 +0000
committerwurblzap%gmail.com <>2006-10-18 02:58:34 +0000
commit84973470df08a269632287e66c52aa30f515ccc1 (patch)
tree68680d1965e213fc622d648e77c49fb42d5282c6 /template/en/default/attachment
parentc26d71326510b17b3da75c733254ec07178da884 (diff)
downloadbugs-84973470df08a269632287e66c52aa30f515ccc1.tar
bugs-84973470df08a269632287e66c52aa30f515ccc1.tar.gz
bugs-84973470df08a269632287e66c52aa30f515ccc1.tar.bz2
bugs-84973470df08a269632287e66c52aa30f515ccc1.tar.xz
bugs-84973470df08a269632287e66c52aa30f515ccc1.zip
Bug 321556: Prepare Bugzilla to ship with at least 2 skins.
Patch by Marc Schumann <wurblzap@gmail.com>; r=myk, a=justdave
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/create.html.tmpl8
-rw-r--r--template/en/default/attachment/diff-header.html.tmpl4
-rw-r--r--template/en/default/attachment/edit.html.tmpl33
-rw-r--r--template/en/default/attachment/show-multiple.html.tmpl6
4 files changed, 28 insertions, 23 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 3547f6d2e..fa2692d85 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -26,14 +26,14 @@
[%# Define strings that will serve as the title and header of this page %]
[% title = BLOCK %]Create New Attachment for [% terms.Bug %] #[% bugid %][% END %]
-[% h1 = BLOCK %]Create New Attachment for
+[% header = BLOCK %]Create New Attachment for
[%+ "$terms.Bug $bugid" FILTER bug_link(bugid) FILTER none %][% END %]
-[% h2 = BLOCK %][% bugsummary FILTER html %][% END %]
+[% subheader = BLOCK %][% bugsummary FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
title = title
- h1 = h1
- h2 = h2
+ header = header
+ subheader = subheader
onload="setContentTypeDisabledState(document.entryform);"
style_urls = [ 'skins/standard/create_attachment.css' ]
javascript_urls = [ "js/attachment.js" ]
diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl
index 3f2eed68d..97a6d0527 100644
--- a/template/en/default/attachment/diff-header.html.tmpl
+++ b/template/en/default/attachment/diff-header.html.tmpl
@@ -207,7 +207,7 @@ tbody.file pre:empty {
[% BLOCK diffurl %][% PROCESS viewurl %]&amp;action=diff[% END %]
[% IF headers %]
- [% h1 = BLOCK %]
+ [% header = BLOCK %]
[% IF attachid %]
Attachment #[% attachid %]: [% description FILTER html %]
[% ELSE %]
@@ -218,7 +218,7 @@ tbody.file pre:empty {
[% END %]
for <a href="show_bug.cgi?id=[% bugid %]">[% terms.bug %] #[% bugid %]</a>
[% END %]
- [% h2 = BLOCK %]
+ [% subheader = BLOCK %]
[% bugsummary FILTER html %]
[% END %]
[% PROCESS global/header.html.tmpl %]
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index b7d03a8b9..fbd6fcfe4 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -26,16 +26,16 @@
[% title = BLOCK %]
Attachment [% attachment.id %] Details for [% terms.Bug %] [%+ attachment.bug_id %]
[% END %]
-[% h1 = BLOCK %]
+[% header = BLOCK %]
Attachment [% attachment.id %] Details for
[%+ "$terms.Bug ${attachment.bug_id}" FILTER bug_link(attachment.bug_id) FILTER none %]
[% END %]
-[% h2 = BLOCK %][% bugsummary FILTER html %][% END %]
+[% subheader = BLOCK %][% bugsummary FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
title = title
- h1 = h1
- h2 = h2
+ header = header
+ subheader = subheader
style = "
table.attachment_info th { text-align: right; vertical-align: top; }
table.attachment_info td { text-align: left; vertical-align: top; }
@@ -211,8 +211,9 @@
<tr>
<td width="25%">
<small>
- <b>Description:</b><br>
+ <b><label for="description">Description</label>:</b><br>
[% INCLUDE global/textarea.html.tmpl
+ id = 'description'
name = 'description'
minrows = 3
cols = 25
@@ -226,8 +227,8 @@
<input type="hidden" name="contenttypeentry"
value="[% attachment.contenttype FILTER html %]"><br>
[% ELSE %]
- <b>Filename:</b><br>
- <input type="text" size="20" name="filename"
+ <b><label for="filename">Filename</label>:</b><br>
+ <input type="text" size="20" id="filename" name="filename"
value="[% attachment.filename FILTER html %]"><br>
<b>Size:</b>
[% IF attachment.datasize %]
@@ -236,8 +237,9 @@
<em>deleted</em>
[% END %]<br>
- <b>MIME Type:</b><br>
- <input type="text" size="20" name="contenttypeentry"
+ <b><label for="contenttypeentry">MIME Type</label>:</b><br>
+ <input type="text" size="20"
+ id="contenttypeentry" name="contenttypeentry"
value="[% attachment.contenttype FILTER html %]"><br>
<input type="checkbox" id="ispatch" name="ispatch" value="1"
@@ -246,12 +248,13 @@
[% END %]
<input type="checkbox" id="isobsolete" name="isobsolete" value="1"
[% 'checked="checked"' IF attachment.isobsolete %]>
- <label for="isobsolete">obsolete</label><br>
+ <label for="isobsolete">obsolete</label>
[% IF (Param("insidergroup") && user.in_group(Param("insidergroup"))) %]
- <input type="checkbox" name="isprivate" value="1"
- [% " checked" IF attachment.isprivate %]> private<br><br>
- [% ELSE %]<br>
+ <input type="checkbox" id="isprivate" name="isprivate" value="1"
+ [% " checked" IF attachment.isprivate %]>
+ <label for="isprivate">private</label><br>
[% END %]
+ <br>
[% IF flag_types.size > 0 %]
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
@@ -259,8 +262,10 @@
[% END %]
<div id="smallCommentFrame">
- <b>Comment (on the [% terms.bug %]):</b><br>
+ <b><label for="comment">Comment</label> (on the
+ [%+ terms.bug %]):</b><br>
[% INCLUDE global/textarea.html.tmpl
+ id = 'comment'
name = 'comment'
minrows = 5
cols = 25
diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl
index ad0dfbafd..4f4520053 100644
--- a/template/en/default/attachment/show-multiple.html.tmpl
+++ b/template/en/default/attachment/show-multiple.html.tmpl
@@ -21,12 +21,12 @@
[% PROCESS global/variables.none.tmpl %]
[% filtered_summary = bugsummary FILTER html %]
-[% h1 = BLOCK %]View All Attachments for
+[% header = BLOCK %]View All Attachments for
[%+ "$terms.Bug $bugid" FILTER bug_link(bugid) FILTER none %][% END %]
[% PROCESS global/header.html.tmpl
title = "View All Attachments for $terms.Bug #$bugid"
- h1 = h1
- h2 = filtered_summary
+ header = header
+ subheader = filtered_summary
style = "
table.attachment_info th { text-align: right; vertical-align: top; }
table.attachment_info td { text-align: left; vertical-align: top; }