Created
July 2, 2010 01:41
-
-
Save dnch/460815 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| = form_for @enquiry || Enquiry.new, :remote => true, :builder => Paragon::Builder, :html => { :class => "paragon" } do |f| | |
| %fieldset.horizontal | |
| = f.text_field :name | |
| = f.text_field :company_name | |
| = f.text_field :email_address | |
| = f.text_field :contact_number | |
| = f.text_area :message | |
| %fieldset.buttons | |
| = f.submit "Send Enquiry" | |
| :javascript | |
| $(document).ready(function() { | |
| $('#new_enquiry').bind('ajax:loading', function() { console.log('Show Spinner...'); return true; }); | |
| $('#new_enquiry').bind('ajax:complete', function() { console.log('Hide Spinner...'); return true; }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment