<commit_before>- if @project_masterdata.errors.present?
  .alert.alert-error
    = render_errors(@project_masterdata.errors)

- if @project_masterdata

  -# because of disabling the select boxes  on start we need to send the hidden input fields instead
  = f.input :revenue_relevance, :as => :hidden, :input_html => { :value => @project_masterdata.revenue_relevance }
  = f.input :cost_object_type, :as  => :hidden, :input_html => { :value => @project_masterdata.cost_object_type }

  - co_inheritable = @inheritance.co_inheritable == true

  %label.control-label Cost Info
  .loading-place.loading-right
  .panel.panel-default
    .panel-body
      .row
        .col-md-3
          - if co_inheritable
            - co_inheritable = 0
          = f.input :cost_object_inherited, 
              label: "Inherited from domain",
              as: :select, 
              include_hidden: false, 
              include_blank: false, 
              required:false,
              disabled: co_inheritable
        .col-md-3
          - types = MasterdataCockpit::Config.cost_object_types
          = f.input :cost_object_type, 
              label: "Type",
              as:           :select, 
              collection:   types.keys, 
              label_method: -> (k) { types[k] },
              required: true
        .col-md-6
          = f.input :cost_object_name, 
              label: "Name/Number",
              required:true
      .row
        .col-md-12.op-help-block
          = icon ('info-circle')
          Please contact your responsible
          = link_to  "Infrastructure Coordinator", "https://jam4.sapjam.com/blogs/show/tMu79H0QHEA3vNMGSkanxa", target: '_blank'
          for the correct Cost Object infromation.
  %label.control-label Contact
  .panel.panel-default
    .panel-body
      .row
        .col-md-6.operator-id
          = f.input :responsible_primary_contact_id, 
            label: "Primary Contact", 
            placeholder: "C/D/I User",
            required: true, 
            input_html: { class: 'operator-id-input', value: f.object.responsible_primary_contact_id || current_user.name }
        .col-md-6.operator-email
          = f.input :responsible_primary_contact_email, 
            placeholder: "Email", 
            input_html: { class: 'operator-email-input',  value: f.object.responsible_primary_contact_email || current_user.email }
      .row
        .col-md-12.op-help-block
          = icon ('info-circle')
          = t('masterdata_cockpit.responsible_primary_contact_help') 
      .row{style: "margin-top:10px"}
        .col-md-12
          = f.input :additional_information,
            label: "Hotline/Ticket Queue/Other",
            as: :text,
            placeholder: "Please provide contact channels where we can reach you in case of technical questions and incidents\nPhone Hotline:\nTicket Queue:\nTicket Categories:\nDistribution Lists:\n\nSLA with your costumer (if applicable):",
            input_html: {:rows => 7, :maxlength => 5000},
            hint: raw("#{icon ('info-circle')} #{t('masterdata_cockpit.additional_information')} <span style='width:170px' class='pull-right' id='additional_information_length'></span>") 
  %label.control-label Significance
  .panel.panel-default
    .panel-body
      .row
        .col-md-4
          - business_criticalitys = MasterdataCockpit::Config.business_criticalitys
          = f.input :business_criticality, 
            label: raw("Business Criticality #{render partial: '/masterdata_cockpit/application/help_icon', locals: { help_text: t('masterdata_cockpit.business_criticality_help') }}"),
            as: :select, 
            collection: business_criticalitys.keys,
            label_method: -> (k) { business_criticalitys[k] }
        .col-md-4
          - revenue_relevances = MasterdataCockpit::Config.revenue_relevances
          = f.input :revenue_relevance, 
            label: raw("Revenue Relevances #{render partial: '/masterdata_cockpit/application/help_icon', locals: { help_text: t('masterdata_cockpit.revenue_relevances_help') }}"),
            as: :select, <commit_msg>adjust placeholder help for additional information<commit_after>- if @project_masterdata.errors.present?
  .alert.alert-error
    = render_errors(@project_masterdata.errors)

- if @project_masterdata

  -# because of disabling the select boxes  on start we need to send the hidden input fields instead
  = f.input :revenue_relevance, :as => :hidden, :input_html => { :value => @project_masterdata.revenue_relevance }
  = f.input :cost_object_type, :as  => :hidden, :input_html => { :value => @project_masterdata.cost_object_type }

  - co_inheritable = @inheritance.co_inheritable == true

  %label.control-label Cost Info
  .loading-place.loading-right
  .panel.panel-default
    .panel-body
      .row
        .col-md-3
          - if co_inheritable
            - co_inheritable = 0
          = f.input :cost_object_inherited, 
              label: "Inherited from domain",
              as: :select, 
              include_hidden: false, 
              include_blank: false, 
              required:false,
              disabled: co_inheritable
        .col-md-3
          - types = MasterdataCockpit::Config.cost_object_types
          = f.input :cost_object_type, 
              label: "Type",
              as:           :select, 
              collection:   types.keys, 
              label_method: -> (k) { types[k] },
              required: true
        .col-md-6
          = f.input :cost_object_name, 
              label: "Name/Number",
              required:true
      .row
        .col-md-12.op-help-block
          = icon ('info-circle')
          Please contact your responsible
          = link_to  "Infrastructure Coordinator", "https://jam4.sapjam.com/blogs/show/tMu79H0QHEA3vNMGSkanxa", target: '_blank'
          for the correct Cost Object infromation.
  %label.control-label Contact
  .panel.panel-default
    .panel-body
      .row
        .col-md-6.operator-id
          = f.input :responsible_primary_contact_id, 
            label: "Primary Contact", 
            placeholder: "C/D/I User",
            required: true, 
            input_html: { class: 'operator-id-input', value: f.object.responsible_primary_contact_id || current_user.name }
        .col-md-6.operator-email
          = f.input :responsible_primary_contact_email, 
            placeholder: "Email", 
            input_html: { class: 'operator-email-input',  value: f.object.responsible_primary_contact_email || current_user.email }
      .row
        .col-md-12.op-help-block
          = icon ('info-circle')
          = t('masterdata_cockpit.responsible_primary_contact_help') 
      .row{style: "margin-top:10px"}
        .col-md-12
          = f.input :additional_information,
            label: "Hotline/Ticket Queue/Other",
            as: :text,
            placeholder: "Please provide contact channels and corresponding availabilty (e.g. 24x7 for hotline) where we can reach you in case of technical questions and incidents\n\nPhone Hotline:\nTicket Queue:\nTicket Categories:\nDistribution Lists:",
            input_html: {:rows => 7, :maxlength => 5000},
            hint: raw("#{icon ('info-circle')} #{t('masterdata_cockpit.additional_information')} <span style='width:170px' class='pull-right' id='additional_information_length'></span>") 
  %label.control-label Significance
  .panel.panel-default
    .panel-body
      .row
        .col-md-4
          - business_criticalitys = MasterdataCockpit::Config.business_criticalitys
          = f.input :business_criticality, 
            label: raw("Business Criticality #{render partial: '/masterdata_cockpit/application/help_icon', locals: { help_text: t('masterdata_cockpit.business_criticality_help') }}"),
            as: :select, 
            collection: business_criticalitys.keys,
            label_method: -> (k) { business_criticalitys[k] }
        .col-md-4
          - revenue_relevances = MasterdataCockpit::Config.revenue_relevances
          = f.input :revenue_relevance, 
            label: raw("Revenue Relevances #{render partial: '/masterdata_cockpit/application/help_icon', locals: { help_text: t('masterdata_cockpit.revenue_relevances_help') }}"),
            as: :select, 
{'fraction_non_alphanumeric': 0.11170341652532105, 'fraction_numerical': 0.007390356190937727, 'mean_word_length': 2.373518594196976, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, 'https://': 2, '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': '3878712', 'n_tokens_mistral': 2519, 'n_tokens_neox': 2393, 'n_words': 485}