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/bug/create/create.html.tmpl | 8 ++++---- template/en/default/bug/field-label.html.tmpl | 3 +-- template/en/default/bug/field.html.tmpl | 20 +++++++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 983f12bb9..39f14e8de 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -218,7 +218,7 @@ TUI_hide_default('expert_fields'); describecomponents.cgi?product=[% product.name FILTER url_quote %] [% END %] [% INCLUDE "bug/field-label.html.tmpl" - field = bug_fields.component editable = 1 required = 1 + field = bug_fields.component editable = 1 desc_url = component_desc_url %] @@ -487,13 +487,13 @@ TUI_hide_default('expert_fields'); - + [% USE Bugzilla %] [% FOREACH field = Bugzilla.active_custom_fields %] [% NEXT UNLESS field.enter_bug %] [% SET value = ${field.name}.defined ? ${field.name} : "" %] - + [% INCLUDE bug/field.html.tmpl bug = default, field = field, value = value, editable = 1, value_span = 3 %] @@ -505,7 +505,7 @@ TUI_hide_default('expert_fields'); [% INCLUDE "bug/field-label.html.tmpl" - field = bug_fields.short_desc editable = 1 required = 1 + field = bug_fields.short_desc editable = 1 %] . #%] [% PROCESS "bug/field-help.none.tmpl" %] diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 211f16b8e..97d38661c 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -48,12 +48,9 @@ [% IF NOT no_tds %] [% PROCESS "bug/field-label.html.tmpl" %] -[% END %] - -[% IF NOT no_tds %] - + [% END %] [% Hook.process('start_field_column') %] [% IF editable %] @@ -62,11 +59,13 @@ + maxlength="[% constants.MAX_FREETEXT_LENGTH FILTER none %]" + [% ' aria-required="true"' IF field.is_mandatory %]> [% CASE constants.FIELD_TYPE_DATETIME %]