<!-- -PHCDev- PHCTitleSEO Title Variables --> <% phc_title "Category Manager" %> <% phc_title_tagline "Category Index" %> <% phc_breadcrumb_one yield(:phc_title_tagline) %> <% phc_breadcrumb_two link_to "Category Index", phcdevworks_core_modules.post_categories_path %> <!-- -PHCDev- PHCTitleSEO Title Variables --> <!-- -PHCDev- Page Bradcrumbs --> <ol class="breadcrumb float-xl-end"> <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li> <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li> </ol> <!-- -PHCDev- Page Bradcrumbs --> <!-- -PHCDev- Page Header --> <h1 class="page-header"><%= yield(:phc_title) %></h1> <!-- -PHCDev- Page Header --> <!-- -PHCDev- Panel --> <div class="panel panel-inverse"> <!-- -PHCDev- Panel - Heading --> <div class="panel-heading"> <h4 class="panel-title"><%= yield(:phc_title) %></h4> </div> <!-- -PHCDev- Panel - Heading --> <!-- -PHCDev- Panel - Body --> <div class="panel-body"> <!-- -PHCDev- Index - Table --> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th>Category</th> <th></th> </tr> </thead> <tbody> <% @post_categories.each do |post_category| %> <tr> <td><%= post_category.post_category_name %></td> <td> <div class="btn-group" role="group" aria-label="Index Actions"> <%= link_to "Category Details", post_category, class: "btn btn-purple btn-xs" %> <%= link_to "Update Category", edit_post_category_path(post_category), class: "btn btn-primary btn-xs" %> <%= link_to "Remove Category", post_category, method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %> </div> </td> </tr> <% end %> </tbody> </table> </div> <!-- -PHCDev- Index - Table --> <!-- -PHCDev- New Button --> <%= link_to phcdevworks_core_modules.new_post_category_path, class: "btn btn-primary btn-sm" do %> <i class="fad fa-plus-circle"></i> Add a New Category <% end %> <!-- -PHCDev- New Button --> </div> <!-- -PHCDev- Panel - Body --> </div> <!-- -PHCDev- Panel -->