Commit 7d198b78 by Clinton Blackburn

Merge pull request #289 from edx/clintonb/price-validation

Price Validation and Display Fixes
parents 4b2e917a 25a84bd4
......@@ -15,7 +15,8 @@ define([
validation: {
price: {
required: true
required: true,
msg: gettext('All course seats must have a price.')
},
product_class: {
oneOf: ['Seat']
......
......@@ -11,8 +11,10 @@
<div class="input-group">
<div class="input-group-addon">$</div>
<input type="number" class="form-control" name="price" id="price" min="5" step="1" pattern="\d+"
placeholder="100" value="<%= price %>">
value="<%= price %>">
</div>
<!-- NOTE: This help-block is here for validation messages. -->
<span class="help-block"></span>
</div>
</div>
......
......@@ -12,8 +12,10 @@
<div class="input-group">
<div class="input-group-addon">$</div>
<input type="number" class="form-control" name="price" id="price" min="5" step="1" pattern="\d+"
placeholder="100" value="<%= price %>">
value="<%= price %>">
</div>
<!-- NOTE: This help-block is here for validation messages. -->
<span class="help-block"></span>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment