ref: master
plugins/orders/views/orders_plugin_admin/_edit.html.erb
<% actor_name ||= :supplier other_actor_name = if actor_name == :supplier then :consumer else :supplier end if other_actor_name.nil? %> <% content_for :order_header do %> <%= render 'orders_plugin_admin/header', order: order, other_actor_name: other_actor_name %> <% end %> <% content_for :order_footer do %> <% if other_actor_name == :consumer and order.open? %><%= check_box_tag 'warn_consumer', 1, false, onchange: "jQuery(this).parent().next().toggle(this.checked); jQuery(this).siblings('.subtitle').toggle(this.checked);" %> <%= label_tag 'warn_consumer', t('orders_plugin.views.admin._edit.warn_member_of_the_ch'), class: 'line-label' %><%= t('orders_plugin.views.admin._edit.the_collective_member') %><%= check_box_tag 'include_message', 1, false, onchange: "jQuery(this).parent().find('textarea').toggle(this.checked)" %> <%= label_tag 'include_message', t('orders_plugin.views.admin._edit.include_message'), class: 'line-label' %><%= javascript_tag do %> jQuery('#order-<%=order.id%> input[type=checkbox]').change(); <% end %> <% end %> <% end %> <%= render 'orders_plugin_order/show', order: order, actor_name: actor_name %><%= text_area_tag 'message' %>