<commit_before><% content_for :head do %>
  <% @title = "Preview the brick" %>
  <%= stylesheet_link_tag 'bricks' %>
<% end %>

<div id="sidebar" class="col col_rpad">
  <p><img src="/images/assets/buyabrick.jpg" alt="buy a brick" class="velement" /></p>
  <%= render :partial => 'progress', :locals => { :step => 3 } %>
  <div class="vblock">
    <h4 class="velement">Preview the brick</h4>
    <p>This is how the brick will be displayed on the Child's i Foundation wall.</p>
    <p>If you would like to make any changes click back in your browser.</p>
    <p><a href="javascript:history.back();">&larr; go back</a></p>
  </div>
</div>

<div id="content" class="col col_copy">
  <%= render(:partial => 'brick' ) %>
  
  <% unless admin? %>
    <div id="personal_details">
      <% form_for(@payment_notification) do |f| %>
        <%= f.hidden_field :status %>
        <%= f.hidden_field :brick_id %>
    
        <p><%= f.label :notes %><br />
        <% #FIXME: params should be set up as a hash... %>
        <%= f.text_field :params %>

        <%= submit_tag('Confirm brick') %>
      <% end %>
    </div>
  <% else %>
    <div id="personal_details" class="vblock" style="margin-top: 20px; padding-top: 20px;">
      <p>By clicking the button below you will be taken to a third party website (JustGiving) to make your secure donation. This site is 100% safe to provide your card details.</p>
      <a href="<%= justgiving_link(@brick) %>">Submit</a>
    
    <p style="margin-top: 20px;"><img src="/images/assets/giftaid.gif" alt="giftaid"></p>
    <p><strong>Increase the value of your 'Buy a brick' gift to us by 28%!</strong></p>
    <p>If you are a UK taxpayer, the value of your gift can be increased by 28% under the Gift Aid scheme at no extra cost to you!</p>
    <p><strong>Make sure you tick the 'Gift Aid' option when you reach the payment screen!</strong></p>
    
  
    </div>
    <div class="vblock">
      <p>Child's i Foundation (Registered Charity No. 1126212) wants to ensure that your donation is used most effectively and therefore your donation will be applied by the charity for its general charitable purposes.</p>
    </div>
  <% end %><commit_msg>only show brick editing form if the logged in user is an admin<commit_after><% content_for :head do %>
  <% @title = "Preview the brick" %>
  <%= stylesheet_link_tag 'bricks' %>
<% end %>

<div id="sidebar" class="col col_rpad">
  <p><img src="/images/assets/buyabrick.jpg" alt="buy a brick" class="velement" /></p>
  <%= render :partial => 'progress', :locals => { :step => 3 } %>
  <div class="vblock">
    <h4 class="velement">Preview the brick</h4>
    <p>This is how the brick will be displayed on the Child's i Foundation wall.</p>
    <p>If you would like to make any changes click back in your browser.</p>
    <p><a href="javascript:history.back();">&larr; go back</a></p>
  </div>
</div>

<div id="content" class="col col_copy">
  <%= render(:partial => 'brick' ) %>
  
  <% if admin? %>
    <div id="personal_details">
      <% form_for(@payment_notification) do |f| %>
        <%= f.hidden_field :status %>
        <%= f.hidden_field :brick_id %>
    
        <p><%= f.label :notes %><br />
        <% #FIXME: params should be set up as a hash... %>
        <%= f.text_field :params %>

        <%= submit_tag('Confirm brick') %>
      <% end %>
    </div>
  <% else %>
    <div id="personal_details" class="vblock" style="margin-top: 20px; padding-top: 20px;">
      <p>By clicking the button below you will be taken to a third party website (JustGiving) to make your secure donation. This site is 100% safe to provide your card details.</p>
      <a href="<%= justgiving_link(@brick) %>">Submit</a>
    
    <p style="margin-top: 20px;"><img src="/images/assets/giftaid.gif" alt="giftaid"></p>
    <p><strong>Increase the value of your 'Buy a brick' gift to us by 28%!</strong></p>
    <p>If you are a UK taxpayer, the value of your gift can be increased by 28% under the Gift Aid scheme at no extra cost to you!</p>
    <p><strong>Make sure you tick the 'Gift Aid' option when you reach the payment screen!</strong></p>
    
  
    </div>
    <div class="vblock">
      <p>Child's i Foundation (Registered Charity No. 1126212) wants to ensure that your donation is used most effectively and therefore your donation will be applied by the charity for its general charitable purposes.</p>
    </div>
  <% end %>
{'fraction_non_alphanumeric': 0.16079945491710199, 'fraction_numerical': 0.010447422212128094, 'mean_word_length': 3.304985337243402, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 137, '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': '225636', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1396, 'n_words': 494}