Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
a9bb1874
Commit
a9bb1874
authored
Jul 28, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 159687 - attachment/*.tmpl should use <label>. Patch by burnus; r=gerv.
parent
08b10c04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
create.html.tmpl
template/en/default/attachment/create.html.tmpl
+18
-8
edit.html.tmpl
template/en/default/attachment/edit.html.tmpl
+12
-3
No files found.
template/en/default/attachment/create.html.tmpl
View file @
a9bb1874
...
...
@@ -63,17 +63,26 @@
<th>Content Type:</th>
<td>
<em>If the attachment is a patch, check the box below.</em><br>
<input type="checkbox" name="ispatch" value="1" onchange="setContentTypeDisabledState();"> patch<br><br>
<input type="checkbox" id="ispatch" name="ispatch" value="1"
onchange="setContentTypeDisabledState();">
<label for="ispatch">patch</label><br><br>
<em>Otherwise, choose a method for determining the content type.</em><br>
<input type="radio" name="contenttypemethod" value="autodetect">
auto-detect<br>
<input type="radio" name="contenttypemethod" value="list">
select from list: <select name="contenttypeselection" onchange="this.form.contenttypemethod[1].checked = true;">
<input type="radio" id="autodetect"
name="contenttypemethod" value="autodetect">
<label for="autodetect">auto-detect</label><br>
<input type="radio" id="list"
name="contenttypemethod" value="list">
<label for="list">select from list:</label>
<select name="contenttypeselection"
onchange="this.form.contenttypemethod[1].checked = true;">
[% PROCESS "attachment/content-types.html.tmpl" %]
</select><br>
<input type="radio" name="contenttypemethod" value="manual">
enter manually: <input type="text" name="contenttypeentry" size="30" maxlength="200" onchange="if (this.value) this.form.contenttypemethod[2].checked = true;">
<input type="radio" id="manual"
name="contenttypemethod" value="manual">
<label for="manual">enter manually:</label>
<input type="text" name="contenttypeentry" size="30" maxlength="200"
onchange="if (this.value) this.form.contenttypemethod[2].checked = true;">
</td>
</tr>
<tr>
...
...
@@ -82,7 +91,8 @@
<em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br>
[% IF attachments.size %]
[% FOREACH attachment = attachments %]
<input type="checkbox" name="obsolete" value="[% attachment.id %]">
<input type="checkbox" id="[% attachment.id %]"
name="obsolete" value="[% attachment.id %]">
<a href="attachment.cgi?id=[% attachment.id %]&action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br>
[% END %]
[% ELSE %]
...
...
template/en/default/attachment/edit.html.tmpl
View file @
a9bb1874
...
...
@@ -159,13 +159,22 @@
<input
type=
"text"
size=
"20"
name=
"contenttypeentry"
value=
"[% contenttype FILTER html %]"
><br>
<b>
Flags:
</b><br>
<input
type=
"checkbox"
name=
"ispatch"
value=
"1"
[%
"
checked
"
IF
ispatch
%]
>
patch
<input
type=
"checkbox"
name=
"isobsolete"
value=
"1"
[%
"
checked
"
IF
isobsolete
%]
>
obsolete
<br>
<input
type=
"checkbox"
id=
"ispatch"
name=
"ispatch"
value=
"1"
[%
'
checked=
"checked"
'
IF
ispatch
%]
>
<label
for=
"ispatch"
>
patch
</label>
<input
type=
"checkbox"
id=
"isobsolete"
name=
"isobsolete"
value=
"1"
[%
'
checked=
"checked"
'
IF
isobsolete
%]
>
<label
for=
"isobsolete"
>
obsolete
</label><br>
[% IF statusdefs.size %]
<b>
Status:
</b><br>
[% FOREACH def = statusdefs %]
<input
type=
"checkbox"
name=
"status"
value=
"[% def.id %]"
[%
"
checked
"
IF
statuses
.${
def
.
id
}
%]
>
[% def.name FILTER html %]
<br>
<input
type=
"checkbox"
id=
"status-[% def.id %]"
name=
"status"
value=
"[% def.id %]"
[%
'
checked=
"checked"
'
IF
statuses
.${
def
.
id
}
%]
>
<label
for=
"status-[% def.id %]"
>
[% def.name FILTER html %]
</label><br>
[% END %]
[% END %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment