From c0df561a75b506ae1a0c3403a2ca6dae6bb0336f Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 4 Apr 2019 15:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E4=BD=9C=E4=BC=99=E4=BC=B4=E6=8A=A550?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/managements/partners.html.erb | 83 +++++++++++++------------ 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/app/views/managements/partners.html.erb b/app/views/managements/partners.html.erb index e53a20ee..86b241f8 100644 --- a/app/views/managements/partners.html.erb +++ b/app/views/managements/partners.html.erb @@ -15,56 +15,61 @@ <% end %> -
-
-
-
-

添加时间<%= format_time @current_partner.try(:created_at) %>

-
- 管理员 -
    -
  • - <%= link_to '+', add_partner_member_box_managements_path(:partner => 1), :remote => true, :class => "addManage" %> -
  • + <% if @current_partner.present? %> +
    +
    +
    +
    +

    + 添加时间<%= format_time @current_partner.try(:created_at) %> +

    +
    + 管理员 +
      +
    • + <%= link_to '+', add_partner_member_box_managements_path(:partner => 1), :remote => true, :class => "addManage" %> +
    • - <% unless @current_partner.nil? %> - <% @current_partner.users.each_with_index do |user, index| %> -
    • - <%= image_tag(url_to_avatar(user)) %> - - - -
    • + <% unless @current_partner.nil? %> + <% @current_partner.users.each_with_index do |user, index| %> +
    • + <%= image_tag(url_to_avatar(user)) %> + + + +
    • + <% end %> <% end %> - <% end %> -
    +
+
-
-
-
  • - 序号 - 客户名称 - +添加 - 添加时间 -
  • - <% @current_partner.try(:customers).try(:each) do |customer| %> -
  • - <%= customer.school.id %> - <%= customer.school.name %> - +
    +
  • + 序号 + 客户名称 + +添加 + 添加时间 +
  • + <% @current_partner.try(:customers).try(:each) do |customer| %> +
  • + <%= customer.school.id %> + <%= customer.school.name %> + 删除 - + 2019-04-03 16:04 -
  • - <% end %> + + <% end %> +
    - + <% end %> +