dev_local
daiao 6 years ago
parent d02fec75db
commit 10ee52c22c

@ -1,4 +1,5 @@
class Customer < ActiveRecord::Base class Customer < ActiveRecord::Base
default_scope :order => 'created_at desc'
belongs_to :partner belongs_to :partner
has_one :school has_one :school
has_many :users has_many :users

@ -5,9 +5,9 @@
data-remote="true" class="color-blue">+添加</a></span> data-remote="true" class="color-blue">+添加</a></span>
<span>添加时间</span> <span>添加时间</span>
</li> </li>
<% @current_partner.try(:customers).try(:each) do |customer| %> <% @current_partner.try(:customers).try(:each_with_index) do |customer, index| %>
<li> <li>
<span><%= customer.school.id %></span> <span><%= index + 1 %></span>
<span class="task-hide"><%= customer.school.name %></span> <span class="task-hide"><%= customer.school.name %></span>
<span> <span>
<a href="javascript:void(0)" onclick="delete_confirm_box_2('<%= delete_customers_managements_path(customer: customer.id) %>', <a href="javascript:void(0)" onclick="delete_confirm_box_2('<%= delete_customers_managements_path(customer: customer.id) %>',

Loading…
Cancel
Save