diff options
author | mkanat%bugzilla.org <> | 2007-09-17 11:48:04 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-09-17 11:48:04 +0200 |
commit | 61ac61f0a55f8e07ee4eb6be325b7d53ca64e7fe (patch) | |
tree | 0431b21137267c9d25a2a8549718eae256b4104c /template | |
parent | e2ced36948e4edd9ad6354cb183a92ef6aebee45 (diff) | |
download | bugzilla-61ac61f0a55f8e07ee4eb6be325b7d53ca64e7fe.tar.gz bugzilla-61ac61f0a55f8e07ee4eb6be325b7d53ca64e7fe.tar.xz |
Bug 357315: Add the ability to create <textarea> fields
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 1652ffb0b..7de659742 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -76,7 +76,14 @@ [% IF field.type == constants.FIELD_TYPE_MULTI_SELECT %] <input type="hidden" name="defined_[% field.name FILTER html %]"> [% END %] + [% CASE constants.FIELD_TYPE_TEXTAREA %] + [% INCLUDE global/textarea.html.tmpl + id = field.name name = field.name minrows = 4 maxrows = 8 + cols = 60 defaultcontent = value %] [% END %] +[% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %] + <div class="uneditable_textarea">[% value FILTER wrap_comment(60) + FILTER html %]</div> [% ELSE %] [% value.join(', ') FILTER html %] [% END %] diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index dc6887707..64bf546e6 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -82,6 +82,7 @@ ${constants.FIELD_TYPE_FREETEXT} => "Free Text", ${constants.FIELD_TYPE_SINGLE_SELECT} => "Drop Down", ${constants.FIELD_TYPE_MULTI_SELECT} => "Multiple-Selection Box", + ${constants.FIELD_TYPE_TEXTAREA} => "Large Text Box", } %] [% status_descs = { "UNCONFIRMED" => "UNCONFIRMED", |