cirandas.net

ref: master

plugins/custom_forms/views/custom_forms_plugin_myprofile/submissions.html.erb


<% self.extend CustomFormsPlugin::Helper %>

<%= _('Submissions for %s') % @form.name %>

<% if @form.submissions.empty? %> <%= _('There are no submissions for this form.') %> <% else %>

<%= _('Download all form responses as') %>: <%= link_to '[CSV]', :format => 'csv' %>

<%= labelled_select(_('Sort by')+': ', :sort_by, :first, :last, @sort_by, [['created_at', _('Time')], ['author_name', c_('Author')]], :class => 'filter') %>

<% @submissions.each do |submission| %> <% author = submission.profile.present? ? submission.profile.name : submission.author_name %> <% end %>
<%= c_('Author') %> <%= _('Time') %>
<%= link_to(author, {:action => 'show_submission', :id => submission.id}) %> <%= time_format(submission.created_at) %>
<% end %> <%= button_bar do %> <%= button :back, _('Back to forms'), :action => 'index' %> <% end %> <%= javascript_include_tag 'plugins/custom_forms/order' %>