Guest User

Untitled

a guest
Jul 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <% if @user.special == 1 %>
  2. <div class="content">
  3. <h2><%= t("users.contact_form") %></h2>
  4.  
  5. <% 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 -%>
  6.  
  7. <div style="display:none;">
  8. <input type="hidden" value="<%= Time.now().to_i %>" name="email[kontrola]"/>
  9. <input type="text" value="<%= t("date.day_names")[Time.now().strftime("%w").to_i] %>" name="email[den]"/>
  10. <label>Sem nic nepište!</label>
  11. <input type="text" name="email[prazdny]"/>
  12. </div>
  13.  
  14. <div>
  15. <%= t("users.contact_f_hint") %><br /><br />
  16. <%= t("users.contact_f_subject") %>:<br />
  17. <%= text_field :email, :subject, :class => 'text' %>
  18. <br /><%= t("users.contact_f_email") %>:<br />
  19. <%= text_field :email, :email, :class => 'text', :value => is_logged_in? ? logged_in_user.email : "" %>
  20. <br /><%= t("users.contact_f_text") %>:<br />
  21. <%= text_area :email, :text, :class => 'text' %>
  22. <%= hidden_field :email, :to, :value => @user.id %><br /><br />
  23. <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>
  24. <button id="submit_id" class="big" type="submit" title="<%= t('global.send') %>"><%= t('global.send') %></button>
  25. <div id="id_div_err" style="display:none">Submited</div>
  26. </div>
  27. <% end %>
  28.  
  29.  
  30.  
  31. </div>
  32. <% end %>
Add Comment
Please, Sign In to add comment