Sha256: 00456b5675c2ae568ce02ebe8573ab1b3b31a182563c929ec975200febea5a55

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

<h1><%= @form.title %> Responses</h1>

<ul class="choices">

  <li><%= link_to 'Download Responses', noodall_admin_form_form_responses_path(@form, :csv), :class => 'button download', :title => "Download all of these responses." %></li>

</ul>

<a class="tooltip" href="/cms_help.pdf">&nbsp;</a>

<div id="content-table">
 <table border="0" cellspacing="0" cellpadding="0" class="content">
  <thead>
    <tr>
      <th>Name</th>
      <th>Fields</th>
      <th width="100">Date</th>
      <th width="45">Delete</th>
    </tr>
  </thead>
  <tbody>
<% @responses.sort_by(&:created_at).reverse.each do |response| %>
    <tr id="form-<%= response.id %>" class="<%=cycle('odd', 'even')%>">
      <td class="edit"><%= mail_to response.email, h(response.name) %></td>
      <td><%= @form.fields.collect{|f| "<strong>#{f.name}:</strong> #{response.send(f.underscored_name)}" }.join(",&nbsp;").html_safe %></td>
      <td><%= h response.created_at.to_formatted_s(:long_dot) %></td>
      <td><%= link_to 'Delete', noodall_admin_form_form_response_path(@form, response), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this response' %>
          <%= link_to 'Mark as Spam', mark_as_spam_noodall_admin_form_form_response_path(@form, response), :class => 'spam', :title => 'Mark this response as spam and delete' %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
      <th>Name</th>
      <th>Fields</th>
      <th width="100">Date</th>
      <th width="45">Delete</th>
    </tr>
  </tfoot>
</table>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
noodall-form-builder-0.0.5 app/views/noodall/admin/form_responses/index.html.erb
noodall-form-builder-0.0.4 app/views/noodall/admin/form_responses/index.html.erb
noodall-form-builder-0.0.3 app/views/noodall/admin/form_responses/index.html.erb
noodall-form-builder-0.0.2 app/views/noodall/admin/form_responses/index.html.erb
noodall-form-builder-0.0.1 app/views/noodall/admin/form_responses/index.html.erb