Permalink
Browse files

Disabled form submit button and trying to enable submit buttons in fo…

…oter
  • Loading branch information...
1 parent e8cec50 commit 444d03a12b3832a7cd5753e202af20d23f2a3588 @amitamb committed Jan 20, 2014
Showing with 6 additions and 2 deletions.
  1. +2 −2 app/views/contacts/_form.html.erb
  2. +4 −0 app/views/contacts/new.html.erb
@@ -18,8 +18,8 @@
<div class="form-group">
<%= f.text_area :message, class: "form-control", type: "text", placeholder: "Message", rows: 8 %>
</div>
-
+ <!--
<div>
<%= f.submit "Send" %>
- </div>
+ </div> -->
<% end %>
@@ -3,6 +3,10 @@
<%= render 'form' %>
<% content_for :footer do %>
+ <!-- These buttons won't work as they are after closing form tag
+ We need to use Javascript to make them call submit on the form inside the modal
+ Plus we have disabled the default send button on form which would make the form look rather ugly
+ -->
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" id="modal-form-submit" class="btn btn-primary">Send</button>
<% end %>

0 comments on commit 444d03a

Please sign in to comment.