diff options
Diffstat (limited to 'app/views/admin/participants/list.html.haml')
-rw-r--r-- | app/views/admin/participants/list.html.haml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/admin/participants/list.html.haml b/app/views/admin/participants/list.html.haml index 0d426ce..0bf37db 100644 --- a/app/views/admin/participants/list.html.haml +++ b/app/views/admin/participants/list.html.haml @@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License along with ECS. If not, see <http://www.gnu.org/licenses/>. - + %h1.box1 Listing Participants (#{@list_participants_count.to_s}) @@ -34,7 +34,7 @@ %th.box2 Description (optional): %th.box2 Self-<br/>routing: %th.box2 Events: - %th.box2(align="center") Operations: + %th.box2(align="center")= "Links, Actions(#{link_to_actions_toggle_on_off(@list_anonymous, @action_buttons)})" %tr - @participants.group_by(&:organization_id).sort{|x,y| Organization.find(x[0]).abrev.downcase <=> Organization.find(y[0]).abrev.downcase}.each do |orgid,participants| @@ -46,12 +46,19 @@ - else %td= Organization.find(orgid).abrev %td.center= participant.id - %td= participant.name + %td= h participant.name %td= truncate(participant.description, :length => 80) %td.center= check_box_tag "participant[community_selfrouting]",1,participant.community_selfrouting, :disabled => true %td.center= check_box_tag "participant[events_]",1,participant.events_, :disabled => true %td - = link_to 'Show', admin_participant_path(:id => participant) - = link_to 'Edit', edit_admin_participant_path(:id => participant) - = link_to 'Destroy', admin_participant_path(:id => participant),:confirm => 'Are you sure?', :method => :delete + %table + %tr + %td + = link_to 'Show', admin_participant_path(:id => participant) + = link_to 'Edit', edit_admin_participant_path(:id => participant) + + %td + = button_to_reset(participant, @list_anonymous, @action_buttons) + %td + = button_to_delete(participant, @list_anonymous, @action_buttons) - org_printed= true |