mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
admin entreprise_group are translated!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='About'" } }
|
||||
%legend About
|
||||
%legend
|
||||
= t 'admin_entreprise_groups_about'
|
||||
= f.field_container :long_description do
|
||||
%text-angular{'id' => 'enterprise_group_long_description', 'name' => 'enterprise_group[long_description]', 'class' => 'text-angular',
|
||||
'ta-toolbar' => "[['h1','h2','h3','h4','p'],['bold','italics','underline','clear'],['insertLink']]"}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
= f.fields_for :address do |af|
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Contact'" } }
|
||||
%legend Contact
|
||||
%legend
|
||||
= t 'admin_entreprise_groups_contact'
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= af.label :phone
|
||||
.omega.eight.columns
|
||||
= af.text_field :phone, { placeholder: "eg. 98 7654 3210"}
|
||||
= af.text_field :phone, { placeholder: t(:admin_entreprise_groups_contact_phone_placeholder)}
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :email
|
||||
@@ -15,7 +16,7 @@
|
||||
.three.columns.alpha
|
||||
= af.label :address1
|
||||
.eight.columns.omega
|
||||
= af.text_field :address1, { placeholder: "eg. 123 High Street"}
|
||||
= af.text_field :address1, { placeholder: t(:admin_entreprise_groups_contact_address1_placeholder)}
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= af.label :address2
|
||||
@@ -23,18 +24,17 @@
|
||||
= af.text_field :address2
|
||||
.row
|
||||
.three.columns.alpha
|
||||
= af.label :city, 'Suburb'
|
||||
= af.label :city, t(:admin_entreprise_groups_contact_city)
|
||||
\/
|
||||
= af.label :zipcode, 'Postcode'
|
||||
= af.label :zipcode, t(:admin_entreprise_groups_contact_zipcode)
|
||||
.four.columns
|
||||
= af.text_field :city, { placeholder: "eg. Northcote"}
|
||||
= af.text_field :city, { placeholder: t(:admin_entreprise_groups_contact_city_placeholder)}
|
||||
.four.columns.omega
|
||||
= af.text_field :zipcode, { placeholder: "eg. 3070"}
|
||||
= af.text_field :zipcode, { placeholder: t(:admin_entreprise_groups_contact_zipcode_placeholder)}
|
||||
.row
|
||||
.three.columns.alpha
|
||||
= af.label :state_id, 'State'
|
||||
\/
|
||||
= af.label :country_id, 'Country'
|
||||
= af.label :state_id, t(:admin_entreprise_groups_contact_state_id)
|
||||
= af.label :country_id, t(:admin_entreprise_groups_contact_country_id)
|
||||
.four.columns
|
||||
= af.collection_select :state_id, af.object.country.states, :id, :name, {}, :class => "select2 fullwidth"
|
||||
.four.columns.omega
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Images'" } }
|
||||
%legend Images
|
||||
%legend
|
||||
= t 'admin_entreprise_groups_images'
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :logo, class: 'with-tip', 'data-powertip' => 'This is the logo'
|
||||
.with-tip{'data-powertip' => 'This is the logo'}
|
||||
.with-tip{'data-powertip' => t(:admin_entreprise_groups_data_powertip_logo)}
|
||||
%a What's this?
|
||||
.omega.eight.columns
|
||||
= image_tag @object.logo.url if @object.logo.present?
|
||||
= f.file_field :logo
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :promo_image, class: 'with-tip', 'data-powertip' => 'This image is displayed at the top of the Group profile'
|
||||
.with-tip{'data-powertip' => 'This image is displayed at the top of the Group profile'}
|
||||
%a What's this?
|
||||
= f.label :promo_image, class: 'with-tip', 'data-powertip' => t(:admin_entreprise_groups_data_powertip_promo_image)
|
||||
.with-tip{'data-powertip' => t(:admin_entreprise_groups_data_powertip_promo_image_tip)}
|
||||
%a
|
||||
= t 'admin_entreprise_groups_what_s_this'
|
||||
.omega.eight.columns
|
||||
= image_tag @object.promo_image.url if @object.promo_image.present?
|
||||
= f.file_field :promo_image
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Primary Details'" } }
|
||||
%legend Primary Details
|
||||
%legend
|
||||
= t "admin_entreprise_groups_primary_details"
|
||||
= f.field_container :name do
|
||||
= f.label :name
|
||||
%br/
|
||||
@@ -11,12 +12,12 @@
|
||||
= f.text_field :description
|
||||
|
||||
= f.field_container :on_front_page do
|
||||
= f.label :on_front_page, 'On front page?'
|
||||
= f.label :on_front_page, t(:admin_entreprise_groups_on_front_page)
|
||||
%br/
|
||||
= f.check_box :on_front_page
|
||||
|
||||
= f.field_container :enterprise_ids do
|
||||
= f.label :enterprise_ids, 'Enterprises'
|
||||
= f.label :enterprise_ids, t(:admin_entreprise_groups_entreprise)
|
||||
%br/
|
||||
= f.collection_select :enterprise_ids, @enterprises, :id, :name, {}, {class: "select2 fullwidth", multiple: true}
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
%legend Users
|
||||
.row
|
||||
.three.columns.alpha
|
||||
=f.label :owner_id, 'Owner'
|
||||
.with-tip{'data-powertip' => "The primary user responsible for this group."}
|
||||
%a What's this?
|
||||
=f.label :owner_id, t(:admin_entreprise_groups_owner)
|
||||
.with-tip{'data-powertip' => t(:admin_entreprise_groups_data_powertip)}
|
||||
%a
|
||||
= t 'admin_entreprise_groups_what_s_this'
|
||||
.eight.columns.omega
|
||||
- if spree_current_user.admin?
|
||||
= f.hidden_field :owner_id,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Web'" } }
|
||||
%legend Web Resources
|
||||
%legend
|
||||
= t 'admin_entreprise_groups_web'
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :website
|
||||
.omega.eight.columns
|
||||
= f.text_field :website, { placeholder: "eg. www.truffles.com"}
|
||||
= f.text_field :website, { placeholder: t(:admin_entreprise_groups_web_website_placeholder)}
|
||||
.row
|
||||
.alpha.three.columns
|
||||
= f.label :facebook, 'Facebook'
|
||||
@@ -24,4 +25,4 @@
|
||||
.alpha.three.columns
|
||||
= f.label :twitter
|
||||
.omega.eight.columns
|
||||
= f.text_field :twitter, { placeholder: "eg. @the_prof" }
|
||||
= f.text_field :twitter, { placeholder: t(:admin_entreprise_groups_web_twitter) }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
= content_for :page_title do
|
||||
Enterprise Groups
|
||||
= t 'admin_entreprise_groups'
|
||||
|
||||
= content_for :page_actions do
|
||||
%li#new_enterprise_group_link
|
||||
@@ -8,11 +8,15 @@
|
||||
%table.index#listing_enterprise_groups
|
||||
%thead
|
||||
%tr
|
||||
%th Name
|
||||
%th
|
||||
= t 'admin_entreprise_groups_name'
|
||||
- if spree_current_user.admin?
|
||||
%th Owner
|
||||
%th On front page?
|
||||
%th Enterprises
|
||||
%th
|
||||
= t 'admin_entreprise_groups_owner'
|
||||
%th
|
||||
= t 'admin_entreprise_groups_on_front_page'
|
||||
%th
|
||||
= t 'admin_entreprise_groups_entreprise'
|
||||
%th.actions
|
||||
|
||||
%tbody
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- content_for :page_title do
|
||||
Enterprise Relationships
|
||||
= t 'admin_entreprise_relationships'
|
||||
|
||||
= render 'admin/shared/enterprises_sub_menu'
|
||||
|
||||
|
||||
@@ -658,3 +658,29 @@ Please follow the instructions there to make your enterprise visible on the Open
|
||||
price_graph: "Price graph"
|
||||
included_tax: "Included tax"
|
||||
remove_tax: "Remove tax"
|
||||
admin_entreprise_relationships: "Enterprise Relationships"
|
||||
admin_entreprise_groups: "Enterprise Groups"
|
||||
admin_entreprise_groups_name: "Name"
|
||||
admin_entreprise_groups_owner: "Owner"
|
||||
admin_entreprise_groups_on_front_page: "On front page ?"
|
||||
admin_entreprise_groups_entreprise: "Enterprises"
|
||||
admin_entreprise_groups_primary_details: "Primary Details"
|
||||
admin_entreprise_groups_data_powertip: "The primary user responsible for this group."
|
||||
admin_entreprise_groups_data_powertip_logo: "This is the logo"
|
||||
admin_entreprise_groups_data_powertip_promo_image: "This image is displayed at the top of the Group profile"
|
||||
admin_entreprise_groups_data_powertip_promo_image_tip: "This image is displayed at the top of the Group profile"
|
||||
admin_entreprise_groups_what_s_this: "What's this ?"
|
||||
admin_entreprise_groups_about: "About"
|
||||
admin_entreprise_groups_images: "Images"
|
||||
admin_entreprise_groups_contact: "Contact"
|
||||
admin_entreprise_groups_contact_phone_placeholder: "eg. 98 7654 3210"
|
||||
admin_entreprise_groups_contact_address1_placeholder: "eg. 123 High Street"
|
||||
admin_entreprise_groups_contact_city: "Suburb"
|
||||
admin_entreprise_groups_contact_city_placeholder: "eg. Northcote"
|
||||
admin_entreprise_groups_contact_zipcode: "Postcode"
|
||||
admin_entreprise_groups_contact_zipcode_placeholder: "eg. 3070"
|
||||
admin_entreprise_groups_contact_state_id: "State"
|
||||
admin_entreprise_groups_contact_country_id: "Country"
|
||||
admin_entreprise_groups_web: "Web Resources"
|
||||
admin_entreprise_groups_web_twitter: "eg. @the_prof"
|
||||
admin_entreprise_groups_web_website_placeholder: "eg. www.truffles.com"
|
||||
Reference in New Issue
Block a user