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 setup_user_popup_path,
11 {class: 'btn btn-sm btn-primary', :remote => true, 'data-toggle' => "modal",
12 'data-target' => '#user-setup-modal-window', return_to: request.url} do %>
13 <i class="fa fa-fw fa-plus"></i> Add a new user
15 <div id="user-setup-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
16 <% elsif controller.controller_name == 'manage_account' %>
17 <%# No add button is needed %>
19 <%= button_to({action: 'create'}, {class: 'btn btn-sm btn-primary'}) do %>
20 <i class="fa fa-fw fa-plus"></i>
22 <%= controller.controller_name.singularize.humanize.downcase %>
30 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.index_pane_list }%>