Sha256: 0f9dc95788c4e5e7f8237420bbe9820ad83480c9c45160f259cbe1c420436466

Contents?: true

Size: 1.75 KB

Versions: 13

Compression:

Stored size: 1.75 KB

Contents

<% if PointlessFeedback.using_captcha? %>
  <head>
    <script src='https://www.google.com/recaptcha/api.js'></script>
  </head>
<% end %>

<%= form_for @message do |f| %>
  <% if @message.errors.any? %>
    <div class="error_messages">
      <h2>
        <%= I18n.t('activerecord.errors.header', :default => 'Invalid Fields') %>
      </h2>

      <p>
        <%= I18n.t('activerecord.errors.message', :default => 'Correct the following errors and try again.') %>
      </p>

      <ul>
        <% @message.errors.full_messages.each do |message| %>
          <li><%= message.html_safe %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <fieldset class="user-fields">
    <legend>About You</legend>

    <div class="field">
      <%= f.label :name %>
      <%= f.text_field :name %>
    </div>

    <div class="field">
      <%= f.label :email_address %>
      <%= f.text_field :email_address %>
    </div>
  </fieldset>

  <fieldset class="feedback-fields">
    <legend>Leave Your Feedback</legend>

    <div class="field">
      <%= f.label :topic %>
      <%= f.select :topic, PointlessFeedback.message_topics, { :prompt => true } %>
    </div>

    <div class="field">
      <%= f.label :description %>
      <%= f.text_area :description %>
    </div>

    <!-- This is a honeypot field to keep the spammers away. Do not remove. -->
    <!-- If this field is filled in, feedback will not be emailed -->
    <div class="contact-input" style="position: absolute; left: -9999px;">
      <%= f.text_field :contact_info %>
    </div>
    <!-- End of honeypot field -->

  </fieldset>

  <% if PointlessFeedback.using_captcha? %>
    <div class="g-recaptcha" data-sitekey="<%= PointlessFeedback.google_captcha_site_key %>"></div>
  <% end %>

  <%= f.submit 'Submit' %>
<% end %>

Version data entries

13 entries across 12 versions & 1 rubygems

Version Path
pointless_feedback-4.1.4 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.1.3 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.1.2 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.1.1 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.1.0 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.6 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.5 test/tmp/app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.5 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.3 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.2 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-3.0.2 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-4.0.1 app/views/pointless_feedback/messages/new.html.erb
pointless_feedback-3.0.0 app/views/pointless_feedback/messages/new.html.erb