diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/tournaments/_form.html.erb | 8 | ||||
-rw-r--r-- | app/views/users/_form.html.erb | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index 353ec77..c478ce6 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -61,13 +61,13 @@ </tr> <tr> <th>Players per Team: </th> - <td><%= f.text_field(:min_players_per_team, type: :number, min: 1) %></td> - <td><%= f.text_field(:max_players_per_team, type: :number, min: 1) %></td> + <td><%= f.number_field(:min_players_per_team, min: 1) %></td> + <td><%= f.number_field(:max_players_per_team, min: 1) %></td> </tr> <tr> <th>Teams per Match: </th> - <td><%= f.text_field(:min_teams_per_match, type: :number, min: 1) %></td> - <td><%= f.text_field(:max_teams_per_match, type: :number, min: 1) %></td> + <td><%= f.number_field(:min_teams_per_match, min: 1) %></td> + <td><%= f.number_field(:max_teams_per_match, min: 1) %></td> </tr> </tbody> </table> diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index 69b1606..e4e49f4 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -31,7 +31,7 @@ <div class="field"> <%= f.label :email %><br> - <%= f.text_field(:email, type: "email") %> + <%= f.email_field(:email) %> </div> <div class="field"> |