2024-06-06 13:18:10 +00:00
|
|
|
<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">
|
2024-06-07 15:53:32 +00:00
|
|
|
<div id="<%= dom_id(character_sheet_section) %>_stats" class="stats">
|
|
|
|
<%= render character_sheet_section.stats %>
|
|
|
|
</div>
|
2024-06-12 16:51:57 +00:00
|
|
|
<div id="<%= dom_id(character_sheet_section) %>_counters" class="counters">
|
|
|
|
<%= render character_sheet_section.counters %>
|
|
|
|
</div>
|
2024-06-06 13:18:10 +00:00
|
|
|
<div id="<%= dom_id(character_sheet_section) %>_sections">
|
|
|
|
<%= render character_sheet_section.character_sheet_subsections %>
|
|
|
|
</div>
|
2024-06-10 17:02:09 +00:00
|
|
|
<% if @editable %>
|
|
|
|
<div id="<%= dom_id(character_sheet_section) %>_add_section">
|
|
|
|
<%= render partial: "edit_links",
|
|
|
|
locals: { section: character_sheet_section, parent: character_sheet_section, id: nil } %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2024-06-06 13:18:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|