app/views/educode_sales/customers/edit.html.erb in educode_sales-0.6.2 vs app/views/educode_sales/customers/edit.html.erb in educode_sales-0.6.3
- old
+ new
@@ -1,34 +1,33 @@
<form class="layui-form layuimini-form " action="">
<div class="layui-form-item" style="padding: 25px">
<div class="layui-inline">
- <label class="layui-form-label required">学校:</label>
- <div class="layui-input-block">
- <input type="text" name="name" required lay-verify="required" value="<%=@school.name %>" placeholder="请输入学校" autocomplete="off"
+ <label class="layui-form-label required">客户:</label>
+ <div class="layui-input-block" style="width: 500px;">
+ <input type="text" name="name" required lay-verify="required" value="<%=@school.name %>" placeholder="请输入客户" autocomplete="off"
class="layui-input" id="inputFocus">
</div>
</div>
<br>
<div class="layui-inline">
<label class="layui-form-label required">省:</label>
<div class="layui-input-block">
- <input type="text" name="province" lay-verify="required" value="<%=@school.province %>" autocomplete="off"
- class="layui-input" placeholder="请输入地址" >
+ <%= select_tag "province", options_for_select(EducodeSales::Common.where(clazz: 'area').pluck(:name),@school.province), { include_blank: true } %>
</div>
</div>
<br>
<div class="layui-inline">
<label class="layui-form-label ">市:</label>
<div class="layui-input-block">
<input type="text" name="city" value="<%=@school.city %>" autocomplete="off"
- class="layui-input" placeholder="请输入地址" >
+ class="layui-input" placeholder="请输入地址" style="width: 223px">
</div>
</div>
<br>
<div class="layui-inline">
<label class="layui-form-label ">地址:</label>
- <div class="layui-input-block">
+ <div class="layui-input-block" style="width: 500px;">
<input type="text" name="address" value="<%=@school.address %>" autocomplete="off"
class="layui-input" placeholder="请输入地址" >
</div>
</div>
<div class="layui-form-item">
@@ -49,10 +48,10 @@
<div class="layui-form-item">
<div class="layui-input-block">
<input type="checkbox" name="enterprise" lay-skin="primary" value="1" <%= 'checked' if @school_property&.enterprise %> title="企业">
</div>
</div>
- <div class="layui-inline" style="padding-left: 30px">
+ <div class="layui-inline" style="padding-left: 120px">
<button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="data-reset-btn">提交
</button>
</div>
</div>
</form>
\ No newline at end of file