[refs #232] Add design to group new page

This commit is contained in:
konstantin.grabar 2012-03-01 17:19:58 +04:00
parent f4a50b509c
commit 71748ebddc
2 changed files with 27 additions and 11 deletions

View File

@ -1,8 +1,17 @@
- act = controller.action_name.to_sym
- if [:new, :create].include? act
.leftlist
= f.label :name, t("activerecord.attributes.group.name"), :class => :label
.rightlist.nomargin
= f.text_field :name
.both
%br
.leftlist .leftlist
= f.label :description, t("activerecord.attributes.group.description"), :class => :label = f.label :description, t("activerecord.attributes.group.description"), :class => :label
.rightlist .rightlist.nomargin
= f.text_area :description = f.text_area :description
.both .both
%br
.leftlist .leftlist
\  \ 
.rightlist .rightlist

View File

@ -1,12 +1,19 @@
.block %h3.bpadding10= t("layout.groups.new_header")
.secondary-navigation = form_for @group, :url => groups_path do |f|
%ul.wat-cf = render :partial => "form", :locals => {:f => f}
%li.first= link_to t("layout.groups.list"), groups_path
%li.active= link_to t("layout.groups.new"), new_group_path :javascript
.content $('article .all').addClass('bigpadding');
%h2.title= t("layout.groups.new_header")
.inner -#.block
= form_for @group, :url => groups_path, :html => { :class => :form } do |f| -# .secondary-navigation
= render :partial => "form", :locals => {:f => f} -# %ul.wat-cf
-# %li.first= link_to t("layout.groups.list"), groups_path
-# %li.active= link_to t("layout.groups.new"), new_group_path
-# .content
-# %h2.title= t("layout.groups.new_header")
-# .inner
-# = form_for @group, :url => groups_path, :html => { :class => :form } do |f|
-# = render :partial => "form", :locals => {:f => f}
-# content_for :sidebar, render('sidebar') -# content_for :sidebar, render('sidebar')