Skip to content

Commit

Permalink
added cancel and disable next
Browse files Browse the repository at this point in the history
  • Loading branch information
jtauber committed Sep 8, 2012
1 parent 7b25f58 commit e7c6055
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion symposion/templates/reviews/result_notification.html
Expand Up @@ -28,7 +28,7 @@ <h1>Result Notification</h1>
{% 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">
Expand Down Expand Up @@ -93,6 +93,11 @@ <h1>Result Notification</h1>
}
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) {
Expand Down
Expand Up @@ -37,6 +37,7 @@ <h2>Email</h2>
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>
Expand Down

0 comments on commit e7c6055

Please sign in to comment.