tabletop-companion/app/views/stats/edit.html.erb

20 lines
764 B
Plaintext
Raw Normal View History

2024-06-27 13:03:56 +00:00
<%= turbo_frame_tag :modal do %>
<div class="feature-box ">
<%= icon_link_to "fa-close", table_character_character_sheet_sections_path(@stat.character.table, @stat.character),
class: "icon-link" %>
<h2><%= @stat.name %></h2>
<%= form_with model: @stat, data: { controller: "auto-update" } do |f| %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :min_allowed, t(".min_allowed") %>
<%= f.number_field :min_allowed %>
<%= f.label :max_allowed, t(".max_allowed") %>
<%= f.number_field :max_allowed %>
<%= f.label :roll_command %>
<%= f.text_field :roll_command %>
<% end %>
<h4><%= t(".dice_roll_types") %></h4>
<p>TODO: Add additional roll types here</p>
</div>
<% end %>