From 9b2acceda7e36946f9bb15ff8d1a93f9c45a964f Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 19:26:00 -0400 Subject: Combat styles --- app/views/characters/show.html.erb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/views') diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index e7f9696..84e1ff5 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -11,6 +11,19 @@

Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).

+<% if @character == current_char %> +

Combat Styles

+ <%= form_with url: character_combat_styles_path(character_id: @character) do |f| %> + <%= f.label :offensive_style, "Offensive" %> + <%= f.select :offensive_style, Character.offensive_styles.keys.to_a, selected: @character.offensive_style %> + + <%= f.label :defensive_style, "Defensive" %> + <%= f.select :defensive_style, Character.defensive_styles.keys.to_a, selected: @character.defensive_style %> + + <%= f.submit "Set" %> + <% end %> +<% end %> +

Combat Statistics

-- cgit v1.2.3