26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
|
|
<div class="contact-form <%= klass %>" id="contact-form">
|
||
|
|
<% remote_form_for @support_request, :html => { :onsubmit => "if (!validate_contact_from(this)) return false" } do |f| -%>
|
||
|
|
<%= f.hidden_field :support_request_origin_id %>
|
||
|
|
<%= f.hidden_field :subject, :value => params[:subject] %>
|
||
|
|
<%= f.hidden_field :product_id unless show_product_select %>
|
||
|
|
<%= hidden_field_tag "callback", callback %>
|
||
|
|
<%= antispam_field %>
|
||
|
|
<fieldset>
|
||
|
|
<ul>
|
||
|
|
<li><%= f.label :name, t("txt.common.your_name") %><%= f.text_field :name, :class => "name" %></li>
|
||
|
|
<li><%= f.label :email, [t("txt.common.your_email"), t("txt.common.required")].join(" ") %><%= f.text_field :email, :class => "email" %></li>
|
||
|
|
<% if show_product_select %>
|
||
|
|
<li><%= f.label :product_id, Product.human_name %><%= f.select :product_id, cute_for_select(Product.all_ordered), { :include_blank => t('txt.common.not_applicable') }, :class => "dropdown" %></li>
|
||
|
|
<% end %>
|
||
|
|
<% if split_layout %>
|
||
|
|
</ul>
|
||
|
|
<ul class="rside">
|
||
|
|
<% end %>
|
||
|
|
<li><%= f.label :message, [t("txt.common.message"), t("txt.common.required")].join(" ") %><%= f.text_area :message, :class => "message" %></li>
|
||
|
|
</ul>
|
||
|
|
</fieldset>
|
||
|
|
<div class="submit">
|
||
|
|
<%= submit_button " Send " %>
|
||
|
|
</div>
|
||
|
|
<% end -%>
|
||
|
|
</div>
|