bootstrap_views_generator 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bootstrap_views_generator/version.rb +1 -1
  4. data/lib/generators/bootstrap/templates/devise/erb/passwords/edit.html.erb.tt +26 -20
  5. data/lib/generators/bootstrap/templates/devise/erb/passwords/new.html.erb.tt +3 -4
  6. data/lib/generators/bootstrap/templates/devise/erb/unlocks/new.html.erb.tt +5 -3
  7. data/lib/generators/bootstrap/templates/devise/haml/confirmations/new.html.haml.tt +3 -3
  8. data/lib/generators/bootstrap/templates/devise/haml/passwords/edit.html.haml.tt +23 -20
  9. data/lib/generators/bootstrap/templates/devise/haml/passwords/new.html.haml.tt +3 -3
  10. data/lib/generators/bootstrap/templates/devise/haml/registrations/edit.html.haml.tt +3 -3
  11. data/lib/generators/bootstrap/templates/devise/haml/registrations/new.html.haml.tt +3 -3
  12. data/lib/generators/bootstrap/templates/devise/haml/sessions/new.html.haml.tt +3 -3
  13. data/lib/generators/bootstrap/templates/devise/haml/unlocks/new.html.haml.tt +2 -1
  14. data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/edit.html.erb.tt +20 -14
  15. data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/new.html.erb.tt +3 -3
  16. data/lib/generators/bootstrap/templates/devise/simple_form/erb/unlocks/new.html.erb.tt +18 -12
  17. data/lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt +3 -3
  18. data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/edit.html.haml.tt +15 -12
  19. data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/new.html.haml.tt +3 -3
  20. data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt +3 -3
  21. data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt +3 -3
  22. data/lib/generators/bootstrap/templates/devise/simple_form/haml/sessions/new.html.haml.tt +3 -3
  23. data/lib/generators/bootstrap/templates/devise/simple_form/haml/unlocks/new.html.haml.tt +13 -10
  24. data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/edit.html.slim.tt +15 -12
  25. data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/new.html.slim.tt +3 -3
  26. data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt +3 -3
  27. data/lib/generators/bootstrap/templates/devise/simple_form/slim/unlocks/new.html.slim.tt +13 -10
  28. data/lib/generators/bootstrap/templates/devise/slim/confirmations/new.html.slim.tt +3 -3
  29. data/lib/generators/bootstrap/templates/devise/slim/passwords/edit.html.slim.tt +22 -19
  30. data/lib/generators/bootstrap/templates/devise/slim/passwords/new.html.slim.tt +3 -3
  31. data/lib/generators/bootstrap/templates/devise/slim/registrations/edit.html.slim.tt +3 -3
  32. data/lib/generators/bootstrap/templates/devise/slim/registrations/new.html.slim.tt +3 -3
  33. data/lib/generators/bootstrap/templates/devise/slim/sessions/new.html.slim.tt +3 -3
  34. data/lib/generators/bootstrap/templates/devise/slim/unlocks/new.html.slim.tt +3 -2
  35. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4e1213d3dacbb83cf2625a01208f53976f2e9f7b4cf2fb5692889ff00ae40ae
4
- data.tar.gz: 04fb8f8d706cfca0908ddca1ecd383adeb3bf67c731f5fe62b858b5f36598d04
3
+ metadata.gz: 3dc6f8cf97d834d565fa452c82eb41c04d1d4894f930564ac72950c46ae65a9b
4
+ data.tar.gz: f9f857cc68c0e5104f496d27088a595ffbe2a6e03360a71f64cba5d1955d38c2
5
5
  SHA512:
6
- metadata.gz: 13cbce0e9048eaa44117e427f95455ef8149c9a65ba4e2dbffc2ba543265880a37ee712e89b780e437859c3e4513883f0e0d531469f1a3ef058ea2dafab22004
7
- data.tar.gz: ae8cfb44a37695b849ce7e05fd94be68cb52880b78ee6a96676e5c70b1455852416077deba2de7c9ea86f321c392a1aec490b0b9c610e5ae96b4d33872aabc6a
6
+ metadata.gz: c0336e7ea270104bd65a2f8e585f87b8eeac4a36cf46545d0d612da010f3dbc4eac4bb8916731cf51d2428b52f93e9a925a4c7c09f6ee66ee034df7f8edf245f
7
+ data.tar.gz: 1ec37caebcf3c95395476450af95a754012721586671b2c52a3a6b4f2ccb872e35a290471ca2b1fb31f7a1689419859edd7ddb1aef20c36019d1e5946704652b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bootstrap_views_generator (0.1.5)
4
+ bootstrap_views_generator (0.1.7)
5
5
  bootstrap (>= 4.0, < 5.0)
6
6
  railties (>= 4.0, < 6.0)
7
7
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapViewsGenerator
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
@@ -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
- <%%= render "devise/shared/error_messages", resource: resource %>
8
- <%%= f.hidden_field :reset_password_token %>
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
- <div class="field">
11
- <%%= f.label :password, "New password" %><br />
12
- <%% if @minimum_password_length %>
13
- <em>(<%%= @minimum_password_length %> characters minimum)</em><br />
14
- <%% end %>
15
- <%%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
16
- </div>
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
- <div class="field">
19
- <%%= f.label :password_confirmation, "Confirm new password" %><br />
20
- <%%= f.password_field :password_confirmation, autocomplete: "off" %>
21
- </div>
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
- <div class="form-group">
24
- <%%= f.submit "Change my password", class: 'btn btn-primary btn-block btn-lg' %>
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
- <%% end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  <h2 class="text-center"><%%= title('Forgot your password?') %></h2>
5
- <% else -%>
5
+ <% else -%>
6
6
  <h2 class="text-center">Forgot your password?</h2>
7
- <%- end %>
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="actions">
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title('Resend confirmation instructions')
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Resend confirmation instructions
7
- <%- end %>
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
- = render 'devise/shared/error_messages', resource: resource
8
- = f.hidden_field :reset_password_token
9
- .field
10
- = f.label :password, 'New password'
11
- %br
12
- - if @minimum_password_length
13
- %em
14
- (#{@minimum_password_length} characters minimum)
15
- %br
16
- = f.password_field :password, autofocus: true, autocomplete: 'new-password'
17
- .field
18
- = f.label :password_confirmation, 'Confirm new password'
19
- %br
20
- = f.password_field :password_confirmation, autocomplete: 'off'
21
- .form-group
22
- = f.submit 'Change my password', class: 'btn btn-primary btn-block btn-lg'
23
- = render 'devise/shared/links'
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title('Forgot your password?')
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Forgot your password?
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Edit #{resource_name.to_s.humanize}")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Edit #{resource_name.to_s.humanize}
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Sign Up")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Sign Up
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Log in")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Log in
7
- <%- end %>
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
- .actions
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
- <%%= f.error_notification %>
8
- <%%= f.input :reset_password_token, as: :hidden %>
9
- <%%= f.full_error :reset_password_token %>
10
- <div class="form-group">
11
- <%%= 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" } %>
12
- <%%= f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' } %>
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
- <div class="form-group">
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  <h2 class="text-center"><%%= title('Forgot your password?') %></h2>
5
- <% else -%>
5
+ <% else -%>
6
6
  <h2 class="text-center">Forgot your password?</h2>
7
- <%- end %>
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
- <%%= f.error_notification %>
8
- <%%= f.full_error :unlock_token %>
9
- <div class="form-group">
10
- <%%= f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' } %>
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
- <div class="form-group">
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>
@@ -1,10 +1,10 @@
1
1
  .row
2
2
  .col-lg-4.col-md-6.ml-auto.mr-auto
3
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title('Resend confirmation instructions')
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Resend confirmation instructions
7
- <%- end %>
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
- = f.error_notification
8
- = f.input :reset_password_token, as: :hidden
9
- = f.full_error :reset_password_token
10
- .form-group
11
- = 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" }
12
- = f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
13
- .form-group
14
- = f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg'
15
- = render 'devise/shared/links'
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title('Forgot your password?')
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Forgot your password?
7
- <%- end %>
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
@@ -1,10 +1,10 @@
1
1
  .row
2
2
  .col-lg-4.col-md-6.ml-auto.mr-auto
3
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Edit #{resource_name.to_s.humanize}")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Edit #{resource_name.to_s.humanize}
7
- <%- end %>
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
@@ -1,10 +1,10 @@
1
1
  .row
2
2
  .col-lg-4.col-md-6.ml-auto.mr-auto
3
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Sign Up")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Sign Up
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  %h2.text-center= title("Log in")
5
- <% else -%>
5
+ <% else -%>
6
6
  %h2.text-center Log in
7
- <%- end %>
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
- = f.error_notification
8
- = f.full_error :unlock_token
9
- .form-group
10
- = f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' }
11
- .form-group
12
- = f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg'
13
- = render 'devise/shared/links'
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
- = f.error_notification
8
- = f.input :reset_password_token, as: :hidden
9
- = f.full_error :reset_password_token
10
- .form-group
11
- = 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" }
12
- = f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
13
- .form-group
14
- = f.button :submit, 'Change my password', class: 'btn btn-primary btn-block btn-lg'
15
- = render 'devise/shared/links'
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Forgot your password?')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Forgot your password?
7
- <%- end %>
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
@@ -1,10 +1,10 @@
1
1
  .row
2
2
  .col-lg-4.col-md-6.ml-auto.mr-auto
3
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Sign Up')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Sign Up
7
- <%- end %>
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
- = f.error_notification
8
- = f.full_error :unlock_token
9
- .form-group
10
- = f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' }
11
- .form-group
12
- = f.button :submit, 'Resend unlock instructions', class: 'btn btn-primary btn-block btn-lg'
13
- = render "devise/shared/links"
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Resend confirmation instructions')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Resend confirmation instructions
7
- <%- end %>
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
- = render 'devise/shared/error_messages', resource: resource
8
- = f.hidden_field :reset_password_token
9
- .field
10
- = f.label :password, 'New password'
11
- br
12
- - if @minimum_password_length
13
- em = "(#{@minimum_password_length} characters minimum)"
14
- br
15
- = f.password_field :password, autofocus: true, autocomplete: 'new-password'
16
- .field
17
- = f.label :password_confirmation, 'Confirm new password'
18
- br
19
- = f.password_field :password_confirmation, autocomplete: 'off'
20
- .actions
21
- = f.submit 'Change my password', class: 'btn btn-primary btn-block btn-lg'
22
- = render 'devise/shared/links'
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Forgot your password?')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Forgot your password?
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title("Edit #{resource_name.to_s.humanize}")
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center = "Edit #{resource_name.to_s.humanize}"
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Sign Up')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Sign Up
7
- <%- end %>
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
- <%- if options[:metatags] %>
3
+ <%- if options[:metatags] %>
4
4
  h2.text-center = title('Log in')
5
- <% else -%>
5
+ <% else -%>
6
6
  h2.text-center Log in
7
- <%- end %>
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
- .actions
12
+ .form-group
13
13
  = f.submit "Resend unlock instructions", class: 'btn btn-primary btn-block btn-lg'
14
- = render "devise/shared/links"
14
+ .text-center
15
+ = render "devise/shared/links"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_views_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hicks