tabletop-companion/app/views/character_sheet_sections/_character_sheet_section.ht...

18 lines
729 B
Plaintext
Raw Normal View History

<div
class="<%= class_names("character-sheet-section", { "top-level": character_sheet_section.parent_section.nil? }) %>"
id="<%= dom_id(character_sheet_section) %>">
<h4><%= character_sheet_section.name %></h4>
<div class="content">
<div id="<%= dom_id(character_sheet_section) %>_features" class="stats">
<%= render character_sheet_section.character_sheet_features.order(:order_index) %>
</div>
2024-06-10 17:02:09 +00:00
<% if @editable %>
<div id="<%= dom_id(character_sheet_section) %>_add_section">
2024-06-17 16:12:19 +00:00
<%= render partial: "character_sheet_sections/edit_links",
2024-06-10 17:02:09 +00:00
locals: { section: character_sheet_section, parent: character_sheet_section, id: nil } %>
</div>
<% end %>
</div>
</div>