From 356142aa8a1be3873bb7dc73555a8fa4b760eed8 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 7 Nov 2014 09:08:36 +0500 Subject: [PATCH] [#369] fix group form pages --- app/views/groups/profile/edit.html.slim | 4 +++- app/views/groups/profile/new.html.slim | 4 +++- config/locales/models/group.en.yml | 4 ---- config/locales/models/group.ru.yml | 6 ------ 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/app/views/groups/profile/edit.html.slim b/app/views/groups/profile/edit.html.slim index e7a836deb..d21589b1e 100644 --- a/app/views/groups/profile/edit.html.slim +++ b/app/views/groups/profile/edit.html.slim @@ -5,9 +5,11 @@ .container.col-md-offset-2.col-md-8 .row = simple_form_for @group, + html: { class: 'form-horizontal' }, url: profile_group_path(@group), wrapper: :horizontal_form, - wrapper_mappings: { boolean: :horizontal_boolean } do |f| + wrapper_mappings: { boolean: :horizontal_boolean, + file: :horizontal_file_input } do |f| = render 'form', f: f diff --git a/app/views/groups/profile/new.html.slim b/app/views/groups/profile/new.html.slim index 9c7d6564b..58878efc0 100644 --- a/app/views/groups/profile/new.html.slim +++ b/app/views/groups/profile/new.html.slim @@ -3,8 +3,10 @@ h3 = title t('layout.groups.new_header') = simple_form_for @group, + html: { class: 'form-horizontal' }, wrapper: :horizontal_form, - wrapper_mappings: { boolean: :horizontal_boolean } do |f| + wrapper_mappings: { boolean: :horizontal_boolean, + file: :horizontal_file_input } do |f| = render 'form', f: f diff --git a/config/locales/models/group.en.yml b/config/locales/models/group.en.yml index 27f2a0609..25ada7e9c 100644 --- a/config/locales/models/group.en.yml +++ b/config/locales/models/group.en.yml @@ -58,7 +58,3 @@ en: group: uname: Enter the name here. description: Enter the description here. - hints: - group: - description: Enter the description of group. - diff --git a/config/locales/models/group.ru.yml b/config/locales/models/group.ru.yml index 6a460915d..d2193e401 100644 --- a/config/locales/models/group.ru.yml +++ b/config/locales/models/group.ru.yml @@ -58,9 +58,3 @@ ru: group: uname: Введите название здесь. description: Введите описание здесь. - hints: - group: - uname: Введите название группы. - description: Введите описание группы. - -