From 44bc791eb3aa690940d540a7154d93dc8b10f186 Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Wed, 19 May 2010 09:28:37 -0700 Subject: Bug 494395: Implement the ability to mark custom fields as mandatory when creating/changing bugs r=mkanat, a=mkanat --- template/en/default/global/textarea.html.tmpl | 5 +++++ template/en/default/global/user-error.html.tmpl | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'template/en/default/global') 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. #%] 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 %]. -- cgit v1.2.1