[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
= f.label :description, t("activerecord.attributes.group.description"), :class => :label
.rightlist
.rightlist.nomargin
= f.text_area :description
.both
%br
.leftlist
\ 
.rightlist

View File

@ -1,12 +1,19 @@
.block
.secondary-navigation
%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}
%h3.bpadding10= t("layout.groups.new_header")
= form_for @group, :url => groups_path do |f|
= render :partial => "form", :locals => {:f => f}
:javascript
$('article .all').addClass('bigpadding');
-#.block
-# .secondary-navigation
-# %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')