Make deadline inconsistent with asap
This commit is contained in:
parent
19263040a9
commit
c47208e384
|
@ -125,6 +125,10 @@ class LexiconConfigForm(FlaskForm):
|
||||||
# And finally, the submit button
|
# And finally, the submit button
|
||||||
submit = SubmitField("Submit")
|
submit = SubmitField("Submit")
|
||||||
|
|
||||||
|
def validate_publishDeadlines(form, field):
|
||||||
|
if form.publishAsap.data:
|
||||||
|
raise ValidationError('Cannot specify deadline if immediate publishing is enabled')
|
||||||
|
|
||||||
# TODO add validators that call into extant valid check methods
|
# TODO add validators that call into extant valid check methods
|
||||||
|
|
||||||
def set_options(self, lexicon):
|
def set_options(self, lexicon):
|
||||||
|
|
|
@ -84,6 +84,9 @@
|
||||||
{{ form.publishDeadlines(autocomplete="off") }}
|
{{ form.publishDeadlines(autocomplete="off") }}
|
||||||
{{ form.publishDeadlines.label }}<br>
|
{{ form.publishDeadlines.label }}<br>
|
||||||
{{ flag_setting(form.publishAsap) }}
|
{{ flag_setting(form.publishAsap) }}
|
||||||
|
{% for error in form.publishDeadlines.errors %}
|
||||||
|
<span style="color: #ff0000">{{ error }}</span><br>
|
||||||
|
{% endfor %}
|
||||||
{{ flag_setting(form.publishBlockOnReady) }}
|
{{ flag_setting(form.publishBlockOnReady) }}
|
||||||
{{ number_setting(form.publishQuorum) }}
|
{{ number_setting(form.publishQuorum) }}
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue