Commit f950d7881c1a8607b47fd4c3e8b75db1bc6c4805
1 parent
5488f173
Exists in
master
and in
4 other branches
changing admin disign for projects finish
Showing
3 changed files
with
45 additions
and
33 deletions
Show diff stats
app/views/admin/projects/edit.html.haml
| 1 | = render 'form' | 1 | = render 'form' |
| 2 | 2 | ||
| 3 | -= link_to 'Show', [:admin, @admin_project] | ||
| 4 | -\| | ||
| 5 | -= link_to 'Back', admin_projects_path | 3 | += link_to 'Back', admin_projects_path, :class => "right lbutton" |
| 4 | += link_to 'Show', [:admin, @admin_project], :class => "right lbutton" | ||
| 6 | \ No newline at end of file | 5 | \ No newline at end of file |
app/views/admin/projects/index.html.haml
| @@ -20,7 +20,5 @@ | @@ -20,7 +20,5 @@ | ||
| 20 | %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}" | 20 | %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}" |
| 21 | %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete | 21 | %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete |
| 22 | 22 | ||
| 23 | -%br | ||
| 24 | - | ||
| 25 | = paginate @admin_projects | 23 | = paginate @admin_projects |
| 26 | -= link_to 'New Project', new_admin_project_path | 24 | += link_to 'New Project', new_admin_project_path, :class => "lbutton" |
app/views/admin/projects/show.html.haml
| 1 | - unless notice.nil? | 1 | - unless notice.nil? |
| 2 | %p#notice= notice | 2 | %p#notice= notice |
| 3 | 3 | ||
| 4 | -#infoblock | ||
| 5 | - %h2= @admin_project.name | ||
| 6 | - | ||
| 7 | - %p | ||
| 8 | - %b Name: | ||
| 9 | - = @admin_project.name | ||
| 10 | - %p | ||
| 11 | - %b Code: | ||
| 12 | - = @admin_project.code | ||
| 13 | - %p | ||
| 14 | - %b Path: | ||
| 15 | - = @admin_project.path | ||
| 16 | - %p | ||
| 17 | - %b Description: | ||
| 18 | - = @admin_project.description | ||
| 19 | - | ||
| 20 | - = link_to 'Edit', edit_admin_project_path(@admin_project) | ||
| 21 | - \| | ||
| 22 | - = link_to 'Back', admin_projects_path | 4 | + |
| 5 | +%h2= @admin_project.name | ||
| 6 | + | ||
| 7 | +%table.round-borders | ||
| 8 | + %tr | ||
| 9 | + %td | ||
| 10 | + %b | ||
| 11 | + Name: | ||
| 12 | + %td | ||
| 13 | + = @admin_project.name | ||
| 14 | + %tr | ||
| 15 | + %td | ||
| 16 | + %b | ||
| 17 | + Code: | ||
| 18 | + %td | ||
| 19 | + = @admin_project.code | ||
| 20 | + %tr | ||
| 21 | + %td | ||
| 22 | + %b | ||
| 23 | + Path: | ||
| 24 | + %td | ||
| 25 | + = @admin_project.path | ||
| 26 | + %tr | ||
| 27 | + %td | ||
| 28 | + %b | ||
| 29 | + Description: | ||
| 30 | + %td | ||
| 31 | + = @admin_project.description | ||
| 32 | + %tr | ||
| 33 | + %td{:colspan => 2} | ||
| 34 | + = link_to 'Edit', edit_admin_project_path(@admin_project), :class => "lbutton" | ||
| 35 | + = link_to 'Back', admin_projects_path, :class => "right lbutton" | ||
| 36 | + | ||
| 23 | 37 | ||
| 24 | .span-14 | 38 | .span-14 |
| 25 | 39 | ||
| 26 | %h2 Team | 40 | %h2 Team |
| 27 | 41 | ||
| 28 | %table.round-borders | 42 | %table.round-borders |
| 29 | - %tr | ||
| 30 | - %th Name | ||
| 31 | - %th Added | ||
| 32 | - %th Web | ||
| 33 | - %th Git | ||
| 34 | - %th Admin | ||
| 35 | - %th | 43 | + %thead |
| 44 | + %tr | ||
| 45 | + %th Name | ||
| 46 | + %th Added | ||
| 47 | + %th Web | ||
| 48 | + %th Git | ||
| 49 | + %th Admin | ||
| 50 | + %th | ||
| 36 | 51 | ||
| 37 | - @admin_project.users_projects.each do |tm| | 52 | - @admin_project.users_projects.each do |tm| |
| 38 | %tr | 53 | %tr |
| @@ -43,4 +58,4 @@ | @@ -43,4 +58,4 @@ | ||
| 43 | %td.span-2= check_box_tag "admin", 1, @admin_project.admins.include?(tm.user), :disabled => :disabled | 58 | %td.span-2= check_box_tag "admin", 1, @admin_project.admins.include?(tm.user), :disabled => :disabled |
| 44 | %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete | 59 | %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete |
| 45 | 60 | ||
| 46 | - = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}) | 61 | + = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}), :class => "lbutton" |