<commit_before>:css
  #header{ display: none; }
  #menu{ display: none; }
  #main_wrap{ background: none !important; }
  #cont{
    background: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
  }

.row-fluid
  .lonely.span6.offset3
    .inset
      %header
        %h2 Registro

      .pad
        = simple_form_for @registration do |f|
          = f.input :name, label: 'Empresa', input_html: {class: 'span12'}
          = f.input :tenant, label: 'Subdominio',
            hint: "<i class='icon-warning-sign' title='El subdominio no se podra modificar en un futuro' rel='tooltip'></i> No es posible modificar después</span>".html_safe,
            input_html: {class: 'span12'}
          = f.input :email, :label => "Correo Electrónico", input_html: {class: 'span12'}
          = f.input :password, :label => 'Contraseña', input_html: {class: 'span12'}
          = f.input :password_confirmation, :label => 'Confirmat contraseña', input_html: {class: 'span12'}
          .center
            = f.submit "Registrarse", :class => 'btn btn-success btn-large'

:coffeescript
  (($) ->
    setTenant = (val) ->
      tenant = $('#registration_tenant').val()
      if tenant == ''
        val = val.toLowerCase().replace(/[^a-z0-9]/g, '')
        $('#registration_tenant').val(val)
        tenant = val

      if tenant != ''
        $('#registration_tenant').siblings('.help-block').html("Su dominio se vera <strong>" + tenant + ".bonsaierp.com</strong><br/><i class='icon-warning-sign' title='El subdominio no se podra modificar en un futuro' rel='tooltip'></i> No es posible modificar después</span>")

    $('#registration_name').blur(-> setTenant(this.value) )
    $('#registration_tenant').on('change keyup', -> setTenant('') )
    setTenant('')
  )(jQuery)<commit_msg>Improved visualization for subdomain in registration<commit_after>:css
  #header{ display: none; }
  #menu{ display: none; }
  #main_wrap{ background: none !important; }
  #cont{
    background: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
  }

.row-fluid
  .lonely.span6.offset3
    .inset
      %header
        %h2 Registro

      .pad
        = simple_form_for @registration do |f|
          = f.input :name, label: 'Empresa', input_html: {class: 'span12'}
          = f.input :tenant, label: 'Subdominio',
            hint: "<i class='icon-warning-sign' ></i> No es posible modificar en un futuro</span>".html_safe,
            input_html: {class: 'span12'} do
            .input-prepend.input-append
              %span.add-on bonsaierp.
              = f.text_field :tenant, size: 28
              %span.add-on .com
          = f.input :email, :label => "Correo Electrónico", input_html: {class: 'span12'}
          = f.input :password, :label => 'Contraseña', input_html: {class: 'span12'}
          = f.input :password_confirmation, :label => 'Confirmat contraseña', input_html: {class: 'span12'}
          .center
            = f.submit "Registrarse", :class => 'btn btn-success btn-large'

:coffeescript
  $( ->
    $(document).on('keyup', '#registration_name', ->
      # TODO: Improve the copyname
      name = $(this).val().toLowerCase().replace(/[^a-z]/g, '')
      $('#registration_tenant').val(name)
    )
   )
{'fraction_non_alphanumeric': 0.16503667481662593, 'fraction_numerical': 0.009168704156479218, 'mean_word_length': 2.7108843537414966, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 29, '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': '914440', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1087, 'n_words': 247}