changing admin disign for users finish

This commit is contained in:
Alexander Randa 2011-11-18 23:55:13 +03:00
parent f950d7881c
commit 22be0785bd
3 changed files with 54 additions and 39 deletions

View file

@ -1,4 +1,4 @@
= render 'form' = render 'form'
= link_to 'Show', [:admin, @admin_user], :class => "right lbutton"
= link_to 'Back', admin_users_path, :class => "right lbutton" = link_to 'Back', admin_users_path, :class => "right lbutton"
= link_to 'Show', [:admin, @admin_user], :class => "right lbutton"

View file

@ -18,8 +18,5 @@
%td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}" %td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}"
%td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete %td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete
%br
= paginate @admin_users = paginate @admin_users
= link_to 'New User', new_admin_user_path, :class => "lbutton"
= link_to 'New User', new_admin_user_path

View file

@ -1,40 +1,58 @@
- unless notice.nil? - unless notice.nil?
%p#notice= notice %p#notice= notice
#infoblock %h2= @admin_user.name
%p
%b Name: %table.round-borders
= @admin_user.name %tr
%p %td
%b Email: %b
Email:
%td
= @admin_user.email = @admin_user.email
%p %tr
%b Admin: %td
= @admin_user.admin %b
%p Admin:
%b Projects limit: %td= check_box_tag "admin", 1, @admin_user.admin, :disabled => :disabled
%tr
%td
%b
Projects limit:
%td
= @admin_user.projects_limit = @admin_user.projects_limit
- unless @admin_user.skype.empty?
%p %tr
%b Skype: %td
%b
Skype:
%td
= @admin_user.skype = @admin_user.skype
%p - unless @admin_user.linkedin.empty?
%b LinkedIn: %tr
%td
%b
Linkedin:
%td
= @admin_user.linkedin = @admin_user.linkedin
%p - unless @admin_user.twitter.empty?
%b Twitter: %tr
%td
%b
Twitter:
%td
= @admin_user.twitter = @admin_user.twitter
%tr
.clear %td{:colspan => 2}
= link_to 'Edit', edit_admin_user_path(@admin_user) = link_to 'Edit', edit_admin_user_path(@admin_user), :class => "lbutton"
\| = link_to 'Back', admin_users_path, :class => "right lbutton"
= link_to 'Back', admin_users_path
.span-14 .span-14
%h2 Projects %h2 Projects
%table.round-borders %table.round-borders
%tr %tr
%thead
%th Name %th Name
%th Added %th Added
%th Web %th Web
@ -53,4 +71,4 @@
%td= link_to 'Edit', edit_admin_team_member_path(tm) %td= link_to 'Edit', edit_admin_team_member_path(tm)
%td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete %td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete
= link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}) = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "lbutton"