From 4cad2a069fcead88579373a285a0516a3d500c43 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 23 Jan 2013 17:55:50 +0100 Subject: UI improvement. --- app/views/tenants/_form_core.html.haml | 3 ++- config/locales/views/tenants/de.yml | 2 +- config/locales/views/tenants/en.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/tenants/_form_core.html.haml b/app/views/tenants/_form_core.html.haml index e0b173d..8f6e08f 100644 --- a/app/views/tenants/_form_core.html.haml +++ b/app/views/tenants/_form_core.html.haml @@ -1,3 +1,4 @@ .inputs = f.input :name, :label => t('tenants.form.name.label'), :hint => conditional_hint('tenants.form.name.hint'), :autofocus => true - = f.input :description, :label => t('tenants.form.description.label'), :hint => conditional_hint('tenants.form.description.hint') + - if !@tenant.new_record? + = f.input :description, :label => t('tenants.form.description.label'), :hint => conditional_hint('tenants.form.description.hint') diff --git a/config/locales/views/tenants/de.yml b/config/locales/views/tenants/de.yml index 817899a..6036879 100644 --- a/config/locales/views/tenants/de.yml +++ b/config/locales/views/tenants/de.yml @@ -1,7 +1,7 @@ de: tenants: name: "Mandant" - new_name_scaffold: 'Beispiel Firma Nr. %{counter} GmbH' + new_name_scaffold: 'Beispiel Firma' controller: successfuly_created: 'Der Mandant "%{resource}" wurde angelegt.' successfuly_created_plus_delayed_jobs: 'Der Mandant "%{resource}" wurde angelegt. %{amount_of_numbers} Durchwahlen und Telefonnummern werden jetzt im Hintergrund ins System gespielt. Dies kann je nach benutzter Hardware ein paar Minuten dauern. ' diff --git a/config/locales/views/tenants/en.yml b/config/locales/views/tenants/en.yml index b61b5e1..edccda0 100644 --- a/config/locales/views/tenants/en.yml +++ b/config/locales/views/tenants/en.yml @@ -1,7 +1,7 @@ en: tenants: name: "Tenant" - new_name_scaffold: 'Snake Oil #%{counter}, Ltd.' + new_name_scaffold: 'Snake Oil Ltd.' controller: successfuly_created: 'Successfully created the tenant "%{resource}".' successfuly_created_plus_delayed_jobs: 'Successfully created the tenant "%{resource}". A total of %{amount_of_numbers} extensions and external numbers is being proccessed in the background. Depending on your hardware that can take a couple of minutes.' -- cgit v1.2.3