<commit_before>%h2= t('providers.registrations.edit.title')
%p.lead= t('providers.registrations.edit.lead')

= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, novalidate: true }) do |f|

  - if notification = f.error_notification
    .alert.alert-danger
      = notification

  %fieldset
    %legend
      = t('legends.login')
      %i.fa.fa-2x.fa-user.pull-right

    .form-inputs
      = f.input :login, required: true, autofocus: true, label: t('pages.sign_in.login')
      = f.input :password, required: false, autocomplete: 'off', hint: t('devise_views.leave_empty')
      = f.input :password_confirmation, required: false

  %fieldset
    %legend
      = t('legends.address')
      %i.fa.fa-2x.fa-home.pull-right

    .form-inputs
      = f.input :firstname, required: true
      = f.input :lastname, required: true
      = f.input :street, required: true
      = f.association :place, required: true, collection: current_region.places, include_blank: false
      = f.association :organization, as: :select, required: true

  %fieldset
    %legend
      = t('legends.contact')
      %i.fa.fa-2x.fa-phone.pull-right

    .form-inputs
      = f.input :email
      = f.input :phone

      = f.input :mobile
      = f.input :contact_preference, collection: provider_contact_preferences, include_blank: false
      = f.input :contact_availability

  .form-actions
    = f.input :current_password, required: true, hint: t('devise_views.need_password')
    = f.button :submit, t('providers.registrations.edit.action'), class: 'btn btn-primary'

%h3= t('providers.registrations.edit.cancel.title')
%p= t('providers.registrations.edit.cancel.lead')

%p= link_to t('providers.registrations.edit.cancel.action'), registration_path(resource_name), data: { confirm: t('common.sure') }, method: :delete
<commit_msg>Modified provider profile edit<commit_after>%h2= t('providers.registrations.edit.title')
%p.lead= t('providers.registrations.edit.lead')

= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, novalidate: true }) do |f|

  - if notification = f.error_notification
    .alert.alert-danger
      = notification

  %fieldset
    %legend
      = t('legends.login')
      %i.fa.fa-2x.fa-user.pull-right

    .form-inputs
      = f.input :email, required: true
      = f.input :password, required: false, autocomplete: 'off', hint: t('devise_views.leave_empty')
      = f.input :password_confirmation, required: false

  %fieldset
    %legend
      = t('legends.address')
      %i.fa.fa-2x.fa-home.pull-right

    .form-inputs
      = f.input :firstname, required: true
      = f.input :lastname, required: true
      = f.input :street, required: true
      = f.association :place, required: true, collection: current_region.places, include_blank: false
      = f.association :organization, as: :select, required: true

  %fieldset
    %legend
      = t('legends.contact')
      %i.fa.fa-2x.fa-phone.pull-right

    .form-inputs
      = f.input :phone
      = f.input :mobile
      = f.input :contact_preference, collection: provider_contact_preferences, include_blank: false
      = f.input :contact_availability

  .form-actions
    = f.input :current_password, required: true, hint: t('devise_views.need_password')
    = f.button :submit, t('providers.registrations.edit.action'), class: 'btn btn-primary'

%h3= t('providers.registrations.edit.cancel.title')
%p= t('providers.registrations.edit.cancel.lead')

%p= link_to t('providers.registrations.edit.cancel.action'), registration_path(resource_name), data: { confirm: t('common.sure') }, method: :delete

{'fraction_non_alphanumeric': 0.14130138851075416, 'fraction_numerical': 0.002722570106180234, 'mean_word_length': 3.5867665418227217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '127450', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1208, 'n_words': 241}