<commit_before><%= render partial:'shared/rejected_reasons', locals: {question: @pq} %>

<div class="deadline_input">
  <label for="pq_internal_deadline">
    <%= render partial: 'shared/deadline_time', locals: {internal_deadline: @pq.internal_deadline} %>
    Internal deadline
  </label>
  <div class='input-group date datetimepicker' id='datetimepicker1' data-date-format="DD/MM/YYYY HH:mm">
    <input id="pq_internal_deadline" class="form-control" name="pq[internal_deadline]" type="text" value="<%= @pq.internal_deadline.strftime('%d/%m/%Y %H:%M') unless @pq.internal_deadline.nil? %>">
    <span class="input-group-addon glyphicon glyphicon-calendar"></span>
  </div>
</div>

<hr/>

<div class="question-allocation">
  <% if @pq.action_officers.size > 0 %>
      <% @pq.action_officers_pq.each do |ao_pq| %>
          <% if ao_pq.accept %>
              <h5>Name of Action Officer</h5>
              <p><%= ao_pq.action_officer.name %> <%= link_to 'Edit Action Officer', edit_action_officer_path(ao_pq.action_officer), {class: 'btn'} %></p>

              <h5>Email of Action Officer</h5>
              <p><%= mail_to ao_pq.action_officer.email %></p>

              <h5>Phone of Action Officer</h5>
              <p><%= ao_pq.action_officer.phone %></p>

              <h5>Division of Action Officer</h5>
              <p><%= ao_pq.action_officer.deputy_director.division.name %></p>

              <h5>Directorate of Action Officer</h5>
              <p><%= ao_pq.action_officer.deputy_director.division.directorate.name %></p>

              <h5>Deputy director</h5>
              <p><%= ao_pq.action_officer.deputy_director.name %></p>

              <h5>Press Desk</h5>
              <p><%= ao_pq.action_officer.press_desk.name %></p>
              <% ao_pq.action_officer.press_desk.press_officers.each do |po| %>
                  <p><%= mail_to po.name, po.email %></p>
              <% end %>

              <p>
                <% reminder_draft_count =  ao_pq.reminder_draft > 0 ? " (#{ao_pq.reminder_draft})" : '' %>
                <%= link_to raw("<i class=\"glyphicon glyphicon-envelope\"></i> Re-send acceptance email#{reminder_draft_count}"), {controller: 'action_officer_reminder', action: 'send_draft', id: ao_pq.id, remote: true}, {class: 'ao-reminder-link', title: 'Send a reminder email to do the draft'} %>
              </p><commit_msg>PT#76032530 clickable AO on details page<commit_after><%= render partial:'shared/rejected_reasons', locals: {question: @pq} %>

<div class="deadline_input">
  <label for="pq_internal_deadline">
    <%= render partial: 'shared/deadline_time', locals: {internal_deadline: @pq.internal_deadline} %>
    Internal deadline
  </label>
  <div class='input-group date datetimepicker' id='datetimepicker1' data-date-format="DD/MM/YYYY HH:mm">
    <input id="pq_internal_deadline" class="form-control" name="pq[internal_deadline]" type="text" value="<%= @pq.internal_deadline.strftime('%d/%m/%Y %H:%M') unless @pq.internal_deadline.nil? %>">
    <span class="input-group-addon glyphicon glyphicon-calendar"></span>
  </div>
</div>

<hr/>

<div class="question-allocation">
  <% if @pq.action_officers.size > 0 %>
      <% @pq.action_officers_pq.each do |ao_pq| %>
          <% if ao_pq.accept %>
              <h5>Name of Action Officer</h5>
              <p><%= link_to ao_pq.action_officer.name, edit_action_officer_path(ao_pq.action_officer) %></p>

              <h5>Email of Action Officer</h5>
              <p><%= mail_to ao_pq.action_officer.email %></p>

              <h5>Phone of Action Officer</h5>
              <p><%= ao_pq.action_officer.phone %></p>

              <h5>Division of Action Officer</h5>
              <p><%= ao_pq.action_officer.deputy_director.division.name %></p>

              <h5>Directorate of Action Officer</h5>
              <p><%= ao_pq.action_officer.deputy_director.division.directorate.name %></p>

              <h5>Deputy director</h5>
              <p><%= ao_pq.action_officer.deputy_director.name %></p>

              <h5>Press Desk</h5>
              <p><%= ao_pq.action_officer.press_desk.name %></p>
              <% ao_pq.action_officer.press_desk.press_officers.each do |po| %>
                  <p><%= mail_to po.name, po.email %></p>
              <% end %>

              <p>
                <% reminder_draft_count =  ao_pq.reminder_draft > 0 ? " (#{ao_pq.reminder_draft})" : '' %>
                <%= link_to raw("<i class=\"glyphicon glyphicon-envelope\"></i> Re-send acceptance email#{reminder_draft_count}"), {controller: 'action_officer_reminder', action: 'send_draft', id: ao_pq.id, remote: true}, {class: 'ao-reminder-link', title: 'Send a reminder email to do the draft'} %>
              </p>
{'fraction_non_alphanumeric': 0.16758591429783623, 'fraction_numerical': 0.008909630886720407, 'mean_word_length': 2.8615888615888614, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 134, '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': '4018024', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1583, 'n_words': 293}