-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
78 additions
and
49 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
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,24 +1,31 @@ | ||
= form_tag bulk_update_record_categories_path(:destination => request.fullpath) do | ||
- if managing? | ||
- if managing? | ||
= form_tag bulk_update_record_categories_path(:destination => request.fullpath) do | ||
= submit_tag I18n.t('app.general.save'), :class => 'btn' | ||
%table | ||
%thead | ||
%tr | ||
- if managing? | ||
%th{:width => 50} Actions | ||
%th Name | ||
- unless mobile? | ||
%th Type | ||
%tbody | ||
- list.each do |c| | ||
%table | ||
%thead | ||
%tr | ||
%td= action_list(c) | ||
%td | ||
= link_to c.name, c | ||
- if c.list? | ||
» | ||
- if !mobile? and managing? | ||
%th{:width => 50} Actions | ||
%th Name | ||
- unless mobile? | ||
%th Type | ||
%tbody | ||
- list.each do |c| | ||
%tr | ||
%td= action_list(c) | ||
%td | ||
- %w{list activity record}.each do |type| | ||
= radio_button_tag "category_type[#{c.id}]", type, c.category_type == type | ||
= label_tag "category_type[#{c.id}][#{type}]", type.humanize, :class => 'inline' | ||
= link_to c.name, c | ||
- if c.list? | ||
» | ||
- unless mobile? | ||
%td | ||
- %w{list activity record}.each do |type| | ||
= radio_button_tag "category_type[#{c.id}]", type, c.category_type == type | ||
= label_tag "category_type[#{c.id}][#{type}]", type.humanize, :class => 'inline' | ||
- else | ||
.clearfix | ||
%ul | ||
- list.each do |c| | ||
%li | ||
= link_to c.name, c | ||
- if c.list? | ||
» |
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,5 +1,6 @@ | ||
= setup_page 'categories', nil, 'time/nav' | ||
|
||
= link_to 'New record category', new_record_category_path | ||
- if managing? | ||
= link_to 'New record category', new_record_category_path | ||
|
||
= render 'list', :list => @record_categories |
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