cirandas.net

ref: master

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


<% self.extend CustomFormsPlugin::Helper %>

<%= _('Manage forms') %>

<% @forms.each do |form| %> <% end %>
<%= _('Name') %> <%= _('Period') %> <%= _('Submissions') %> <%= _('Access') %> <%= _('Actions') %>
<%= link_to form.name, {:controller => 'custom_forms_plugin_profile', :action => 'show', :id => form.id} %> <%= period_range(form) %> <%= form.submissions.count > 0 ? link_to(form.submissions.count, {:action => 'submissions', :id => form.id}) : 0 %> <%= access_text(form) %> <%= button_without_text :edit, c_('Edit'), :action => 'edit', :id => form.id %> <%= button_without_text :search, _('Pending'), :action => 'pending', :id => form.id if form.for_admission %> <%= button_without_text :remove, c_('Remove'), {action: 'remove', id: form.id}, data: {confirm: _('Are you sure you want to remove this form?')} %>
<%= button(:add, _('Add a new form'), :action => 'new')%>