bootstrap_views_generator 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bootstrap_views_generator/version.rb +1 -1
- data/lib/generators/bootstrap/templates/devise/erb/passwords/edit.html.erb.tt +26 -20
- data/lib/generators/bootstrap/templates/devise/erb/passwords/new.html.erb.tt +3 -4
- data/lib/generators/bootstrap/templates/devise/erb/unlocks/new.html.erb.tt +5 -3
- data/lib/generators/bootstrap/templates/devise/haml/confirmations/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/haml/passwords/edit.html.haml.tt +23 -20
- data/lib/generators/bootstrap/templates/devise/haml/passwords/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/haml/registrations/edit.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/haml/registrations/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/haml/sessions/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/haml/unlocks/new.html.haml.tt +2 -1
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/edit.html.erb.tt +20 -14
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/new.html.erb.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/unlocks/new.html.erb.tt +18 -12
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/edit.html.haml.tt +15 -12
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/sessions/new.html.haml.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/unlocks/new.html.haml.tt +13 -10
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/edit.html.slim.tt +15 -12
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/unlocks/new.html.slim.tt +13 -10
- data/lib/generators/bootstrap/templates/devise/slim/confirmations/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/slim/passwords/edit.html.slim.tt +22 -19
- data/lib/generators/bootstrap/templates/devise/slim/passwords/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/slim/registrations/edit.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/slim/registrations/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/slim/sessions/new.html.slim.tt +3 -3
- data/lib/generators/bootstrap/templates/devise/slim/unlocks/new.html.slim.tt +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dc6f8cf97d834d565fa452c82eb41c04d1d4894f930564ac72950c46ae65a9b
|
4
|
+
data.tar.gz: f9f857cc68c0e5104f496d27088a595ffbe2a6e03360a71f64cba5d1955d38c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0336e7ea270104bd65a2f8e585f87b8eeac4a36cf46545d0d612da010f3dbc4eac4bb8916731cf51d2428b52f93e9a925a4c7c09f6ee66ee034df7f8edf245f
|
7
|
+
data.tar.gz: 1ec37caebcf3c95395476450af95a754012721586671b2c52a3a6b4f2ccb872e35a290471ca2b1fb31f7a1689419859edd7ddb1aef20c36019d1e5946704652b
|
data/Gemfile.lock
CHANGED
@@ -1,27 +1,33 @@
|
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
<h2 class="text-center"><%%= title('Change your password') %></h2>
|
4
|
+
<h2 class="text-center"><%%= title('Change your password') %></h2>
|
3
5
|
<% else -%>
|
4
|
-
<h2 class="text-center">Change your password</h2>
|
6
|
+
<h2 class="text-center">Change your password</h2>
|
5
7
|
<%- end %>
|
6
|
-
<%%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
7
|
-
|
8
|
-
|
8
|
+
<%%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
9
|
+
<%%= render "devise/shared/error_messages", resource: resource %>
|
10
|
+
<%%= f.hidden_field :reset_password_token %>
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
<div class="field">
|
13
|
+
<%%= f.label :password, "New password" %><br />
|
14
|
+
<%% if @minimum_password_length %>
|
15
|
+
<em>(<%%= @minimum_password_length %> characters minimum)</em><br />
|
16
|
+
<%% end %>
|
17
|
+
<%%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
|
18
|
+
</div>
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
<div class="field">
|
21
|
+
<%%= f.label :password_confirmation, "Confirm new password" %><br />
|
22
|
+
<%%= f.password_field :password_confirmation, autocomplete: "off" %>
|
23
|
+
</div>
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
+
<div class="form-group">
|
26
|
+
<%%= f.submit "Change my password", class: 'btn btn-primary btn-block btn-lg' %>
|
27
|
+
</div>
|
28
|
+
<%% end %>
|
29
|
+
<div class="text-center">
|
30
|
+
<%%= render "devise/shared/links" %>
|
31
|
+
</div>
|
25
32
|
</div>
|
26
|
-
|
27
|
-
<%%= render "devise/shared/links" %>
|
33
|
+
</div>
|
@@ -1,11 +1,10 @@
|
|
1
1
|
<div class="row">
|
2
2
|
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
<h2 class="text-center"><%%= title('Forgot your password?') %></h2>
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
<h2 class="text-center">Forgot your password?</h2>
|
7
|
-
|
8
|
-
|
7
|
+
<%- end %>
|
9
8
|
<%%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
10
9
|
<%%= render "devise/shared/error_messages", resource: resource %>
|
11
10
|
<br>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="row">
|
2
|
-
<div class="col-lg-4 col-md-6 ml-auto mr-auto
|
2
|
+
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
3
3
|
<%- if options[:metatags] %>
|
4
4
|
<h2 class="text-center"><%%= title("Resend unlock instructions") %></h2>
|
5
5
|
<% else -%>
|
@@ -10,10 +10,12 @@
|
|
10
10
|
<div class="form-group">
|
11
11
|
<%%= f.email_field :email, autofocus: true, placeholder: 'Email Address', autocomplete: "email", class: 'form-control' %>
|
12
12
|
</div>
|
13
|
-
<div class="
|
13
|
+
<div class="form-group">
|
14
14
|
<%%= f.submit "Resend unlock instructions", class: 'btn btn-primary btn-block btn-lg' %>
|
15
15
|
</div>
|
16
|
-
<%%= render "devise/shared/links" %>
|
17
16
|
<%% end %>
|
17
|
+
<div class="text-center">
|
18
|
+
<%%= render "devise/shared/links" %>
|
19
|
+
</div>
|
18
20
|
</div>
|
19
21
|
</div>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title('Resend confirmation instructions')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Resend confirmation instructions
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= render "devise/shared/error_messages", resource: resource
|
10
10
|
.form-group
|
@@ -1,23 +1,26 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
%h2.text-center= title('Change your password')
|
4
|
+
%h2.text-center= title('Change your password')
|
3
5
|
<% else -%>
|
4
|
-
%h2.text-center Change your password
|
6
|
+
%h2.text-center Change your password
|
5
7
|
<%- end %>
|
6
|
-
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
8
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
9
|
+
= render 'devise/shared/error_messages', resource: resource
|
10
|
+
= f.hidden_field :reset_password_token
|
11
|
+
.field
|
12
|
+
= f.label :password, 'New password'
|
13
|
+
%br
|
14
|
+
- if @minimum_password_length
|
15
|
+
%em
|
16
|
+
(#{@minimum_password_length} characters minimum)
|
17
|
+
%br
|
18
|
+
= f.password_field :password, autofocus: true, autocomplete: 'new-password'
|
19
|
+
.field
|
20
|
+
= f.label :password_confirmation, 'Confirm new password'
|
21
|
+
%br
|
22
|
+
= f.password_field :password_confirmation, autocomplete: 'off'
|
23
|
+
.form-group
|
24
|
+
= f.submit 'Change my password', class: 'btn btn-primary btn-block btn-lg'
|
25
|
+
.text-center
|
26
|
+
= render 'devise/shared/links'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title('Forgot your password?')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Forgot your password?
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= render 'devise/shared/error_messages', resource: resource
|
10
10
|
%br
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Edit #{resource_name.to_s.humanize}")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Edit #{resource_name.to_s.humanize}
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
%hr
|
9
9
|
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
10
10
|
= render "devise/shared/error_messages", resource: resource
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Sign Up")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Sign Up
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
9
9
|
= render 'devise/shared/error_messages', resource: resource
|
10
10
|
.form-group
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Log in")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Log in
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
9
9
|
.form-group
|
10
10
|
= f.email_field :email, autofocus: true, placeholder: 'Email Address', class: 'form-control'
|
@@ -9,6 +9,7 @@
|
|
9
9
|
= render "devise/shared/error_messages", resource: resource
|
10
10
|
.form-group
|
11
11
|
= f.email_field :email, autofocus: true, placeholder: 'Email Address', autocomplete: "email", class: 'form-control'
|
12
|
-
.
|
12
|
+
.form-group
|
13
13
|
= f.submit "Resend unlock instructions", class: 'btn btn-primary btn-block btn-lg'
|
14
|
+
.text-center
|
14
15
|
= render "devise/shared/links"
|
@@ -1,18 +1,24 @@
|
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
<h2 class="text-center"><%%= title('Change your password') %></h2>
|
4
|
+
<h2 class="text-center"><%%= title('Change your password') %></h2>
|
3
5
|
<% else -%>
|
4
|
-
<h2 class="text-center">Change your password</h2>
|
6
|
+
<h2 class="text-center">Change your password</h2>
|
5
7
|
<%- end %>
|
6
|
-
<%%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
<%%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
9
|
+
<%%= f.error_notification %>
|
10
|
+
<%%= f.input :reset_password_token, as: :hidden %>
|
11
|
+
<%%= f.full_error :reset_password_token %>
|
12
|
+
<div class="form-group">
|
13
|
+
<%%= f.input :password, label: 'New password', required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" } %>
|
14
|
+
<%%= f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' } %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group">
|
17
|
+
<%%= f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg' %>
|
18
|
+
</div>
|
19
|
+
<%% end %>
|
20
|
+
<div class="text-center">
|
21
|
+
<%%= render "devise/shared/links" %>
|
22
|
+
</div>
|
13
23
|
</div>
|
14
|
-
|
15
|
-
<%%= f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg' %>
|
16
|
-
</div>
|
17
|
-
<%% end %>
|
18
|
-
<%%= render 'devise/shared/links' %>
|
24
|
+
</div>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="row">
|
2
2
|
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
<h2 class="text-center"><%%= title('Forgot your password?') %></h2>
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
<h2 class="text-center">Forgot your password?</h2>
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
<%%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
9
9
|
<%%= f.error_notification %>
|
10
10
|
<div class="form-group">
|
@@ -1,16 +1,22 @@
|
|
1
|
+
<div class="row">
|
2
|
+
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
<h2 class="text-center"><%%= title("Resend unlock instructions") %></h2>
|
4
|
+
<h2 class="text-center"><%%= title("Resend unlock instructions") %></h2>
|
3
5
|
<% else -%>
|
4
|
-
<h2 class="text-center">Resend unlock instructions</h2>
|
6
|
+
<h2 class="text-center">Resend unlock instructions</h2>
|
5
7
|
<%- end %>
|
6
|
-
<%%= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
<%%= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
|
9
|
+
<%%= f.error_notification %>
|
10
|
+
<%%= f.full_error :unlock_token %>
|
11
|
+
<div class="form-group">
|
12
|
+
<%%= f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' } %>
|
13
|
+
</div>
|
14
|
+
<div class="form-group">
|
15
|
+
<%%= f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg' %>
|
16
|
+
</div>
|
17
|
+
<%% end %>
|
18
|
+
<div class="text-center">
|
19
|
+
<%%= render "devise/shared/links" %>
|
20
|
+
</div>
|
11
21
|
</div>
|
12
|
-
|
13
|
-
<%%= f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg' %>
|
14
|
-
</div>
|
15
|
-
<%% end %>
|
16
|
-
<%%= render "devise/shared/links" %>
|
22
|
+
</div>
|
data/lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title('Resend confirmation instructions')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Resend confirmation instructions
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= f.error_notification
|
10
10
|
= f.full_error :confirmation_token
|
@@ -1,15 +1,18 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
%h2.text-center= title('Change your password')
|
4
|
+
%h2.text-center= title('Change your password')
|
3
5
|
<% else -%>
|
4
|
-
%h2.text-center Change your password
|
6
|
+
%h2.text-center Change your password
|
5
7
|
<%- end %>
|
6
|
-
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
9
|
+
= f.error_notification
|
10
|
+
= f.input :reset_password_token, as: :hidden
|
11
|
+
= f.full_error :reset_password_token
|
12
|
+
.form-group
|
13
|
+
= f.input :password, label: 'New password', required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" }
|
14
|
+
= f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
|
15
|
+
.form-group
|
16
|
+
= f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg'
|
17
|
+
.text-center
|
18
|
+
= render 'devise/shared/links'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title('Forgot your password?')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Forgot your password?
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= f.error_notification
|
10
10
|
.form-group
|
data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Edit #{resource_name.to_s.humanize}")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Edit #{resource_name.to_s.humanize}
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
%hr
|
9
9
|
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
10
10
|
= f.error_notification
|
data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Sign Up")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Sign Up
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
9
9
|
= f.error_notification
|
10
10
|
.form-group
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
%h2.text-center= title("Log in")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
%h2.text-center Log in
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
9
9
|
.form-group
|
10
10
|
= f.input :email, required: false, autofocus: true, input_html: { autocomplete: 'email' }
|
@@ -1,13 +1,16 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
%h2.text-center= title("Resend unlock instructions")
|
4
|
+
%h2.text-center= title("Resend unlock instructions")
|
3
5
|
<% else -%>
|
4
|
-
%h2.text-center Resend unlock instructions
|
6
|
+
%h2.text-center Resend unlock instructions
|
5
7
|
<%- end %>
|
6
|
-
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
9
|
+
= f.error_notification
|
10
|
+
= f.full_error :unlock_token
|
11
|
+
.form-group
|
12
|
+
= f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' }
|
13
|
+
.form-group
|
14
|
+
= f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg'
|
15
|
+
.text-center
|
16
|
+
= render 'devise/shared/links'
|
@@ -1,15 +1,18 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
h2.text-center = title('Change your password')
|
4
|
+
h2.text-center = title('Change your password')
|
3
5
|
<% else -%>
|
4
|
-
h2.text-center Change your password
|
6
|
+
h2.text-center Change your password
|
5
7
|
<%- end %>
|
6
|
-
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
9
|
+
= f.error_notification
|
10
|
+
= f.input :reset_password_token, as: :hidden
|
11
|
+
= f.full_error :reset_password_token
|
12
|
+
.form-group
|
13
|
+
= f.input :password, label: 'New password', required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" }
|
14
|
+
= f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
|
15
|
+
.form-group
|
16
|
+
= f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg'
|
17
|
+
.text-center
|
18
|
+
= render 'devise/shared/links'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Forgot your password?')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Forgot your password?
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= f.error_notification
|
10
10
|
.form-group
|
data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Sign Up')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Sign Up
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
9
9
|
= f.error_notification
|
10
10
|
.form-group
|
@@ -1,13 +1,16 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
h2.text-center = title('Resend unlock instructions')
|
4
|
+
h2.text-center = title('Resend unlock instructions')
|
3
5
|
<% else -%>
|
4
|
-
h2.text-center Resend unlock instructions
|
6
|
+
h2.text-center Resend unlock instructions
|
5
7
|
<%- end %>
|
6
|
-
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
9
|
+
= f.error_notification
|
10
|
+
= f.full_error :unlock_token
|
11
|
+
.form-group
|
12
|
+
= f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' }
|
13
|
+
.form-group
|
14
|
+
= f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg'
|
15
|
+
.text-center
|
16
|
+
= render "devise/shared/links"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Resend confirmation instructions')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Resend confirmation instructions
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= render "devise/shared/error_messages", resource: resource
|
10
10
|
.form-group
|
@@ -1,22 +1,25 @@
|
|
1
|
+
.row
|
2
|
+
.col-lg-4.col-md-6.ml-auto.mr-auto
|
1
3
|
<%- if options[:metatags] %>
|
2
|
-
h2.text-center = title('Change your password')
|
4
|
+
h2.text-center = title('Change your password')
|
3
5
|
<% else -%>
|
4
|
-
h2.text-center Change your password
|
6
|
+
h2.text-center Change your password
|
5
7
|
<%- end %>
|
6
|
-
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
8
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
9
|
+
= render 'devise/shared/error_messages', resource: resource
|
10
|
+
= f.hidden_field :reset_password_token
|
11
|
+
.field
|
12
|
+
= f.label :password, 'New password'
|
13
|
+
br
|
14
|
+
- if @minimum_password_length
|
15
|
+
em = "(#{@minimum_password_length} characters minimum)"
|
16
|
+
br
|
17
|
+
= f.password_field :password, autofocus: true, autocomplete: 'new-password'
|
18
|
+
.field
|
19
|
+
= f.label :password_confirmation, 'Confirm new password'
|
20
|
+
br
|
21
|
+
= f.password_field :password_confirmation, autocomplete: 'off'
|
22
|
+
.form-group
|
23
|
+
= f.submit 'Change my password', class: 'btn btn-primary btn-block btn-lg'
|
24
|
+
.text-center
|
25
|
+
= render 'devise/shared/links'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Forgot your password?')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Forgot your password?
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
9
9
|
= render 'devise/shared/error_messages', resource: resource
|
10
10
|
br
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title("Edit #{resource_name.to_s.humanize}")
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center = "Edit #{resource_name.to_s.humanize}"
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
hr
|
9
9
|
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
10
10
|
= render 'devise/shared/error_messages', resource: resource
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Sign Up')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Sign Up
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
9
9
|
= render "devise/shared/error_messages", resource: resource
|
10
10
|
.form-group
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.row
|
2
2
|
.col-lg-4.col-md-6.ml-auto.mr-auto
|
3
|
-
|
3
|
+
<%- if options[:metatags] %>
|
4
4
|
h2.text-center = title('Log in')
|
5
|
-
|
5
|
+
<% else -%>
|
6
6
|
h2.text-center Log in
|
7
|
-
|
7
|
+
<%- end %>
|
8
8
|
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
9
9
|
.form-group
|
10
10
|
= f.email_field :email, autofocus: true, placeholder: 'Email Address', class: 'form-control'
|
@@ -9,6 +9,7 @@
|
|
9
9
|
= render "devise/shared/error_messages", resource: resource
|
10
10
|
.form-group
|
11
11
|
= f.email_field :email, autofocus: true, placeholder: 'Email Address', autocomplete: "email", class: 'form-control'
|
12
|
-
.
|
12
|
+
.form-group
|
13
13
|
= f.submit "Resend unlock instructions", class: 'btn btn-primary btn-block btn-lg'
|
14
|
-
|
14
|
+
.text-center
|
15
|
+
= render "devise/shared/links"
|