fix teacher distributions page
This commit is contained in:
parent
d5783eb99d
commit
eac7a77ff7
|
|
@ -15,6 +15,12 @@ ActiveAdmin.register JamRuby::TeacherDistribution, :as => 'TeacherDistributions'
|
|||
filter :teacher_full_name_or_teacher_email_cont, label: 'Name', as: :string
|
||||
|
||||
index do
|
||||
column "Actions" do |distribution|
|
||||
links = ''.html_safe
|
||||
links << link_to("View", resource_path(distribution), :class => "member_link view_link")
|
||||
links << link_to("Edit", edit_resource_path(distribution), :class => "member_link edit_link")
|
||||
links
|
||||
end
|
||||
column "Teacher" do |distribution|
|
||||
link_to distribution.teacher.name, distribution.teacher.admin_url
|
||||
end
|
||||
|
|
@ -25,9 +31,6 @@ ActiveAdmin.register JamRuby::TeacherDistribution, :as => 'TeacherDistributions'
|
|||
column :reduced_roll_forward_amount_in_cents
|
||||
column :created_at
|
||||
column :updated_at
|
||||
column do
|
||||
link_to "Link", distribution.admin_url
|
||||
end
|
||||
end
|
||||
|
||||
show do
|
||||
|
|
@ -42,9 +45,6 @@ ActiveAdmin.register JamRuby::TeacherDistribution, :as => 'TeacherDistributions'
|
|||
row :reduced_roll_forward_amount_in_cents
|
||||
row :created_at
|
||||
row :updated_at
|
||||
row do
|
||||
link_to "Link", distribution.admin_url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue