diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-10 10:44:47 -0400 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-10 10:44:47 -0400 |
commit | cd478d226e183efc30939fb13f797bd012117405 (patch) | |
tree | 6a279e006cc18053c4d4e27eff77c3f9d119940d /template/en/default/bug | |
parent | f92a5f03ea670c89be57ccdb16dba276099abdc5 (diff) | |
download | bugs-cd478d226e183efc30939fb13f797bd012117405.tar bugs-cd478d226e183efc30939fb13f797bd012117405.tar.gz bugs-cd478d226e183efc30939fb13f797bd012117405.tar.bz2 bugs-cd478d226e183efc30939fb13f797bd012117405.tar.xz bugs-cd478d226e183efc30939fb13f797bd012117405.zip |
Bug 850135 - hide the textarea custom fields by default with an (edit) link
r=glob,a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index a77f9087c..c086a04f7 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -142,9 +142,30 @@ </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 %] + <div class="field_textarea_readonly"> + <pre>[% value FILTER html %]</pre> + </div> + [% 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 %] |