[refs #232] Add design to group new page
This commit is contained in:
parent
f4a50b509c
commit
71748ebddc
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
%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}
|
= 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')
|
-# content_for :sidebar, render('sidebar')
|
||||||
|
|
Loading…
Reference in New Issue