/
index.html.haml
61 lines (54 loc) · 1.41 KB
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
= show_msg
%h1 我报名的课程
#search
= link_to "当前课程", orders_path("s" => "active")
|
= link_to "已完成的课程", orders_path("s" => "finish")
|
= link_to "取消的课程", orders_path("s" => "cancel")
|
= link_to "全部课程", orders_path("s" => "all")
#orders
课程订单数:
%b #{@orders.size}
%table
%thead
%tr
%th
课程订单号
%th
报名日期
%th
课程
%th
价格
%th
备注
%th
状态
%th
付款时间
%th
原因
%th/
%tbody
- @orders.each do |order|
%tr(class="#{cycle('even', 'odd')}")
%td
#order_code(id="#{order.id}")= order.order_code
%td= order.created_at
%td
#order_title(id="#{order.id}")
= link_to order.campaign.course.course_name, order.campaign.course
%br/
= link_to order.campaign.name, order.campaign
%td
#order_amount(id="#{order.id}")
¥#{format("%.2f", order.total_amount)}
%td= order.comment
%td= human_status('order', order.status)
%td= order.paid_time
%td= order.reason
%td
= render 'order_operations', :order => order
= render "confirm_dialog"