Changeset 4867f3 in indico
- Timestamp:
- 09/30/11 16:47:42 (20 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- eb968d
- Parents:
- 3edc62
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (09/30/11 12:09:41)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (09/30/11 16:47:42)
- Location:
- indico
- Files:
-
- 2 edited
-
MaKaC/registration.py (modified) (2 diffs)
-
htdocs/js/indico/Legacy/Util.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/registration.py
rb09a64 r4867f3 1700 1700 if ( registrant is not None and billable and registrant.getPayed()) or (not self.getParent().hasAvailablePlaces() and not quantity): 1701 1701 disable="disabled=\"disabled\"" 1702 #pass1703 1702 if v=="yes": 1704 1703 checked="checked=\"checked\"" 1705 1706 tmp = """<input type="checkbox" id="%s" name="%s" %s %s> %s""" % (htmlName, htmlName, checked, disable, caption) 1704 pm = '' 1705 if self._parent.isMandatory(): 1706 pm = """<script>addParam($E('%s'), 'checkBox', false);</script>""" % htmlName 1707 tmp = """<input type="checkbox" id="%s" name="%s" %s %s> %s%s""" % (htmlName, htmlName, checked, disable, caption, pm) 1707 1708 tmp= """ <td>%s</td><td align="right" align="bottom">"""%tmp 1708 1709 if billable: … … 1724 1725 item.setValue("yes") 1725 1726 item.setQuantity(1) 1727 elif not override and self.getParent().isMandatory(): 1728 raise FormValuesError(_('The checkbox "%s" is mandatory. Please enable it.') % self.getParent().getCaption()) 1726 1729 else: 1727 1730 item.setValue("no") -
indico/htdocs/js/indico/Legacy/Util.js
r453220 r4867f3 567 567 } 568 568 } 569 else if (dataType == 'checkBox' && !exists(extraCheckFunction)) { 570 if (!allowEmpty && !component.dom.checked) { 571 error = Html.span({}, $T("Please enable the checkbox")); 572 } 573 } 569 574 else if (dataType == "radio" && !exists(extraCheckFunction)) { 570 575 if (!allowEmpty && !self.checkRadioButton(component)) {
Note: See TracChangeset
for help on using the changeset viewer.
