diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-10 16:57:48 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-10 16:57:48 +0200 |
commit | 380a0f8742e23868e01cd31aca113efb8ceb72f5 (patch) | |
tree | aa98a2729a611a5ecaf55f8c910e6427e8977133 /template/en/default/bug | |
parent | b5075fdb03efc8732e9d8ba767e8043f577bdbce (diff) | |
download | bugzilla-380a0f8742e23868e01cd31aca113efb8ceb72f5.tar.gz bugzilla-380a0f8742e23868e01cd31aca113efb8ceb72f5.tar.xz |
Bug 850135 - hide the textarea custom fields by default with an (edit) link
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index e157a80ed..74f632c54 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -181,9 +181,28 @@ </script> [% CASE constants.FIELD_TYPE_TEXTAREA %] - [% INCLUDE global/textarea.html.tmpl - id = field.name name = field.name minrows = 4 maxrows = 8 - cols = 60 defaultcontent = value mandatory = field.is_mandatory %] + <div id="[% field.name FILTER html %]_edit_container" class="bz_default_hidden"> + <div> + (<a href="#" id="[% field.name FILTER html %]_edit_action">edit</a>) + </div> + [% IF value %] + <pre class="field_textarea_readonly">[% value FILTER html %]</pre> + [% END %] + </div> + <div id="[% field.name FILTER html %]_input"> + [% INCLUDE global/textarea.html.tmpl + id = field.name name = field.name minrows = 4 maxrows = 8 + cols = 60 defaultcontent = value mandatory = field.is_mandatory %] + </div> + <script type="text/javascript"> + hideEditableField('[% field.name FILTER js %]_edit_container', + '[% field.name FILTER js %]_input', + '[% field.name FILTER js %]_edit_action', + '[% field.name FILTER js %]', + '[% value FILTER js %]', + '', + true); + </script> [% CASE constants.FIELD_TYPE_BUG_URLS %] [% '<ul class="bug_urls">' IF value.size %] [% FOREACH bug_url = value %] |