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>
17 <%= button_to({action: 'create'}, {class: 'btn btn-sm btn-primary'}) do %>
18 <i class="fa fa-fw fa-plus"></i>
20 <%= controller.controller_name.singularize.humanize.downcase %>
28 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.index_pane_list }%>