<commit_before>-# Not all inputs are ng inputs, they don't make the form dirty on change.
-# ng-change is only valid for inputs, not for a form.
-# So we use onchange and have to get the scope to access the ng controller
-# The nav-check-callback is warning on leave if the form is dirty.
= form_for [main_app, :admin, @enterprise], html: { name: "enterprise",
  "ng-app" => 'admin.enterprises',
  "ng-submit" => "navClear()",
  "ng-controller" => 'enterpriseCtrl',
  "nav-check-callback" => 'enterpriseNavCallback',
  'onchange' => 'angular.element(enterprise).scope().enterprise.$setDirty()',
  } do |f|
  .row
    .sixteen.columns.alpha
      .four.columns.omega
        = render 'side_menu'
      .one.column &nbsp;
      .eleven.columns.alpha.fullwidth_inputs
        = render 'form', f: f
  .row
    .twelve.columns.alpha
      = render partial: "spree/admin/shared/#{action}_resource_links"<commit_msg>Rearrange columns for action buttons on enterprise form<commit_after>-# Not all inputs are ng inputs, they don't make the form dirty on change.
-# ng-change is only valid for inputs, not for a form.
-# So we use onchange and have to get the scope to access the ng controller
-# The nav-check-callback is warning on leave if the form is dirty.
= form_for [main_app, :admin, @enterprise], html: { name: "enterprise",
  "ng-app" => 'admin.enterprises',
  "ng-submit" => "navClear()",
  "ng-controller" => 'enterpriseCtrl',
  "nav-check-callback" => 'enterpriseNavCallback',
  'onchange' => 'angular.element(enterprise).scope().enterprise.$setDirty()',
  } do |f|
  .row
    .sixteen.columns.alpha
      .four.columns.alpha
        = render 'side_menu'
      .one.column &nbsp;
      .eleven.columns.omega.fullwidth_inputs
        = render 'form', f: f
  .row
    .five.columns.alpha
      &nbsp;
    .eleven.columns.alpha
      = render partial: "spree/admin/shared/#{action}_resource_links"
{'fraction_non_alphanumeric': 0.13758566157090144, 'fraction_numerical': 0.0, 'mean_word_length': 3.4037122969837585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2131873', 'n_tokens_mistral': 611, 'n_tokens_neox': 604, 'n_words': 182}