app/views/educode_sales/staffs/edit.html.erb in educode_sales-1.0.4 vs app/views/educode_sales/staffs/edit.html.erb in educode_sales-1.0.5
- old
+ new
@@ -1,12 +1,20 @@
<%= Gon::Base.render_data %>
<div class="layuimini-main" style="height: 100%;">
<form class="layui-form " action="">
<h4>编辑人员</h4>
<div class="layui-form-item">
- <label class="layui-form-label required">姓名</label>
- <div class="layui-input-block" style="line-height: 36px;">
- <%= "#{@staff.user.real_name} - #{@staff.user.phone}" %>
+ <div class="layui-inline">
+ <label class="layui-form-label">用户名</label>
+ <div class="layui-input-inline" style="line-height: 38px;">
+ <%= "#{@staff.user.real_name} - #{@staff.user.phone}" %>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">姓名</label>
+ <div class="layui-input-inline">
+ <input type="text" name="name" class="layui-input" value="<%= @staff.name %>">
+ </div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">角色</label>
<div class="layui-input-block">
\ No newline at end of file