devise-bootstrap-views 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/assets/stylesheets/devise_bootstrap_views_less.less +10 -0
- data/app/views/devise/confirmations/new.html.erb +2 -2
- data/app/views/devise/mailer/confirmation_instructions.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +1 -1
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/devise/unlocks/new.html.erb +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a556163d1bea0dc4a9ae72ddef4eaae4dae09b8a
|
4
|
+
data.tar.gz: 1cb32d0853e54cab96f680323bda080b6d629f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d1d14e275d1dbabee79860bb3e94b6e1fc6a23f9f4ddb8f46c954e32db46f4223b32be2198bd13c91baebe6b175642318385b965dbf504ff91fff6ecd194d5
|
7
|
+
data.tar.gz: 824eed0b1099bec318d4716538543163e5b0e99f7476e9a11994d4f4ef5892b215eacd43457451824a789a7d6b058c216e249a34d0ba8b1d368137d48fb500a4
|
data/README.md
CHANGED
@@ -24,8 +24,12 @@ And then execute:
|
|
24
24
|
|
25
25
|
Add some minor css fix to your rails asset pipeline manifest
|
26
26
|
|
27
|
+
# SASS
|
27
28
|
*= require devise_bootstrap_views
|
28
29
|
|
30
|
+
# LESS
|
31
|
+
*= require devise_bootstrap_views_less
|
32
|
+
|
29
33
|
Then you need to install the required translations in your `config/locales`. You can do this either manually (downloading them from [devise-i18n-views/locales](https://github.com/mcasimir/devise-i18n-views/tree/master/locales)) or through the apposite generator `devise:views:locale`, eg.
|
30
34
|
|
31
35
|
``` sh
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post, role: "form" }) do |f| %>
|
8
8
|
<div class="form-group">
|
9
9
|
<%= f.label :email %>
|
10
|
-
<%= f.email_field :email, class: "form-control" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<%= f.submit t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions'), class: "btn btn-primary" %>
|
@@ -15,4 +15,4 @@
|
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
|
18
|
-
<%= render "devise/shared/links" %>
|
18
|
+
<%= render "devise/shared/links" %>
|
@@ -3,4 +3,4 @@
|
|
3
3
|
<p><%= t('.instruction', :default => "You can confirm your account email through the link below:") %></p>
|
4
4
|
|
5
5
|
<p><%= link_to t('.action', :default => "Confirm my account"),
|
6
|
-
confirmation_url(@resource, :confirmation_token => @
|
6
|
+
confirmation_url(@resource, :confirmation_token => @token, locale: I18n.locale) %></p>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
<div class="form-group">
|
11
11
|
<%= f.label :password, t('.new_password', :default => 'New password') %>
|
12
|
-
<%= f.password_field :password, class: "form-control" %>
|
12
|
+
<%= f.password_field :password, autofocus: true, class: "form-control" %>
|
13
13
|
</div>
|
14
14
|
|
15
15
|
<div class="form-group">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, role: "form" }) do |f| %>
|
8
8
|
<div class="form-group">
|
9
9
|
<%= f.label :email %>
|
10
|
-
<%= f.email_field :email, class: "form-control" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions"), class: "btn btn-primary" %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
8
8
|
<div class="form-group">
|
9
9
|
<%= f.label :email %>
|
10
|
-
<%= f.email_field :email, class: "form-control" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
11
|
</div>
|
12
12
|
<div class="form-group">
|
13
13
|
<%= f.label :password %> <i>(<%= t('.leave_blank_if_you_don_t_want_to_change_it', :default => "leave blank if you don't want to change it") %>)</i><br />
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { role: "form" }) do |f| %>
|
8
8
|
<div class="form-group">
|
9
9
|
<%= f.label :email %>
|
10
|
-
<%= f.email_field :email, class: "form-control" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
11
|
</div>
|
12
12
|
<div class="form-group">
|
13
13
|
<%= f.label :password %><br />
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post, html: { role: "form" } }) do |f| %>
|
8
8
|
<div class="form-group">
|
9
9
|
<%= f.label :email %>
|
10
|
-
<%= f.email_field :email, class: "form-control" %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
11
|
</div>
|
12
12
|
<%= f.submit t('.resend_unlock_instructions', :default => "Resend unlock instructions"), class: "btn btn-primary"%>
|
13
13
|
<% end %>
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-bootstrap-views
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yinghai Zhao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- Screenshot.png
|
54
54
|
- app/assets/stylesheets/devise_bootstrap_views.scss
|
55
|
+
- app/assets/stylesheets/devise_bootstrap_views_less.less
|
55
56
|
- app/views/devise/confirmations/new.html.erb
|
56
57
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|
57
58
|
- app/views/devise/mailer/reset_password_instructions.html.erb
|
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
108
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.5
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: Devise Bootstrap views with i18n support.
|