new selection of input fields for enterprises form, not all datafields working yet

This commit is contained in:
Maikel Linke
2014-03-04 16:52:48 +11:00
parent 510333288c
commit 6f1d41e020
2 changed files with 48 additions and 0 deletions

View File

@@ -36,5 +36,52 @@
%td
= af.collection_select(:state_id, af.object.country.states, :id, :name)
= af.collection_select(:country_id, available_countries, :id, :name)
%tr
%th Contact Details
%th
%th Enterprise Details
%th
%tr
%td Name
%td= f.text_field :contact
%td ABN / ACN
%td= f.text_field :abn
%tr
%td Email
%td= f.text_field :email
%td Website
%td= f.text_field :website
%tr
%td Phone
%td= f.text_field :phone
%td Facebook
%td= f.text_field :twitter
/ TODO: facebook data field
%tr
%td
%td
%td Twitter
%td= f.text_field :twitter
%tr
%th About Us
%tr
%td Short Description
%td= f.text_field :description
%tr
%td About Us
%td= f.text_area :long_description, :class => 'rich_text'
%tr
%td How does it work?
%td= f.text_area :long_description, :class => 'rich_text'
/ TODO: hub explanation data field
%tr
%td Logo
%td
= f.file_field :logo
= image_tag @object.logo.url
%td Promo
%td
= f.file_field :promo_image
= image_tag @object.promo_image.url

View File

@@ -2,5 +2,6 @@
<%= form_for [main_app, :admin, @enterprise] do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<! Save, Save & Close and Cancel button >
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
<% end %>