Wording update for settings.

This commit is contained in:
Martin Edenhofer 2015-07-16 12:14:31 +02:00
parent 70de454d48
commit 73e9ccb7b4
2 changed files with 73 additions and 2 deletions

View file

@ -0,0 +1,69 @@
class UpdateSettings < ActiveRecord::Migration
def up
Setting.create_or_update(
title: 'Organization',
name: 'organization',
area: 'System::Branding',
description: 'Will be shown in the app and is included in email footers.',
options: {
form: [
{
display: '',
null: false,
name: 'organization',
tag: 'input',
},
],
},
state: '',
preferences: { prio: 2 },
frontend: true
)
Setting.create_or_update(
title: 'Send client stats',
name: 'ui_send_client_stats',
area: 'System::UI',
description: 'Send client stats/error message to central server to improve the usability.',
options: {
form: [
{
display: '',
null: true,
name: 'ui_send_client_stats',
tag: 'boolean',
options: {
true => 'yes',
false => 'no',
},
},
],
},
state: true,
preferences: { prio: 1 },
frontend: true
)
Setting.create_or_update(
title: 'Client storage',
name: 'ui_client_storage',
area: 'System::UI',
description: 'Use client storage to cache data to perform speed of application.',
options: {
form: [
{
display: '',
null: true,
name: 'ui_client_storage',
tag: 'boolean',
options: {
true => 'yes',
false => 'no',
},
},
],
},
state: false,
preferences: { prio: 2 },
frontend: true
)
end
end

View file

@ -75,7 +75,7 @@ Setting.create_if_not_exists(
title: 'Organization', title: 'Organization',
name: 'organization', name: 'organization',
area: 'System::Branding', area: 'System::Branding',
description: 'Will be shown in the app and is included in email headers.', description: 'Will be shown in the app and is included in email footers.',
options: { options: {
form: [ form: [
{ {
@ -273,7 +273,7 @@ Setting.create_if_not_exists(
title: 'Send client stats', title: 'Send client stats',
name: 'ui_send_client_stats', name: 'ui_send_client_stats',
area: 'System::UI', area: 'System::UI',
description: 'Send client stats to central server.', description: 'Send client stats/error message to central server to improve the usability.',
options: { options: {
form: [ form: [
{ {
@ -289,6 +289,7 @@ Setting.create_if_not_exists(
], ],
}, },
state: true, state: true,
preferences: { prio: 1 },
frontend: true frontend: true
) )
Setting.create_if_not_exists( Setting.create_if_not_exists(
@ -311,6 +312,7 @@ Setting.create_if_not_exists(
], ],
}, },
state: false, state: false,
preferences: { prio: 2 },
frontend: true frontend: true
) )