cirandas.net

ref: master

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


<% self.extend CustomFormsPlugin::Helper %>

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

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

<%= labelled_select(_('Sort by')+': ', :sort_by, :first, :last, @sort_by, [['time', _('Time')], ['user', _('User')]], :onchange => 'document.location.href = "?sort_by="+this.value') %>

<% @pendings.each do |pending| %> <% end %>
<%= _('User') %> <%= _('Time') %>
<%= link_to(pending[:profile].name, {:controller => :profile, :profile => pending[:profile].identifier}) %> <%= time_format(pending[:time]) %>
<% end %> <%= button_bar do %> <%= button :back, _('Back to forms'), :action => 'index' %> <% end %>