<commit_before><% self.extend CustomFormsPlugin::Helper %>

<h1><%= _('Manage forms') %></h1>
<table class="action-table">
  <tr>
    <th style='width: 40%'><%= _('Name') %></th>
    <th style='width: 30%'><%= _('Period') %></th>
    <th style='width: 10%'><%= _('Submissions') %></th>
    <th style='width: 10%'><%= _('Access') %></th>
    <th style='width: 10%'><%= _('Actions') %></th>
  </tr>
  <% @forms.each do |form| %>
    <tr>
      <td><%= link_to form.name, {:controller => 'custom_forms_plugin_profile', :action => 'show', :id => form.id} %></td>
      <td><%= period_range(form) %></td>
      <td><%= form.submissions.count > 0 ? link_to(form.submissions.count, {:action => 'submissions', :id => form.id}) : 0 %></td>
      <td><%= access_text(form) %></td>
      <td class="actions">
        <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => form.id %>
        <%= button_without_text :remove, _('Remove'), {:action => 'remove', :id => form.id}, :confirm => _('Are you sure you want to remove this form?') %>
        <%= button_without_text :search, _('Pending'), :action => 'pending', :id => form.id if form.for_admission %>
      </td>
    </tr>
  <% end %>
  <tr id="new-item">
    <td colspan='5'>
      <%= button(:add, _('Add a new form'), :action => 'new')%>
   </td>
  </tr>
</table>
<commit_msg>Changes button order so remove button is last<commit_after><% self.extend CustomFormsPlugin::Helper %>

<h1><%= _('Manage forms') %></h1>
<table class="action-table">
  <tr>
    <th style='width: 40%'><%= _('Name') %></th>
    <th style='width: 30%'><%= _('Period') %></th>
    <th style='width: 10%'><%= _('Submissions') %></th>
    <th style='width: 10%'><%= _('Access') %></th>
    <th style='width: 10%'><%= _('Actions') %></th>
  </tr>
  <% @forms.each do |form| %>
    <tr>
      <td><%= link_to form.name, {:controller => 'custom_forms_plugin_profile', :action => 'show', :id => form.id} %></td>
      <td><%= period_range(form) %></td>
      <td><%= form.submissions.count > 0 ? link_to(form.submissions.count, {:action => 'submissions', :id => form.id}) : 0 %></td>
      <td><%= access_text(form) %></td>
      <td class="actions">
        <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => form.id %>
        <%= button_without_text :search, _('Pending'), :action => 'pending', :id => form.id if form.for_admission %>
        <%= button_without_text :remove, _('Remove'), {:action => 'remove', :id => form.id}, :confirm => _('Are you sure you want to remove this form?') %>
      </td>
    </tr>
  <% end %>
  <tr id="new-item">
    <td colspan='5'>
      <%= button(:add, _('Add a new form'), :action => 'new')%>
   </td>
  </tr>
</table>

{'fraction_non_alphanumeric': 0.26479289940828404, 'fraction_numerical': 0.011094674556213017, 'mean_word_length': 3.5847457627118646, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 129, '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': '3141858', 'n_tokens_mistral': 1068, 'n_tokens_neox': 985, 'n_words': 243}