diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-16 16:22:03 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-16 16:22:03 +0200 |
commit | 7c03516e0ed331a98e7a9a8984d7b7abec0e9318 (patch) | |
tree | b760b4f58858baffe4d9c3f8392ccb42d1c2dfc2 /template/en/default/attachment/createformcontents.html.tmpl | |
parent | 4754b82f103754876d80a805c9cd0deeebb69f24 (diff) | |
download | bugzilla-7c03516e0ed331a98e7a9a8984d7b7abec0e9318.tar.gz bugzilla-7c03516e0ed331a98e7a9a8984d7b7abec0e9318.tar.xz |
Bug 596079: Merge content-types.html.tmpl with createformcontents.html.tmpl
r=timello a=LpSolit
Diffstat (limited to 'template/en/default/attachment/createformcontents.html.tmpl')
-rw-r--r-- | template/en/default/attachment/createformcontents.html.tmpl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 9d2fa9f48..42169796e 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -72,7 +72,7 @@ <label for="list">select from list</label>: <select name="contenttypeselection" id="contenttypeselection" onchange="this.form.contenttypemethod[1].checked = true;"> - [% PROCESS "attachment/content-types.html.tmpl" %] + [% PROCESS content_types %] </select><br> <input type="radio" id="manual" name="contenttypemethod" value="manual"> @@ -90,3 +90,19 @@ [% END %] </td> </tr> + +[% BLOCK content_types %] + [% mimetypes = [{type => "text/plain", desc => "plain text"}, + {type => "text/html", desc => "HTML source"}, + {type => "application/xml", desc => "XML source"}, + {type => "image/gif", desc => "GIF image"}, + {type => "image/jpeg", desc => "JPEG image"}, + {type => "image/png", desc => "PNG image"}, + {type => "application/octet-stream", desc => "binary file"}] + %] + [% Hook.process("mimetypes", "attachment/createformcontents.html.tmpl") %] + + [% FOREACH m = mimetypes %] + <option value="[% m.type FILTER html %]">[% m.desc FILTER html %] ([% m.type FILTER html %])</option> + [% END %] +[% END %] |