@import "ui_patterns/manifest";
.header-main {
background-color: $bravo-color;
padding: 10px;
h1 {
font-size: 30px;
display: inline-block;
}
}
<h2>Resend confirmation instructions</h2>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= devise_error_messages! %>
<div><%= f.label :login %><br />
<%= f.text_field :login, autofocus: true %></div>
<div><%= f.submit "Resend confirmation instructions" %></div>
<% end %>
<%= render "devise/shared/links" %>
<p>Welcome <%= @email %>!</p>
<p>You can confirm your account email through the link below:</p>
<p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
<p>Hello <%= @resource.email %>!</p>
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
<p>Click the link below to unlock your account:</p>
<p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
<div class="title-panel" align="right">
<h2>Change Your Password</h2>
</div>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>
<%= f.hidden_field :reset_password_token %>
<div><%= f.label :password, "New password" %><br />
<%= f.password_field :password, autofocus: true, autocomplete: "off" %></div>
<div><%= f.label :password_confirmation, "Confirm new password" %><br />
<%= f.password_field :password_confirmation, autocomplete: "off" %></div>
<div><%= f.submit "Change my password", class: "button round" %></div>
<% end %>
<%= render "devise/shared/links" %>
<%- title "Forgot your password?" %>
<div style="height: 100px"></div>
<div class="row">
<div class="small-12 columns">
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
<%= devise_error_messages! %>
<div><%= f.label :Email %>
<%= f.text_field :login, autofocus: true %></div>
<div align="center">
<div><%= f.submit "Send me reset password instructions" %></div>
<% end %>
<br />
<%= render "devise/shared/links" %>
</div>
</div>
</div>
<div class="title-panel" align="right">
<h2>Edit <%= resource_name.to_s.humanize %></h2>
</div>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>
<div><%= f.label :username %><br />
<%= f.text_field :username, autofocus: true %></div>
<div><%= f.label :email %><br />
<%= f.email_field :email%></div>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
<% end %>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password, autocomplete: "off" %></div>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation, autocomplete: "off" %></div>
<% if f.object.encrypted_password.present? %>
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
<%= f.password_field :current_password, autocomplete: "off" %></div>
<% end %>
<div><%= f.submit "Update", class: "button small round"%></div>
<% end %>
<h3>Cancel my account</h3>
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: "button small round" %></p>
<%= link_to "Back", :back, class: "button small round success" %>
<%- title "New Owner" %>
<div style="height: 4em"></div>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<div class="small-9 columns">
<div class="row" style="left-padding:-25%">
<%= devise_error_messages! %>
<div><%= f.label :username, "*Username: " %>
<%= f.text_field :username, autofocus: true %>
</div>
<div><%= f.label :email, "*Email: An email address is required, just in case you need us to reset your password." %>
<%= f.email_field :email%>
</div>
<% if f.object.password_required? %>
<div><%= f.label :password, "*Password: " %>
<%= f.password_field :password, autocomplete: "off" %>
</div>
<div><%= f.label :password_confirmation, "*Password, again: " %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
</div>
<% end %>
<div align="center">
<div><%= f.submit "Sign Up", class: "button small round"%> or <a href="#" class="button small round" data-reveal-id="omniauth"><%=t(:sign_in_media_link)%></a>
</div>
<% end %>
<br />
<%= render "devise/shared/links" %>
</div>
</div>
</div>
<div id="omniauth" class="reveal-modal small" data-reveal>
<%= render "layouts/omniauthpopup" %>
</div>
<ul>
<% @users.each do |user| %>
<li>
<%= link_to user.username, user %>
<% if current_user && current_user.friendships.where(friend_id: user.id).empty? && current_user != user %>
<%= link_to "Add #{user.username}", {controller: "friendships", action: "create", user_id: current_user.id, friend_id: user.id}, method: :post %>
<% end %>
</li>
<% end %>
</ul>