added cancel and disable next
This commit is contained in:
parent
7b25f58087
commit
e7c6055b3f
2 changed files with 7 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="submit" class="btn btn-primary">Next <i class="icon icon-chevron-right"></i></button>
|
<button id="next-button" type="submit" class="btn btn-primary" disabled>Next <i class="icon icon-chevron-right"></i></button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="table table-striped table-bordered">
|
<table class="table table-striped table-bordered">
|
||||||
|
@ -93,6 +93,11 @@
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
|
if (sel == 0) {
|
||||||
|
$("#next-button").prop("disabled", true);
|
||||||
|
} else {
|
||||||
|
$("#next-button").prop("disabled", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Check state of checkboxes and reinit state if needed
|
// Check state of checkboxes and reinit state if needed
|
||||||
$(this).filter(":checked").each(function(i) {
|
$(this).filter(":checked").each(function(i) {
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
replaced with the title of the proposal when the email is sent.
|
replaced with the title of the proposal when the email is sent.
|
||||||
</p>
|
</p>
|
||||||
<button type="submit" class="btn btn-primary">Send {{ proposals|length }} Email{{ proposals|length|pluralize }}</button>
|
<button type="submit" class="btn btn-primary">Send {{ proposals|length }} Email{{ proposals|length|pluralize }}</button>
|
||||||
|
<a class="btn" href="{% url result_notification section_slug status %}">Cancel</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue