<commit_before><div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkout')) -%></h1>
<div id="content_list">

  <%= render 'manifestations/title', :manifestation => @checkout.item.manifestation if @checkout.item -%>

<h3><%= t('checkout.renewal') -%></h3>
<%- if @checkout.checkout_renewable? -%>
  <%= form_for(@checkout) do |f| -%>
    <%= t('checkout.new_due_date') -%>: <%= l(@renew_due_date, :format => :only_date) if @renew_due_date -%>
    <%= f.hidden_field :due_date, :value => @renew_due_date -%>
    <br />
    <%= f.submit %>
  <%- end -%>
<%- else -%>
  <div class="field"><%= t('checkout.this_item_cant_be_renewed') -%></div>
<%- end -%>

<% if current_user.has_role?('Librarian') %>
  <h3><%= t('checkout.editing_due_date') -%></h3>

  <%= form_for(@checkout) do |f| -%>
    <%= f.error_messages -%>

    <div class="field">
      <%= f.label :due_date -%>
      <%= f.hidden_field :user_id -%>
      <%= f.hidden_field :item_id -%>
      <%= f.text_field :due_date, :value => @checkout.due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
    </div>
    <div class="field">
      <%= t('checkout.renewal_count') -%>: <%= f.text_field :checkout_renewal_count, :class => 'resource_integer' -%>
    </div>

    <div class="actions">
      <%= f.submit %>
    </div>
  <%- end -%>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @checkout.item.manifestation if @checkout.item -%>
  <ul>
    <li><%= link_to t('page.show'), @checkout) -%></li>
    <li><%= link_to t('page.back'), user_checkouts_path(@checkout.user) -%></li>
  </ul>
</div>
<commit_msg>fixed template<commit_after><div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.checkout')) -%></h1>
<div id="content_list">

  <%= render 'manifestations/title', :manifestation => @checkout.item.manifestation if @checkout.item -%>

<h3><%= t('checkout.renewal') -%></h3>
<%- if @checkout.checkout_renewable? -%>
  <%= form_for(@checkout) do |f| -%>
    <%= t('checkout.new_due_date') -%>: <%= l(@renew_due_date, :format => :only_date) if @renew_due_date -%>
    <%= f.hidden_field :due_date, :value => @renew_due_date -%>
    <br />
    <%= f.submit %>
  <%- end -%>
<%- else -%>
  <div class="field"><%= t('checkout.this_item_cant_be_renewed') -%></div>
<%- end -%>

<% if current_user.has_role?('Librarian') %>
  <h3><%= t('checkout.editing_due_date') -%></h3>

  <%= form_for(@checkout) do |f| -%>
    <%= f.error_messages -%>

    <div class="field">
      <%= f.label :due_date -%>
      <%= f.hidden_field :user_id -%>
      <%= f.hidden_field :item_id -%>
      <%= f.text_field :due_date, :value => @checkout.due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
    </div>
    <div class="field">
      <%= t('checkout.renewal_count') -%>: <%= f.text_field :checkout_renewal_count, :class => 'resource_integer' -%>
    </div>

    <div class="actions">
      <%= f.submit %>
    </div>
  <%- end -%>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @checkout.item.manifestation if @checkout.item -%>
  <ul>
    <li><%= link_to t('page.show'), @checkout -%></li>
    <li><%= link_to t('page.back'), user_checkouts_path(@checkout.user) -%></li>
  </ul>
</div>

{'fraction_non_alphanumeric': 0.2550618672665917, 'fraction_numerical': 0.007874015748031496, 'mean_word_length': 3.832880434782609, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 133, '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': '1987108', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1426, 'n_words': 221}