From be095223e45467ff82eeb53eee62f881dd3f7e1e Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 10 Jan 2013 22:46:44 +0600 Subject: [PATCH] [refs #818] change new header --- app/views/admin/users/new.html.haml | 2 +- config/locales/models/user.en.yml | 1 + config/locales/models/user.ru.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/users/new.html.haml b/app/views/admin/users/new.html.haml index 66a214055..faa8fca22 100644 --- a/app/views/admin/users/new.html.haml +++ b/app/views/admin/users/new.html.haml @@ -1,6 +1,6 @@ .block .content - %h2.title= title t("layout.users.new_header") + %h2.title= title t("layout.users.new_#{@user.system? ? 'system_' : ''}header") .inner = form_for @user, :url => admin_users_path, :html => {:class => :form} do |f| -if @user.system? diff --git a/config/locales/models/user.en.yml b/config/locales/models/user.en.yml index 5fddad712..bb115cb6a 100644 --- a/config/locales/models/user.en.yml +++ b/config/locales/models/user.en.yml @@ -5,6 +5,7 @@ en: new: Create edit: Edit new_header: New user + new_system_header: New system user edit_header: Edit list_header: Users groups: Groups diff --git a/config/locales/models/user.ru.yml b/config/locales/models/user.ru.yml index 44a612874..ba71de76e 100644 --- a/config/locales/models/user.ru.yml +++ b/config/locales/models/user.ru.yml @@ -5,6 +5,7 @@ ru: new: Создать edit: Редактировать new_header: Новый пользователь + new_system_header: Новый служебный пользователь edit_header: Редактировать list_header: Пользователи groups: Группы