[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% max_local = Param('maxlocalattachment') * 1024 %] [% max_limit = Param('maxattachmentsize')> max_local ? Param('maxattachmentsize') : max_local %] : Enter the path to the file on your computer (or paste text as attachment).

(File size limit: [% max_limit FILTER html %] KB) : Paste the text to be added as an attachment (or attach a file).
: Describe the attachment briefly.
Content Type: If the attachment is a patch, check the box below.


[%# Reset this whenever the page loads so that the JS state is up to date %] Otherwise, choose a method for determining the content type.

:
: [% IF flag_types && flag_types.size > 0 %] [% PROCESS "flag/list.html.tmpl" %]
[% END %] [% 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/pdf", desc => "PDF document"}, {type => "application/octet-stream", desc => "binary file"}] %] [% Hook.process("mimetypes", "attachment/createformcontents.html.tmpl") %] [% FOREACH m = mimetypes %] [% END %] [% END %]