equipment pass

This commit is contained in:
Andrew Brown 2014-03-13 17:56:46 +00:00
parent c29be33e90
commit 2c8a32ec64
4 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@
<td style="width: 160px;"><%= simple_format link_to equipment.name, equipment_path(equipment) %></td>
<td><%= simple_format equipment.equip_type %></td>
<td><%= simple_format equipment.description %></td>
<td style="width: 180px;">
<td style="width: 240px;">
<% if session[:user] and session[:user] == equipment.user.id %>
<%= link_to t('.view', :default => t("helpers.links.view")),
equipment_path(equipment), :class => 'btn' %>

View File

@ -1,5 +1,7 @@
<%- model_class = @equipment.class -%>
<div class="card">
<%= render :partial => 'tabs' %>
<%= render :partial => 'edit_form' %>
</div>
<%= render :partial => 'tabs' %>
<div class="card-body">
<%= render :partial => 'edit_form' %>
</div>
</div>

View File

@ -18,7 +18,6 @@
A legendary sword or decrepit family shield are capable of telling a story all on their own. Before including them in your literary masterpiece, you should flesh their history out and keep their stories straight.
</p>
<%= link_to 'New Equipment', equipment_create_path, :class => 'btn btn-primary' %>
<%= link_to 'New Weapon', equipment_create_type_path(:weapon), :class => 'btn' %>
<%= link_to 'New Armor', equipment_create_type_path(:armor), :class => 'btn' %>
</div>

View File

@ -2,6 +2,7 @@
<div class="card">
<%= render :partial => 'tabs' %>
<div class="card-body">
<dl class="dl-horizontal hidden section general_section">
<%= print_property("Name", @equipment.name, "") %>
@ -47,4 +48,6 @@
</div>
<% end %>
</div>
</div>