forked from radar/rboard
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major design revamp. Look at those rounded corners, alternating table…
… rows... woah!
- Loading branch information
Showing
44 changed files
with
460 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
.breadcrumbs | ||
= link_to t(:Administration_Section), admin_root_path | ||
\» #{link_to(t(:Categories), admin_categories_path)} » #{t(:Editing_a_category)}: #{@category.name} | ||
%span » #{link_to(t(:Categories), admin_categories_path)} » #{t(:Editing, :thing => @category.name)} | ||
= error_messages_for :category | ||
- form_for [:admin, @category] do |f| | ||
%table.action-box{:cellpadding => "2", :cellspacing => "0", :width => "100%"} | ||
%thead | ||
%tr | ||
%td{:colspan => "2"} | ||
%h2 | ||
= t(:Editing_a_category) | ||
\: #{@category.name} | ||
= render :partial => "form", :locals => { :f => f } | ||
%tfoot | ||
%tr | ||
%td{:colspan => "2"}= f.submit t(:Update) | ||
%h2 | ||
= t(:Editing, :thing => @category.name) | ||
= render :partial => "form", :locals => { :f => f } | ||
= f.submit t(:Update) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
%table.action-box{:cellpadding => "2", :cellspacing => "0", :width => "100%"} | ||
%thead | ||
%tr | ||
%td{:colspan => "6"} | ||
%h2= t(:Editing_a_group) | ||
%tbody | ||
%tr | ||
%td{:colspan => "2"}= f.label :name, t(:Name) | ||
%td{:colspan => "4"}= f.text_field "name" | ||
%table.action-box{:cellpadding => "2", :cellspacing => "0", :width => "100%"} | ||
%p | ||
= f.label :name, t(:Name) | ||
%br | ||
= f.text_field "name" | ||
|
||
%table.listing{:cellpadding => "2", :cellspacing => "0", :width => "100%"} | ||
%thead | ||
%tr | ||
%td{:colspan => "10"} | ||
%h2= t(:Global_Permissions) | ||
%h3= t(:Global_Permissions) | ||
= render :partial => "admin/permissions/form" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
.breadcrumbs | ||
= link_to t(:Administration_Section), admin_root_path | ||
\» #{link_to(t(:Groups), admin_groups_path)} » #{t(:Editing_a_group)} | ||
%span » #{link_to(t(:Groups), admin_groups_path)} » #{t(:Editing_a_group)} | ||
= error_messages_for :group | ||
- form_for [:admin, @group] do |f| | ||
= render :partial => "form", :locals => { :f => f } | ||
%table.action-box{:cellpadding => "2", :cellspacing => "0", :width => "100%"} | ||
%tfoot | ||
%tr | ||
%td{:colspan => "6"} | ||
= submit_tag t(:Update) | ||
= submit_tag t(:Update) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
- if params[:type] == "category" | ||
%tr | ||
%td= f.label "category_id", t(:Category) | ||
%td{:colspan => "7"}= f.select "category_id", @categories.map { |c| [c.name, c.id] } | ||
%td{:class => stripe }= f.label "category_id", t(:Category) | ||
%td{:class => stripe, :colspan => "9"}= f.select "category_id", @categories.map { |c| [c.name, c.id] } | ||
- elsif params[:type] == "forum" | ||
%tr | ||
%td= f.label "forum_id", t(:Forum) | ||
%td{:colspan => "7"}= f.select "forum_id", @forums.map { |c| [c.title, c.id] } | ||
%td{:class => stripe }= f.label "forum_id", t(:Forum) | ||
%td{:class => stripe, :colspan => "9"}= f.select "forum_id", @forums.map { |c| [c.title, c.id] } | ||
- fields_for @permission do |permission| | ||
- ## Global only permissions | ||
- if params[:type] || @permission.new_record? | ||
- if !params[:type] | ||
%tr | ||
%td{:colspan => "10"} | ||
%h3 Section Access | ||
%td{:colspan => "10", :class => "header"} | ||
%h3= t(:Section_access) | ||
- sections.in_groups_of(5, false) do |sections| | ||
%tr | ||
- for section in sections | ||
%td{:width => "20px", :class => stripe }= permission.check_box "can_access_#{section}_section" | ||
%td{ :class => stripe }= permission.label "can_access_#{section}_section", t("can_access_#{section}_section?") | ||
- for management in managements[0..2] | ||
= render :partial => "admin/permissions/management", :locals => { :management => management, :permission => permission } | ||
- managements[2..-1].in_groups_of(5, false) do |managements| | ||
%tr | ||
- for management in managements | ||
= render :partial => "admin/permissions/management", :locals => { :management => management, :permission => permission } | ||
%tr | ||
- sections.each_with_index do |section, count| | ||
%td{:width => "20px"}= permission.check_box "can_access_#{section}_section" | ||
%td= permission.label "can_access_#{section}_section", t("can_access_#{section}_section?") | ||
= break_row(count) | ||
- managements.each_with_index do |management, count| | ||
%td{:width => "20px"}= permission.check_box "can_manage_#{management}" | ||
%td= permission.label "can_manage_#{management}", t("can_manage_#{management}?") | ||
- ## Magic number "3" is because of 5 columns - the 2 sections = 3 | ||
= break_row(3) | ||
- 4.times do | ||
%td | ||
%tr | ||
%td{:colspan => "10"} | ||
%td{:colspan => "10", :class => "header"} | ||
%h3= t(:Systemwide_Permissions) | ||
- global_permissions.each_with_index do |action, count| | ||
%td{:width => "20px"}= permission.check_box action | ||
%td= permission.label action, t("#{action}?") | ||
%td{:width => "20px", :class => stripe }= permission.check_box action | ||
%td{ :class => stripe }= permission.label action, t("#{action}?") | ||
= break_row(count) | ||
- ## Global or local permissions | ||
%tr | ||
%td{:colspan => "10"} | ||
%td{:colspan => "10", :class => "header"} | ||
%h3= t(:Forum_Permissions) | ||
%tr | ||
- forum_permissions.each_with_index do |action, count| | ||
%td{:width => "20px"}= permission.check_box action | ||
%td= permission.label action, t("#{action}?") | ||
%td{ :class => stripe, :width => "20px"}= permission.check_box action | ||
%td{ :class => stripe }= permission.label action, t("#{action}?") | ||
= break_row(count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.