|
|
|
@ -15,56 +15,61 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="with75 fl pl20">
|
|
|
|
|
<div class="edu-back-white">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="padding10-20">
|
|
|
|
|
<p class="mb20"><span class="mr30 color-grey-9">添加时间</span><span class="color-grey-6"><%= format_time @current_partner.try(:created_at) %></span></p>
|
|
|
|
|
<div class="clearfix">
|
|
|
|
|
<span class="mr45 color-grey-9 fl">管理员</span>
|
|
|
|
|
<ul class="manageList">
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to '+', add_partner_member_box_managements_path(:partner => 1), :remote => true, :class => "addManage" %>
|
|
|
|
|
</li>
|
|
|
|
|
<% if @current_partner.present? %>
|
|
|
|
|
<div class="with75 fl pl20">
|
|
|
|
|
<div class="edu-back-white">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="padding10-20">
|
|
|
|
|
<p class="mb20">
|
|
|
|
|
<span class="mr30 color-grey-9">添加时间</span><span class="color-grey-6"><%= format_time @current_partner.try(:created_at) %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="clearfix">
|
|
|
|
|
<span class="mr45 color-grey-9 fl">管理员</span>
|
|
|
|
|
<ul class="manageList">
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to '+', add_partner_member_box_managements_path(:partner => 1), :remote => true, :class => "addManage" %>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<% unless @current_partner.nil? %>
|
|
|
|
|
<% @current_partner.users.each_with_index do |user, index| %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= image_tag(url_to_avatar(user)) %>
|
|
|
|
|
<a href="javascript:void(0)" class="removeImg">
|
|
|
|
|
<i class="iconfont icon-htmal5icon19 color-grey-9"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% unless @current_partner.nil? %>
|
|
|
|
|
<% @current_partner.users.each_with_index do |user, index| %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= image_tag(url_to_avatar(user)) %>
|
|
|
|
|
<a href="javascript:void(0)" class="removeImg">
|
|
|
|
|
<i class="iconfont icon-htmal5icon19 color-grey-9"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tableList">
|
|
|
|
|
<li class="clearfix tableHead">
|
|
|
|
|
<span>序号</span>
|
|
|
|
|
<span>客户名称</span>
|
|
|
|
|
<span><a href="<%= customers_list_managements_path(:partner_id => @current_partner.try(:id)) %>"
|
|
|
|
|
data-remote="true" class="color-blue">+添加</a></span>
|
|
|
|
|
<span>添加时间</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% @current_partner.try(:customers).try(:each) do |customer| %>
|
|
|
|
|
<li>
|
|
|
|
|
<span><%= customer.school.id %></span>
|
|
|
|
|
<span class="task-hide"><%= customer.school.name %></span>
|
|
|
|
|
<span>
|
|
|
|
|
<div class="tableList">
|
|
|
|
|
<li class="clearfix tableHead">
|
|
|
|
|
<span>序号</span>
|
|
|
|
|
<span>客户名称</span>
|
|
|
|
|
<span><a href="<%= customers_list_managements_path(:partner_id => @current_partner.try(:id)) %>"
|
|
|
|
|
data-remote="true" class="color-blue">+添加</a></span>
|
|
|
|
|
<span>添加时间</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% @current_partner.try(:customers).try(:each) do |customer| %>
|
|
|
|
|
<li>
|
|
|
|
|
<span><%= customer.school.id %></span>
|
|
|
|
|
<span class="task-hide"><%= customer.school.name %></span>
|
|
|
|
|
<span>
|
|
|
|
|
<a href="javascript:void(0)" class="color-grey-9">删除</a>
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
<span>
|
|
|
|
|
2019-04-03 16:04
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|