diff options
author | David Gay <david@davidgay.org> | 2021-06-15 19:54:29 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-15 20:00:06 -0400 |
commit | d2a31e04d19796a600a932a3491e056fe2c89af2 (patch) | |
tree | 36c43f03b12883c6dc4e2899e3c0ab1b8726b307 /app/views/characters | |
parent | 53c9df5feb8ad4ebef8f40840d29255a81edb6df (diff) |
Basic spellcasting
Diffstat (limited to 'app/views/characters')
-rw-r--r-- | app/views/characters/skills/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/characters/spells/index.html.erb | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app/views/characters/skills/index.html.erb b/app/views/characters/skills/index.html.erb index f79b06e..d804384 100644 --- a/app/views/characters/skills/index.html.erb +++ b/app/views/characters/skills/index.html.erb @@ -47,7 +47,7 @@ </div> <% end %> <% else %> - <div class="text-gray-500">No items to infix.</div> + <div class="text-gray-500">No omens to infix.</div> <% end %> <% end %> <% end %> diff --git a/app/views/characters/spells/index.html.erb b/app/views/characters/spells/index.html.erb new file mode 100644 index 0000000..5f415a3 --- /dev/null +++ b/app/views/characters/spells/index.html.erb @@ -0,0 +1,10 @@ +<h2 class="text-3xl mb-2">Spells</h2> +<div data-controller="activity-select"> + <%= form_with url: start_activity_path, method: :post do |f| %> + <%= f.select :id, @spell_activities.map { |a| [a.name, a.id] }, {}, + { data: { activity_select_target: "select", action: "activity-select#load" } } %> + <%= f.number_field :actions, value: 1, size: 5, min: 1, max: 2_000_000_000 %> + <%= f.submit "Cast" %> + <% end %> + <div data-activity-select-target="output" class="my-1"></div> +</div> |