<commit_before>-content_for :header do
  %h5.highlighted
    =link_to 'CONTROLS', flow_controls_path
    %span.divider /
    =@control.slug
  %h1.location=@<EMAIL>

.row
  .span8
    =render :partial => 'controls/show',
            :layout => 'layouts/widget_box',
            :locals => { :control => @control }
<commit_msg>Add 'Edit Control' button to Control page<commit_after>-content_for :header do
  %h5.highlighted
    =link_to 'CONTROLS', flow_controls_path
    %span.divider /
    =@control.slug
  %h1.location=@<EMAIL>

-content_for :subheader_extras do
  .btn-group.fltrt
    %a.btn.btn-warning{ :'data-toggle' => 'modal-form', :href => '#edit-control-modal' }
      Edit Control

.row
  .span8
    =render :partial => 'controls/show',
            :layout => 'layouts/widget_box',
            :locals => { :control => @control }

#edit-control-modal.modal.fade
  =form_for @control, :url => flow_control_path(@control), :method => :put, :remote => true, :html => {:class => :form} do |f|
    .modal-header
      %button.close{"data-dismiss" => "modal"} x
      %h1 Edit control
    .modal-body
      =render :partial => 'controls/form',
              :locals  => { :f => f }
    .modal-footer
      =f.submit pat(:save)
      =f.submit pat(:cancel), :type => 'reset'

{'fraction_non_alphanumeric': 0.1674491392801252, 'fraction_numerical': 0.005477308294209703, 'mean_word_length': 2.817910447761194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '4412200', 'n_tokens_mistral': 453, 'n_tokens_neox': 445, 'n_words': 92}