<commit_before><% provide(:title, 'Agregar alumno') %>
<h1>Agregar alumno</h1>

<div class="row">
  <div class="span6 offset3">
    <%= form_for(@alumno) do |f| %>
      <%= render 'shared/alumno_error_messages' %>

      <%= f.label :name %>
      <%= f.text_field :name %>

      <%= f.label :last_name %>
      <%= f.text_field :last_name %>

      <%= f.label :card_company %>
      <%= f.select :card_company_id, current_user.card_companies.map{|cc| [cc.description,cc.id]} %>

      <%= f.label :card_type %>
      <%= f.text_field :card_type %>

      <%= f.label :card_number %>
      <%= f.text_field :card_number %>

      <%= f.label :identifier %>
      <%= f.text_field :identifier %>

      <%= f.submit "Crear alumno", class: "btn btn-large btn-primary" %>
    <% end %>
  </div>
</div><commit_msg>set card_type with dropdown select<commit_after><% provide(:title, 'Agregar alumno') %>
<h1>Agregar alumno</h1>

<div class="row">
  <div class="span6 offset3">
    <%= form_for(@alumno) do |f| %>
      <%= render 'shared/alumno_error_messages' %>

      <%= f.label :name %>
      <%= f.text_field :name %>

      <%= f.label :last_name %>
      <%= f.text_field :last_name %>

      <%= f.label :card_company %>
      <%= f.select :card_company_id, current_user.card_companies.map{|cc| [cc.description,cc.id]} %>

      <%= f.label :card_type %>
      <%= f.select :card_type, ['debito', 'credito'] %>

      <%= f.label :card_number %>
      <%= f.text_field :card_number %>

      <%= f.label :identifier %>
      <%= f.text_field :identifier %>

      <%= f.submit "Crear alumno", class: "btn btn-large btn-primary" %>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.20408163265306123, 'fraction_numerical': 0.004801920768307323, 'mean_word_length': 2.885780885780886, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4867084', 'n_tokens_mistral': 703, 'n_tokens_neox': 615, 'n_words': 109}