diff --git a/app/views/admin/enterprises/_form.html.haml b/app/views/admin/enterprises/_form.html.haml index c6d4e3bfdb..305ef8b2f8 100644 --- a/app/views/admin/enterprises/_form.html.haml +++ b/app/views/admin/enterprises/_form.html.haml @@ -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 diff --git a/app/views/admin/enterprises/new.html.erb b/app/views/admin/enterprises/new.html.erb index 92682f64d8..a78a75c81e 100644 --- a/app/views/admin/enterprises/new.html.erb +++ b/app/views/admin/enterprises/new.html.erb @@ -2,5 +2,6 @@ <%= form_for [main_app, :admin, @enterprise] do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> + <%= render :partial => 'spree/admin/shared/new_resource_links' %> <% end %>