app/views/educode_sales/activities/index.html.erb in educode_sales-0.3.7 vs app/views/educode_sales/activities/index.html.erb in educode_sales-0.3.8
- old
+ new
@@ -4,12 +4,13 @@
<% if can? :create, EducodeSales::Activity %>
<button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn pull-right" lay-event="add"> 添加活动</button>
<% end %>
</div>
</script>
-
+<div class="min-height-table">
<table class="layui-hide" id="activities_table" lay-filter="activities_table"></table>
+</div>
<script type="text/html" id="currentTableBar">
<% if can? :update, EducodeSales::Activity %>
<a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
<% end %>
@@ -46,39 +47,40 @@
width: 60
},
{
field: 'name',
title: '活动名称',
- width: 300,
+ width: 400,
templet: '#teachers'
},
{
field: 'start_at',
- width: 200,
+ width: 120,
title: '时间',
sort: true,
},
{
field: 'days',
title: '天数',
- width: 200
+ width: 100
},
{
field: 'teachers_count',
title: '教师数',
- width: 200,
+ width: 100,
templet: '#teachers_count'
},
{
field: 'students_count',
title: '学生数',
- width: 200
+ width: 100
},
{
- title: '操作',
- width: 120,
- toolbar: '#currentTableBar',
- align: "center"
+ title: '操作',
+ width: 120,
+ fixed: 'right',
+ toolbar: '#currentTableBar',
+ align: "center"
}
]
],
limit: 20,
page: true
\ No newline at end of file