Prevent saving when textbook is in invalid state

This commit is contained in:
David Baumgold
2013-06-25 17:20:59 -04:00
parent 74b9703def
commit fedbf4585b
4 changed files with 34 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
<form class="edit-textbook" id="edit_textbook_form">
<div class="wrapper-form">
<% if (errors) { %>
<% if (error) { %>
<div id="edit_textbook_error" class="message message-status message-status error" name="edit_textbook_error">
<%= errors %>
<%= error %>
</div>
<% } %>