mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
new selection of input fields for enterprises form, not all datafields working yet
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user