cirandas.net

ref: master

plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb


<%= @form.name %>

<%= (@form.description || "").html_safe %>

<% if @submission.id.nil? %> <% if @form.expired? %> <% if @form.will_open? %>

<%= _('Sorry, you can\'t fill this form yet').html_safe %>

<% else %>

<%= _('Sorry, you can\'t fill this form anymore').html_safe %>

<% end %> <% end %> <%= error_messages_for :submission %> <%= form_for :submission do |f| %> <% if !user %> <%= required labelled_form_field _('Name'), text_field_tag(:author_name, @submission.author_name) %> <%= required labelled_form_field _('Email'), text_field_tag(:author_email, @submission.author_email) %> <% end %> <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> <%= button_bar do %> <% if @form.expired? %> <%= submit_button :save, c_('Save'), :disabled => '', :class => 'disabled', :cancel => {:controller => :profile, :profile => profile.identifier} %> <% else %> <%= submit_button :save, c_('Save'), :cancel => {:controller => :profile, :profile => profile.identifier} %> <% end %>
<%= _("Your e-mail will be visible to this form's owners.") %>
<% end %> <% end %> <% else %> <%= fields_for :submission, @submission do |f| %> <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> <% end %> <% end %>