Sha256: dd7f7b464e5ee964d4e62c608e38c1e813a24bfc3904eba0a4b0537e2335b756
Contents?: true
Size: 769 Bytes
Versions: 8
Compression:
Stored size: 769 Bytes
Contents
<% school = defined?(@school) ? @school : School.new %> <%= render :partial => 'shared/form_errors', :locals => { :object => school } %> <%= semantic_form_for school do |f| %> <%= f.inputs :id => "new-school-fields" do %> <%= f.input :name %> <%= f.input :address_1 %> <%= f.input :address_2 %> <%= f.input :city %> <%= f.input :state, :as => :select, :collection => GeographicalRegions.all_us_states_as_select_field_pairs %> <%= f.input :zipcode, :input_html => { :maxlength => '5' } %> <%= f.input :phone, :as => :string %> <% end %> <fieldset class="buttons"> <%= f.submit "#{school.new_record? ? 'Add' : 'Update'} Institution", :id => 'school_submit' %> <a href="#cancel-edit-school">Cancel</a> </fieldset> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems