Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
26
app/views/support/_contact_form.html.erb
Normal file
26
app/views/support/_contact_form.html.erb
Normal file
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user