<% phc_title "Command Item Manager" %> <% phc_title_tagline "Command Item Index" %> <% phc_breadcrumb_one link_to "Command List Index", phcdevworks_tutorials.command_posts_path %> <% phc_breadcrumb_two "Command Items" %>

<%= yield(:phc_title) %>

<% @command_items.each do |command_item| %> <% end %>
Item Name Description
<%= command_item.command_item_title %> <%= truncate(command_item.command_item_text, :length => 80, :escape => false) %>
<%= link_to "Update Item", edit_command_post_item_path(command_item.post, command_item), class: "btn btn-primary btn-xs" %> <%= link_to "Remove Item", command_post_item_path(command_item.post, command_item), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
<%= link_to phcdevworks_tutorials.new_command_post_item_path, class: "btn btn-primary btn-sm" do %> Add a New Item to Command List <% end %>