<%inherit file="base.html"/> <%def name="head()"> <%def name="body()">
充值卡管理
% if permit.match('/card/export'): % endif % if permit.match('/card/create'): 充值卡生成 % endif
% for card in page_data.result: % endfor
类型 批次 卡号 面值/售价 时间(月) 时长(小时) 流量(MB) 过期 状态 创建时间 操作
${card_types[card.card_type]} ${card.batch_no} ${card.card_number} ${fen2yuan(card.fee_value)} ${card.months or 'N/A'} ${card.times and sec2hour(card.times) or 'N/A'} ${card.flows and kb2mb(card.flows) or 'N/A'} ${card.expire_date} ${card_states[card.card_status]} ${card.create_time[:10]} % if permit.match('/card/active') and card.card_status == 0: 激活 % endif % if permit.match('/card/recycle') and card.card_status == 0: 回收 % endif
${page_data.render(form_id="query_form")}