<commit_before><h1>Edit basic details of request</h1>

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

   <p><label for="info_request_title">Title</label> (warning: editing this will break URLs right now)<br/>
   <%= text_field 'info_request', 'title', :size => 50  %></p>

   <p><label for="info_request_prominence">Prominence</label> (whether is shown in lists of requests or not)<br/>
   <%= select( 'info_request', "prominence", { "normal" => "normal", "backpage" => "backpage"}) %>

   <p><label for="info_request_awaiting_description">Awaiting description</label><br/>
   <%= select('info_request', "awaiting_description", [["Yes",true],["No",false]]) %>
   </p>

   <p><label for="info_request_stop_new_responses">Stop new responses</label> (use this on requests getting spam, but also work out how the email leaked and plug it)<br/>
   <%= select('info_request', "stop_new_responses", [["Yes",true],["No",false]]) %>
   </p>

   <p><label for="info_request_described_state">Described state</label><br/>
   <%= select( 'info_request', "described_state",
       [ 
        'waiting_response',
        'waiting_clarification', 
        'not_held',
        'rejected', 
        'successful', 
        'partially_successful',
        'requires_admin',
    ]) %>
    </p>

   <p><%= submit_tag 'Save changes' %>
   </p>

  <p><strong>Note:</strong> To edit the actual request body text, click edit
  next to the specific outgoing message.
  </p>

<% end %>

<hr>

<% form_tag '../fully_destroy/' + @info_request.id.to_s do %>
    <p>
    <strong>This is permanent and irreversible!</strong> <%= submit_tag 'Destory request entirely' %>
    <br>Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.
    </p>

<% end %>

<hr>

<p>
<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>
</p>
<commit_msg>Some tweaks to edit page.<commit_after><h1>Edit basic details of request</h1>

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

   <p><label for="info_request_title">Title</label> (warning: editing this will break URLs right now)<br/>
   <%= text_field 'info_request', 'title', :size => 50  %></p>

   <p><label for="info_request_prominence">Prominence</label> (whether is shown in lists of requests / search or not)<br/>
   <%= select( 'info_request', "prominence", { "normal" => "normal", "backpage" => "backpage"}) %>

   <p><label for="info_request_stop_new_responses">Stop new responses</label> (use this on requests getting spam, but also work out how the email leaked and plug it)<br/>
   <%= select('info_request', "stop_new_responses", [["Yes - stop new responses",true],["No - allow new responses",false]]) %>
   </p>

   <p><label for="info_request_described_state">Described state</label> (don't forget to change 'awaiting description' below too if necessary)<br/>
   <%= select( 'info_request', "described_state",
       [ 
        'waiting_response',
        'waiting_clarification', 
        'not_held',
        'rejected', 
        'successful', 
        'partially_successful',
        'requires_admin',
    ]) %>
    </p>

   <p><label for="info_request_awaiting_description">Awaiting description</label><br/>
   <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %>
   </p>

   <p><%= submit_tag 'Save changes' %>
   </p>

  <p><strong>Note:</strong> To edit the actual request body text, click edit
  next to the specific outgoing message.
  </p>

<% end %>

<p>
<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>
</p>

<hr>

<% form_tag '../fully_destroy/' + @info_request.id.to_s do %>
    <p>
    <strong>This is permanent and irreversible!</strong> <%= submit_tag 'Destory request entirely' %>
    <br>Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.
    </p>

<% end %>

<hr>
{'fraction_non_alphanumeric': 0.17516308287025853, 'fraction_numerical': 0.0019328340178787146, 'mean_word_length': 3.859154929577465, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 119, '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': '4534158', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1335, 'n_words': 357}