Rename config tab roles to security

This commit is contained in:
Patrick Gansterer 2020-08-07 01:03:00 +02:00
parent 4c567fece1
commit f221a081dd
5 changed files with 15 additions and 15 deletions

View file

@ -30,7 +30,7 @@ class Admin::ConfigsController < Admin::BaseController
# Set configuration tab names as `@tabs` # Set configuration tab names as `@tabs`
def get_tabs def get_tabs
@tabs = %w(foodcoop payment tasks messages layout language roles others) @tabs = %w(foodcoop payment tasks messages layout language security others)
# allow engines to modify this list # allow engines to modify this list
engines = Rails::Engine.subclasses.map(&:instance).select { |e| e.respond_to?(:configuration) } engines = Rails::Engine.subclasses.map(&:instance).select { |e| e.respond_to?(:configuration) }
engines.each { |e| e.configuration(@tabs, self) } engines.each { |e| e.configuration(@tabs, self) }

View file

@ -1,5 +1,5 @@
%h4= t '.access_to_title' %h4= t '.default_role_title'
= t '.access_to_paragraph' = t '.default_role_paragraph'
= config_input form, :default_role_suppliers, as: :boolean = config_input form, :default_role_suppliers, as: :boolean
= config_input form, :default_role_article_meta, as: :boolean = config_input form, :default_role_article_meta, as: :boolean
= config_input form, :default_role_orders, as: :boolean = config_input form, :default_role_orders, as: :boolean

View file

@ -280,9 +280,9 @@ de:
emails_title: E-Mails versenden emails_title: E-Mails versenden
tab_payment: tab_payment:
schedule_title: Bestellschema schedule_title: Bestellschema
tab_roles: tab_security:
access_to_title: Zugriff auf default_roles_title: Zugriff auf
access_to_paragraph: Jedes Mitglied der Foodcoop hat automatisch Zugriff auf folgende Bereiche. default_roles_paragraph: Jedes Mitglied der Foodcoop hat automatisch Zugriff auf folgende Bereiche.
tab_tasks: tab_tasks:
periodic_title: Wiederkehrende Aufgaben periodic_title: Wiederkehrende Aufgaben
tabs: tabs:
@ -641,7 +641,7 @@ de:
messages: Nachrichten messages: Nachrichten
others: Sonstiges others: Sonstiges
payment: Finanzen payment: Finanzen
roles: Rollen security: Sicherheit
tasks: Aufgaben tasks: Aufgaben
deliveries: deliveries:
add_stock_change: add_stock_change:

View file

@ -295,9 +295,9 @@ en:
emails_title: Sending email emails_title: Sending email
tab_payment: tab_payment:
schedule_title: Ordering schedule schedule_title: Ordering schedule
tab_roles: tab_security:
access_to_title: Access to default_roles_title: Access to
access_to_paragraph: By default every member of the foodcoop has access to the following areas. default_roles_paragraph: By default every member of the foodcoop has access to the following areas.
tab_tasks: tab_tasks:
periodic_title: Periodic tasks periodic_title: Periodic tasks
tabs: tabs:
@ -664,7 +664,7 @@ en:
messages: Messages messages: Messages
others: Other others: Other
payment: Finances payment: Finances
roles: Roles security: Security
tasks: Tasks tasks: Tasks
deliveries: deliveries:
add_stock_change: add_stock_change:

View file

@ -287,9 +287,9 @@ nl:
emails_title: Emailinstellingen emails_title: Emailinstellingen
tab_payment: tab_payment:
schedule_title: Bestelrooster schedule_title: Bestelrooster
tab_roles: tab_security:
access_to_title: Toegang tot default_roles_title: Toegang tot
access_to_paragraph: Ieder lid van de foodcoop heeft standaard toegang tot de volgende onderdelen. default_roles_paragraph: Ieder lid van de foodcoop heeft standaard toegang tot de volgende onderdelen.
tab_tasks: tab_tasks:
periodic_title: Periodieke taken periodic_title: Periodieke taken
tabs: tabs:
@ -653,7 +653,7 @@ nl:
messages: Berichten messages: Berichten
others: Overig others: Overig
payment: Financiën payment: Financiën
roles: Rollen security: Beveiliging
tasks: Taken tasks: Taken
deliveries: deliveries:
add_stock_change: add_stock_change: