Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% if @user.special == 1 %>
- <div class="content">
- <h2><%= t("users.contact_form") %></h2>
- <% form_remote_tag(:url => {:action => :sendmail_specialists}, :html => { :class => "addcomment", :id => "email_form" }, :before => %($('submit_id').hide();$('current_time_crop').show();), :complete => %($('current_time_crop').hide();)) do -%>
- <div style="display:none;">
- <input type="hidden" value="<%= Time.now().to_i %>" name="email[kontrola]"/>
- <input type="text" value="<%= t("date.day_names")[Time.now().strftime("%w").to_i] %>" name="email[den]"/>
- <label>Sem nic nepište!</label>
- <input type="text" name="email[prazdny]"/>
- </div>
- <div>
- <%= t("users.contact_f_hint") %><br /><br />
- <%= t("users.contact_f_subject") %>:<br />
- <%= text_field :email, :subject, :class => 'text' %>
- <br /><%= t("users.contact_f_email") %>:<br />
- <%= text_field :email, :email, :class => 'text', :value => is_logged_in? ? logged_in_user.email : "" %>
- <br /><%= t("users.contact_f_text") %>:<br />
- <%= text_area :email, :text, :class => 'text' %>
- <%= hidden_field :email, :to, :value => @user.id %><br /><br />
- <div id="current_time_crop" style="display:none"><%=image_tag('spinner-white.gif', :alt => t('avatars.loading'), :title => t('avatars.loading'))%><%= t("users.contact_f_submiting") %></div>
- <button id="submit_id" class="big" type="submit" title="<%= t('global.send') %>"><%= t('global.send') %></button>
- <div id="id_div_err" style="display:none">Submited</div>
- </div>
- <% end %>
- </div>
- <% end %>
Add Comment
Please, Sign In to add comment