<% content_for :side_bar do %>
  <%= render :partial => 'admin/users_new_interface/side_bar' %>
<% end %>
<% content_for :page_specific_css do %>
  <%= stylesheet_link_tag "lib/member" %>
  <%= stylesheet_link_tag "lib/checkbox-card" %>
<% end %>

<% content_for :right_nav do %>  
  <div class="view-switch btn-group pull-right" data-toggle="buttons-radio">
    <%= link_to content_tag(:i, nil, class: 'icon-list'), edit_order_list_admin_users_new_interface_index_path, class: "btn btn-small#{' active' if @type.eql?('list')}" %>
    <%= link_to content_tag(:i, nil, class: 'icon-th'), edit_order_card_admin_users_new_interface_index_path, class: "btn btn-small#{' active' if @type.eql?('card')}" %>
  </div>
<% end %>

<div id="order_content">
  <% case @type %>
  <% when 'card' %>
    <%= render 'edit_order_card' %>
  <% when 'list' %>
    <%= render 'edit_order_list' %>
  <% end %>
</div>

<% content_for :page_specific_javascript do %>
  <%= javascript_include_tag "jquery.ui.sortable" %>
  <%= javascript_include_tag "lib/jquery.ui.touch-punch.min.js" %>
  <%= javascript_include_tag "lib/jquery.lite.image.resize.js" %>
  <%= javascript_include_tag "lib/member/sort.js.erb" %>
<% end %>