aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-02-27 08:33:45 +1000
committerSimon Green <sgreen@redhat.com>2014-02-27 08:33:45 +1000
commit3776f86ebdfb6169a35c525ce6b8363eb0cabbe1 (patch)
treea4c68a99923b16df2628af32e3a20064cdbe84b0 /template/en/default/bug
parent64f44ef195aedfa291ffa474fab1db13624f60d7 (diff)
downloadbugs-3776f86ebdfb6169a35c525ce6b8363eb0cabbe1.tar
bugs-3776f86ebdfb6169a35c525ce6b8363eb0cabbe1.tar.gz
bugs-3776f86ebdfb6169a35c525ce6b8363eb0cabbe1.tar.bz2
bugs-3776f86ebdfb6169a35c525ce6b8363eb0cabbe1.tar.xz
bugs-3776f86ebdfb6169a35c525ce6b8363eb0cabbe1.zip
Bug 466178 - Add an INTEGER custom field type
r=glob, a=justdave
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/field.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 0ef19c1c4..f8612eebb 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -35,11 +35,13 @@
[% Hook.process('start_field_column') %]
[% IF editable %]
[% SWITCH field.type %]
- [% CASE constants.FIELD_TYPE_FREETEXT %]
+ [% CASE [ constants.FIELD_TYPE_FREETEXT
+ constants.FIELD_TYPE_INTEGER ] %]
<input id="[% field.name FILTER html %]" class="text_input"
name="[% field.name FILTER html %]"
value="[% value FILTER html %]" size="40"
maxlength="[% constants.MAX_FREETEXT_LENGTH FILTER none %]"
+ [% ' pattern="\d+"' IF field.type == constants.FIELD_TYPE_INTEGER %]
[% ' aria-required="true"' IF field.is_mandatory %]>
[% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %]
[% size = (field.type == constants.FIELD_TYPE_DATE) ? 10 : 20 %]