<commit_before>%div
  .main.panel.section
    .plainwrap
      %h2.title Konto Opsætning
    .body.group
      = error_messages_for :user
      - form_for :user, :url => user_path, :html => { :multipart => true, :method => :put, :id => 'edit_user_form' } do |f|
        .form-group.inline
          = f.label :name, "Brugernavn<em>*</em>", :class => 'required'
          = f.text_field :name, :class => "input-text"
        .form-group.inline
          = f.label :name, t("department") + "<em>*</em>", :class => 'required'
          = f.collection_select :department_id,Department.all,:id,:name, :class => "input-text"

        .form-group.inline
          = f.label :email, "Email<em>*</em>", :class => 'required'
          = f.text_field :email, :class => "input-text"

        .form-group.inline
          = f.label :password, t("<PASSWORD>")
          = f.password_field :password, :class => "input-text"

        .form-group.inline
          = f.label :password_confirmation, "<PASSWORD>"
          = f.password_field :password_confirmation, :class => "input-text"

        .form-group.inline
          = f.label :phone, t('phone')
          = f.text_field :phone, :class => "input-text"

        .form-group.inline.checkbox
          = f.check_box :notify_on_comments, :class => "input-checkbox" , :checked=>true
          = f.label :notify_on_comments, "Send en mail til mig, hvis andre skriver kommentarer"
        -# ------- STYLE NEEDED ------
        .form-group.inline
          %label Avatar
          =image_tag profile_picture(@user, :large),:class=>'profile_pic'
          = f.file_field :avatar , :size=>20
        -# ------- /STYLE NEEDED ------

        :javascript
          change_service_link = function(service, link) {
            var form = $('edit_user_form')
            form[(link ? 'link_' : 'unlink_') + service].value = 1
            form.submit()
          }

        - if TWITTER_ENABLED
          -# ------- STYLE NEEDED ------
          .form-group.inline.checkbox
            - if @user.linked_to_twitter?
              %p
                Linked to Twitter account:
                %b=h @user.twitter_handle
                - if @user.twitter_is_only_auth_method?
                  %p.note To unlink your Twitter account, first enter a password in the form above.
                - else
                  %br/
                  = link_to 'Unlink Twitter account', '#', :onclick => 'return change_service_link("twitter", false)'<commit_msg>fix user edit page<commit_after>%div
  .main.panel.section
    .plainwrap
      %h2.title Indstillinger for brugerkonto
    .body.group
      = error_messages_for :user
      - form_for :user, :url => user_path, :html => { :multipart => true, :method => :put, :id => 'edit_user_form' } do |f|
        .form-group.inline
          = f.label :name, "Brugernavn<em>*</em>", :class => 'required'
          = f.text_field :name, :class => "input-text"
        .form-group.inline
          = f.label :name, t("department") + "<em>*</em>", :class => 'required', :style => "margin-right:9px !important;"
          = f.collection_select :department_id,Department.all,:id,:name, :class => "input-text"

        .form-group.inline
          = f.label :email, "Email<em>*</em>", :class => 'required'
          = f.text_field :email, :class => "input-text"

        .form-group.inline
          = f.label :password, t("<PASSWORD>")
          = f.password_field :password, :class => "input-text"

        .form-group.inline
          = f.label :password_confirmation, "Bekræft adgangskode"
          = f.password_field :password_confirmation, :class => "input-text"

        .form-group.inline
          = f.label :phone, t('phone')
          = f.text_field :phone, :class => "input-text"

        .form-group.inline.checkbox
          = f.check_box :notify_on_comments, :class => "input-checkbox" , :checked=>true
          = f.label :notify_on_comments, "Send en mail til mig, hvis andre skriver kommentarer til mine ideer""
        -# ------- STYLE NEEDED ------
        .form-group.inline
          %label Billede
          =image_tag profile_picture(@user, :large),:class=>'profile_pic'
          = f.file_field :avatar , :size=>20
        -# ------- /STYLE NEEDED ------

        :javascript
          change_service_link = function(service, link) {
            var form = $('edit_user_form')
            form[(link ? 'link_' : 'unlink_') + service].value = 1
            form.submit()
          }

        - if TWITTER_ENABLED
          -# ------- STYLE NEEDED ------
          .form-group.inline.checkbox
            - if @user.linked_to_twitter?
              %p
                Linked to Twitter account:
                %b=h @user.twitter_handle
                - if @user.twitter_is_only_auth_method?
                  %p.note To unlink your Twitter account, first enter a password in the form above.
                - else
                  %br/
                  = link_to 'Unlink Twitter account', '#', :onclick => 'return change_service_link("twitter", false)'
{'fraction_non_alphanumeric': 0.15187611673615248, 'fraction_numerical': 0.001786777843954735, 'mean_word_length': 1.9087759815242493, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 57, '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': '901496', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1530, 'n_words': 330}