master
 1<div class="row">
 2  <div class="col">
 3    <%= image_tag "cakeside-logo.png" %>
 4    <div>
 5      <h3>Why CakeSide?</h3>
 6      <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
 7      <h3>About Us</h3>
 8      <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="https://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
 9    </div>
10  </div>
11
12  <div class="col">
13    <div data-autoview="login-form" data-automodel="Session">
14      <%= form_for(@session, url: sessions_path(@session), html: { class: "form-horizontal needs-validation", novalidate: :novalidate }) do |f| %>
15        <legend>Got an account? Login!</legend>
16        <div class="form-group">
17          <%= email_field_tag 'session[email]', '', placeholder: 'Email', class: "form-control", required: :required %>
18          <div class="invalid-feedback"></div>
19        </div>
20        <div class="form-group">
21          <%= password_field_tag 'session[password]', '', placeholder: 'Password', class: "form-control", required: :required %>
22          <div class="invalid-feedback"></div>
23        </div>
24        <p><%= link_to "Forgot your password?", new_password_path %></p>
25        <%= f.submit t(".sign_in"), class: "btn btn-primary" %>
26      <% end %>
27    </div>
28
29    <div data-autoview="registration-form" data-automodel="Registration">
30      <%= form_for(User.new, as: :user, url: registration_path, html: { class: 'form-horizontal', novalidate: :novalidate }) do |f| %>
31        <fieldset>
32          <legend>New to CakeSide? Join Us!</legend>
33        </fieldset>
34        <div class="form-group">
35          <%= f.text_field :name, placeholder: 'Full name', class: 'form-control', required: :required %>
36          <div class="invalid-feedback"></div>
37        </div>
38        <div class="form-group">
39          <%= f.email_field :email, placeholder: 'Email', class: 'form-control', required: :required %>
40          <div class="invalid-feedback"></div>
41        </div>
42        <div class="form-group">
43          <%= f.password_field :password, placeholder: 'Password', class: 'form-control', required: :required %>
44          <div class="invalid-feedback"></div>
45        </div>
46        <div class="form-check">
47          <label>
48            <input id="user_accepted" name="user[accepted]" type="checkbox" value="" />
49            I have read the <a href="/terms.html">terms and conditions</a> and the <a href="/privacy.html">privacy policy</a>
50            <div class="invalid-feedback"></div>
51          </label>
52        </div>
53        <%= f.submit "Register", id: 'submit-registration', class: "btn btn-primary" %>
54      <% end %>
55    </div>
56  </div>
57</div>