Require that the user selects whether their enterprise charges sales tax

This commit is contained in:
Rohan Mitchell
2015-04-08 13:25:47 +10:00
parent 0bdb8f7241
commit a6a5fdfb3b

View File

@@ -44,10 +44,12 @@
.small-12.columns
.field
%label{ for: 'enterprise_charges_sales_tax' }= t(:charges_sales_tax)
%input{ id: 'enterprise_charges_sales_tax_true', type: 'radio', value: 'true', ng: { model: 'enterprise.charges_sales_tax' } }
%input{ id: 'enterprise_charges_sales_tax_true', type: 'radio', name: 'charges_sales_tax', value: 'true', required: true, ng: { model: 'enterprise.charges_sales_tax' } }
%label{ for: 'enterprise_charges_sales_tax_true' } Yes
%input{ id: 'enterprise_charges_sales_tax_false', type: 'radio', value: 'false', ng: { model: 'enterprise.charges_sales_tax' } }
%input{ id: 'enterprise_charges_sales_tax_false', type: 'radio', name: 'charges_sales_tax', value: 'false', required: true, ng: { model: 'enterprise.charges_sales_tax' } }
%label{ for: 'enterprise_charges_sales_tax_false' } No
%span.error.small-12.columns{ ng: { show: "about.charges_sales_tax.$error.required && submitted" } }
You need to make a selection.
.row.buttons.pad-top
.small-12.columns