mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
equipment pass
This commit is contained in:
parent
c29be33e90
commit
2c8a32ec64
@ -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' %>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user