added cancel and disable next

This commit is contained in:
James Tauber 2012-09-08 19:07:34 -04:00
parent 7b25f58087
commit e7c6055b3f
2 changed files with 7 additions and 1 deletions

View file

@ -28,7 +28,7 @@
{% endfor %}
</select>
<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>
<table class="table table-striped table-bordered">
@ -93,6 +93,11 @@
}
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
$(this).filter(":checked").each(function(i) {

View file

@ -37,6 +37,7 @@
replaced with the title of the proposal when the email is sent.
</p>
<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>
</div>
</form>