diff --git a/app/views/admin/account_activities/_search_form.html.erb b/app/views/admin/account_activities/_search_form.html.erb new file mode 100644 index 000000000..bf353a936 --- /dev/null +++ b/app/views/admin/account_activities/_search_form.html.erb @@ -0,0 +1,65 @@ +
+ <%= sort_link(@q, 'description') %> + | ++ <%= sort_link(@q, 'activity_type') %> + | ++ <%= sort_link(@q, 'created_at', AccountActivity.human_attribute_name(:created_at)) %> + | ++ <%= sort_link(@q, 'sum') %> + | +
---|---|---|---|
+ <%= x.description.present? ? x.description : '-' %> + | ++ <%= x.activity_type ? t(x.activity_type) : '' %> + | ++ <%= l(x.created_at) %> + | + <% c = x.sum > 0.0 ? 'text-success' : 'text-danger' %> + <% s = x.sum > 0.0 ? "+#{x.sum} #{x.currency}" : "#{x.sum} #{x.currency}" %> ++ <%= s %> + | +