Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #169 from rubyforgood/invitation_styling
Browse files Browse the repository at this point in the history
Invitation Page Styling
  • Loading branch information
seanmarcia authored Aug 25, 2019
2 parents 1e8cfde + bf31bae commit 83fec1c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
32 changes: 20 additions & 12 deletions app/views/devise/invitations/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
<h2><%= t 'devise.invitations.edit.header' %></h2>
<div class="login-form">
<h3 class="login-head"><i class="fa fa-lg fa-fw fa-user"></i>Set Your Password</h3>
<%= form_for resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put} do |f| %>
<%= devise_error_messages! %>
<%= f.hidden_field :invitation_token, readonly: true %>
<div class="form-group">

<%= form_for resource, :as => resource_name, :url => invitation_path(resource_name), :html => { :method => :put } do |f| %>
<%= devise_error_messages! %>
<%= f.hidden_field :invitation_token, readonly: true %>
<% if f.object.class.require_password_on_accepting %>
<p><%= f.label :password %><br/>
<%= f.password_field :password, class: 'form-control' %></p>

<% if f.object.class.require_password_on_accepting %>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<p><%= f.label :password_confirmation %><br/>
<%= f.password_field :password_confirmation, class: 'form-control' %></p>
<% end %>
</div>

<p><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></p>
<div class="form-group btn-container">
<%= button_tag type: 'submit', class: "btn btn-primary btn-block" do %>
<i class="fa fa-sign-in fa-lg fa-fw"></i>Create Account</button>
<% end %>
</div>
<p>
<% end %>

<p><%= f.submit t("devise.invitations.edit.submit_button") %></p>
<% end %>
</div>
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# Don't care if the mailer can't send.
# Devise mailer
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
config.action_mailer.default_url_options = { host: "partner.test" }
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true

Expand Down

0 comments on commit 83fec1c

Please sign in to comment.