Sha256: 57bee714552fe2ba42e81558ff7bd526eb2e4a0a82aaa45511afdee25a9b1140

Contents?: true

Size: 935 Bytes

Versions: 5

Compression:

Stored size: 935 Bytes

Contents

<% if @contact_signed_out -%>

<%= raw element.ingredient('signed_out_text') % {:name => @contact.interpolation_name_value} %>

<% elsif @contact_disabled -%>

<%= raw element.ingredient('disabled_text') % {:name => @contact.interpolation_name_value} %>

<% else -%>

<%= form_tag alchemy_crm.signout_contacts_path do %>
  <% if flash[:notice].present? -%>
  <p class="flash notice"><%= flash[:notice] %></p>
  <% end -%>
  <table>
    <tr>
      <td class="label">
        <%= label_tag 'email', ::I18n.t(:email, :scope => "activerecord.attributes.alchemy_crm/contact") %>
      </td>
      <td class="input">
        <%= email_field_tag 'email', params[:email], :required => true, :class => 'text_field' %>
      </td>
    </tr>
    <tr>
      <td colspan="2" class="submit">
        <%= button_tag ::I18n.t('signout_form.button_label', :scope => :alchemy_crm), :name => nil %>
      </td>
    </tr>
  </table>
<% end %>

<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 app/views/alchemy/elements/_newsletter_signout_form_view.html.erb
alchemy_crm-2.0.4.1 app/views/alchemy/elements/_newsletter_signout_form_view.html.erb
alchemy_crm-2.1.0a app/views/alchemy/elements/_newsletter_signout_form_view.html.erb
alchemy_crm-2.0.3 app/views/alchemy/elements/_newsletter_signout_form_view.html.erb
alchemy_crm-2.0.2 app/views/alchemy/elements/_newsletter_signout_form_view.html.erb