app/views/phcpress/modules/categories/index.html.erb in phcpress-5.3.9 vs app/views/phcpress/modules/categories/index.html.erb in phcpress-6.0.0
- old
+ new
@@ -1,38 +1,59 @@
-<!-- Main Content -->
-<div class="wrapper wrapper-content">
- <div class="panel panel-primary">
+<!-- Title System -->
+<% phc_title "PHCPress - Categories Manager" %>
+<% phc_title_tagline "Categories Index" %>
+<!-- Title System -->
- <div class="panel-heading">
- <i class="fa fa-list-ul"></i> Category List
- </div>
+<!-- Page Title Bar -->
+<section class="content-header">
- <div class="panel-body">
+ <!-- Page Title and BreadCrumb -->
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
+ <ol class="breadcrumb">
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
+ </ol>
+ <!-- Page Title and BreadCrumb -->
- <table class="table table-bordered table-striped table-hover">
- <thead>
- <tr>
- <th>Category Name</th>
- <th></th>
- </tr>
- </thead>
+</section>
+<!-- Page Title Bar -->
- <tbody>
- <% @modules_categories.each do |modules_category| %>
- <tr>
- <td><%= modules_category.catname %></td>
- <td><div class="btn-group" role="group" aria-label="Blog Articles">
- <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
- <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
- </div>
- </td>
- </tr>
- <% end %>
- </tbody>
- </table>
+<!-- Main Content -->
+<section class="content">
+ <div class="row">
+ <div class="col-lg-12">
- <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
+ <div class="box">
+ <div class="box-header with-border">
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
+ </div>
+ <div class="box-body">
+ <table class="table table-bordered table-striped table-hover">
+ <thead>
+ <tr>
+ <th>Category Name</th>
+ <th></th>
+ </tr>
+ </thead>
- </div>
+ <tbody>
+ <% @modules_categories.each do |modules_category| %>
+ <tr>
+ <td><%= modules_category.catname %></td>
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
+ <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
+ <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
+ </div>
+ </td>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+ </div>
+ <div class="box-footer clearfix">
+ <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
+ </div>
+ </div>
+ </div>
</div>
-</div>
+</section>
+<!-- Main Content -->