diff options
author | Tiago Mello <timello@linux.vnet.ibm.com> | 2010-05-19 09:28:37 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-19 09:28:37 -0700 |
commit | 44bc791eb3aa690940d540a7154d93dc8b10f186 (patch) | |
tree | 9d489c9a0ee037d6341fd3f03f5d86d9543a6a98 /template/en/default/global | |
parent | d614dd98c482a06459f5f6e4911e0f32de6c424b (diff) | |
download | bugs-44bc791eb3aa690940d540a7154d93dc8b10f186.tar bugs-44bc791eb3aa690940d540a7154d93dc8b10f186.tar.gz bugs-44bc791eb3aa690940d540a7154d93dc8b10f186.tar.bz2 bugs-44bc791eb3aa690940d540a7154d93dc8b10f186.tar.xz bugs-44bc791eb3aa690940d540a7154d93dc8b10f186.zip |
Bug 494395: Implement the ability to mark custom fields as mandatory when
creating/changing bugs
r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/textarea.html.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/template/en/default/global/textarea.html.tmpl b/template/en/default/global/textarea.html.tmpl index b762f1c4f..1d8cacafb 100644 --- a/template/en/default/global/textarea.html.tmpl +++ b/template/en/default/global/textarea.html.tmpl @@ -31,6 +31,8 @@ # minrows will be used. # cols: (required) Number of columns the textarea shall have. # defaultcontent: (optional) Default content for the textarea. + # mandatory: (optional) Boolean specifying whether or not the textarea + # is mandatory. #%] <textarea [% IF name %]name="[% name FILTER html %]"[% END %] @@ -47,4 +49,7 @@ cols="[% cols FILTER html %]" [% IF maxrows && user.settings.zoom_textareas.value == 'on' %] onFocus="this.rows=[% maxrows FILTER html %]" + [% END %] + [% IF mandatory %] + aria-required="true" [% END %]>[% defaultcontent FILTER html %]</textarea> diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 279f29c71..c5667bd27 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1473,6 +1473,11 @@ [% title = "New Password Needed" %] You cannot change your password without choosing a new one. + [% ELSIF error == "required_field" %] + [% title = "Field Must Be Set" %] + A value must be set for the '[% field_descs.${field.name} FILTER html %]' + field. + [% ELSIF error == "require_summary" %] [% title = "Summary Needed" %] You must enter a summary for this [% terms.bug %]. |