Sha256: 176110b8e9a2171e6a90d7aec62f4ebc4da124ec660594d80c0c55e782c7dc45
Contents?: true
Size: 1.47 KB
Versions: 10
Compression:
Stored size: 1.47 KB
Contents
<% title("Contact") %> <h1 class="page-title">Contact</h1> <div class="row"> <div class="col-sm-6"> <%= form_tag email_confirmation_path, method: 'post', html: {role: "form"} do %> <% if current_user && current_user.username %> <%= hidden_field_tag :name, current_user.username %> <%else%> <div class="form-group"> <%= label_tag :name, "Your name" %> <div class="row"> <div class="col-xs-12"> <%= text_field_tag :name, @name, placeholder: "Enter your name...", :autofocus => true, class: "form-control" %> </div> </div> </div> <%end%> <% if current_user && current_user.email %> <%= hidden_field_tag :email, current_user.email %> <%else%> <div class="form-group"> <%= label_tag :email, "Your email" %> <div class="row"> <div class="col-xs-12"> <%= text_field_tag :email, @email, placeholder: "Enter your email...", class: "form-control" %> </div> </div> </div> <%end%> <div class="form-group"> <%= label_tag :message, "Your message" %> <div class="row"> <div class="col-xs-12"> <%= text_area_tag :message, @message, placeholder: "Enter your message...", rows: 10, class: "form-control" %> </div> </div> </div> <div class="row"> <div class="col-xs-12 padded"> <button class='btn btn-primary'> <i class='fa fa-envelope'></i> Send </button> </div> </div> <% end %> </div> </div>
Version data entries
10 entries across 10 versions & 2 rubygems