1 <% content_for :page_title do %>
2 <%= controller.controller_name.humanize.capitalize %>
5 <% content_for :tab_line_buttons do %>
7 <% if controller.model_class.creatable? %>
9 <% if controller.model_class.name == 'User' %>
10 <%= link_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", setup_user_popup_path,
11 {class: 'btn btn-primary pull-right', :remote => true, 'data-toggle' => "modal",
12 'data-target' => '#user-setup-modal-window', return_to: request.url} %>
13 <div id="user-setup-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
15 <%= button_to "Add a new #{controller.controller_name.singularize.humanize.downcase}",
17 { class: 'btn btn-primary pull-right' } %>
24 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.index_pane_list }%>