Created
July 7, 2013 21:11
-
-
Save TXDynamics/5944977 to your computer and use it in GitHub Desktop.
Base Simple_form form rails layout
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
| <%= simple_form_for(@listing) do |f| %> | |
| <%= f.error_notification %> | |
| <div class="form-inputs"> | |
| <%= f.input :listing_title, hint: '<strong>Pick a descriptive title to really sell your place!</strong>', input_html: { class: 'span7' }, label: 'Listing Title' %> | |
| <%= f.input :listing_description, as: :text, input_html: { class: 'span7' } %> | |
| <%= f.input :listing_roomate_count, collection: 1..5, label: 'How Many Roomates?', prompt: 'Choose' %> | |
| <!-- This is a default value of USA and can be switched later when expanding more countries --> | |
| <%= f.hidden_field :country_id, value: '236' %> | |
| <%= f.input :state_id, collection: @states, label_method: :name, value_method: :id, prompt: 'State' %> | |
| <%= f.input :address1, input_html: { class: 'span7' }, label: 'Street Address 1' %> | |
| <%= f.input :address2, input_html: { class: 'span7' }, label: 'Street Address 1' %> | |
| <%= f.input :listing_city, input_html: {class: 'span7'}, label: 'City' %> | |
| <%= f.input :college_id, collection: @colleges, label_method: :name, value_method: :id, prompt: 'Nearby College?', hint: 'Choose a local college, this improves your candidates!' %> | |
| <%= f.input :listing_rent, input_html: {class: 'span4'}, label: 'Rent per roomate in dollars' %> | |
| <%= f.input :listing_expiration, input_html: {class: 'span7'}, label: 'Listing Expires' %> | |
| </div> | |
| <%= f.button :submit , :class => 'btn btn-medium btn-success', value: 'Post It!' %> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment