Scope Enterprise Group form legend translations

Using lazy-lookup builtin scopes, instead of sharing the global translations, as per our guidelines.
This commit is contained in:
David Cook
2022-09-28 16:12:38 +10:00
committed by Konrad
parent 2e2ff25ef7
commit 7803e5d4ff
7 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
%fieldset.alpha.no-border-bottom#about_panel{ data: { "tabs-and-panels-target": "panel" } }
%legend= t('about')
%legend= t('.about')
= f.field_container :long_description do
%text-angular{'id' => 'enterprise_group_long_description', 'name' => 'enterprise_group[long_description]', 'class' => 'text-angular', "textangular-links-target-blank" => true,
'ta-toolbar' => "[['h1','h2','h3','h4','p'],['bold','italics','underline','clear'],['insertLink']]"}

View File

@@ -1,6 +1,6 @@
= f.fields_for :address do |af|
%fieldset.alpha.no-border-bottom#contact_panel{ data: { "tabs-and-panels-target": "panel" } }
%legend= t('admin_enterprise_groups_contact')
%legend= t('.contact')
.row
.alpha.three.columns
= af.label :phone

View File

@@ -1,5 +1,5 @@
%fieldset.alpha.no-border-bottom#images_panel{ data: { "tabs-and-panels-target": "panel" } }
%legend= t('images')
%legend= t('.images')
.row
.alpha.three.columns
= f.label :logo, 'ofn-with-tip' => t('admin_enterprise_groups_data_powertip_logo')

View File

@@ -1,5 +1,5 @@
%fieldset.alpha.no-border-bottom#primary_details_panel{ data: { "tabs-and-panels-target": "panel default" } }
%legend= t('primary_details')
%legend= t('.primary_details')
= f.field_container :name do
= f.label :name
%br/

View File

@@ -1,5 +1,5 @@
%fieldset.alpha.no-border-bottom#users_panel{ data: { "tabs-and-panels-target": "panel" } }
%legend= t('users')
%legend= t('.users')
.row
.three.columns.alpha
=f.label :owner_id, t(:admin_enterprise_groups_owner)

View File

@@ -1,5 +1,5 @@
%fieldset.alpha.no-border-bottom#web_panel{ data: { "tabs-and-panels-target": "panel" } }
%legend= t('admin_enterprise_groups_web')
%legend= t('.web')
.row
.alpha.three.columns
= f.label :website

View File

@@ -637,6 +637,18 @@ en:
enterprise_groups:
index:
new_button: New Enterprise Group
form_primary_details:
primary_details: "Primary Details"
form_users:
users: "Users"
form_about:
about: "About"
form_images:
images: "Images"
form_address:
contact: "Contact"
form_web:
web: "Web Resources"
enterprise_roles:
form: