Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Crear Cuentas</h1>
- <%= link_to 'Back', accounts_path %>
- <%= form_with(url: createmultiple_accounts_path, method: :post, local: true) do |form| %>
- <br>
- <% if flash[:success] %>
- <p><%= flash[:success] %></p>
- <% end %>
- <br>
- <div class="field">
- <%= form.label :"Desde Cliente:" %>
- <%= form.number_field :clientsince, :value => 1 %>
- </div>
- <div class="field">
- <%= form.label :clientuntil %>
- <%= form.number_field :clientuntil, :value => 9999 %>
- </div>
- <div class="field">
- <%= form.label :gamesince %>
- <%= form.number_field :gamesince, :value => 1 %>
- </div>
- <div class="field">
- <%= form.label :gameuntil %>
- <%= form.number_field :gameuntil, :value => 999 %>
- </div>
- <div class="field">
- <%= form.label :datetime %>
- <%= form.date_field :datetime, :value => Date.today %>
- </div>
- <div class="field">
- <%= form.label :vouchers %>
- <div class="select is-fullwidth">
- <%= form.collection_select :vouchers, Voucher.all, :id, :description, {:prompt => 'Seleccionar una juego'} %> <! al utilizar :prompt no se guarda la relacion por defecto >
- </div>
- </div>
- <div class="actions">
- <%= form.submit %>
- </div>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement