summaryrefslogtreecommitdiff
path: root/app/views/games/ptu/pokemon/new.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-04-07 20:44:30 -0400
committerDavid Gay <david@davidgay.org>2021-04-07 20:44:30 -0400
commitf27be0dce605412440b6317cd568610f01079f32 (patch)
tree85d81e8e6325cf6ee4209ef87efa0aa5b337e62e /app/views/games/ptu/pokemon/new.html.erb
parente3bc8b4a01c1615bbe4cade564760cb97bcc2a25 (diff)
PTU pokemon controller and view basic setup
Diffstat (limited to 'app/views/games/ptu/pokemon/new.html.erb')
-rw-r--r--app/views/games/ptu/pokemon/new.html.erb29
1 files changed, 1 insertions, 28 deletions
diff --git a/app/views/games/ptu/pokemon/new.html.erb b/app/views/games/ptu/pokemon/new.html.erb
index 7ba0426..404bd47 100644
--- a/app/views/games/ptu/pokemon/new.html.erb
+++ b/app/views/games/ptu/pokemon/new.html.erb
@@ -1,30 +1,3 @@
<h1>New Pokemon</h1>
-<%= form_with model: @pokemon, url: games_ptu_pokemon_index_path do |f| %>
- <%= f.label :name %>
- <%= f.text_field :name, required: true %>
-
- <%= f.label :base_hp, "Base HP" %>
- <%= f.number_field :base_hp, min: 1, required: true %>
-
- <%= f.label :base_atk, "Base ATK" %>
- <%= f.number_field :base_atk, min: 1, required: true %>
-
- <%= f.label :base_def, "Base DEF" %>
- <%= f.number_field :base_def, min: 1, required: true %>
-
- <%= f.label :base_spatk, "Base SPATK" %>
- <%= f.number_field :base_spatk, min: 1, required: true %>
-
- <%= f.label :base_spdef, "Base SPDEF" %>
- <%= f.number_field :base_spdef, min: 1, required: true %>
-
- <%= f.label :base_speed, "Base SPEED" %>
- <%= f.number_field :base_speed, min: 1, required: true %>
-
- <%= f.label :male_chance, "Male Chance" %>
- <%= f.number_field :male_chance, min: 0, step: 0.01 %> %
-
- <%= f.submit "Save" %>
-
-<% end %>
+<%= render "form" %>