Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.23 KB | None | 0 0
  1. <h1>Crear Cuentas</h1>
  2.  
  3. <%= link_to 'Back', accounts_path %>
  4.  
  5. <%= form_with(url: createmultiple_accounts_path, method: :post, local: true) do |form| %>
  6.   <br>
  7.   <% if flash[:success] %>
  8.     <p><%= flash[:success] %></p>
  9.   <% end %>
  10.   <br>
  11.  
  12.   <div class="field">
  13.     <%= form.label :"Desde Cliente:" %>
  14.     <%= form.number_field :clientsince, :value => 1 %>
  15.   </div>
  16.  
  17.   <div class="field">
  18.     <%= form.label :clientuntil %>
  19.     <%= form.number_field :clientuntil, :value => 9999 %>
  20.   </div>
  21.  
  22.   <div class="field">
  23.     <%= form.label :gamesince %>
  24.     <%= form.number_field :gamesince, :value => 1 %>
  25.   </div>
  26.  
  27.   <div class="field">
  28.     <%= form.label :gameuntil %>
  29.     <%= form.number_field :gameuntil, :value => 999 %>
  30.   </div>
  31.  
  32.   <div class="field">
  33.     <%= form.label :datetime %>
  34.     <%= form.date_field :datetime, :value => Date.today %>
  35.   </div>
  36.  
  37.   <div class="field">
  38.     <%= form.label :vouchers %>
  39.     <div class="select is-fullwidth">
  40.       <%= form.collection_select :vouchers, Voucher.all, :id, :description, {:prompt => 'Seleccionar una juego'} %> <! al utilizar :prompt no se guarda la relacion por defecto >
  41.     </div>
  42.   </div>
  43.  
  44.   <div class="actions">
  45.     <%= form.submit %>
  46.   </div>
  47. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement