bootstrap_views_generator 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -0
  3. data/bin/console +2 -2
  4. data/bootstrap_views_generator.gemspec +1 -0
  5. data/lib/bootstrap_views_generator/version.rb +1 -1
  6. data/lib/generators/bootstrap/devise_generator.rb +61 -0
  7. data/lib/generators/bootstrap/install_generator.rb +7 -1
  8. data/lib/generators/bootstrap/templates/devise/erb/confirmations/new.html.erb.tt +22 -0
  9. data/lib/generators/bootstrap/templates/devise/erb/mailer/confirmation_instructions.html.erb +5 -0
  10. data/lib/generators/bootstrap/templates/devise/erb/mailer/email_changed.html.erb +7 -0
  11. data/lib/generators/bootstrap/templates/devise/erb/mailer/password_change.html.erb +3 -0
  12. data/lib/generators/bootstrap/templates/devise/erb/mailer/reset_password_instructions.html.erb +8 -0
  13. data/lib/generators/bootstrap/templates/devise/erb/mailer/unlock_instructions.html.erb +7 -0
  14. data/lib/generators/bootstrap/templates/devise/erb/passwords/edit.html.erb.tt +27 -0
  15. data/lib/generators/bootstrap/templates/devise/erb/passwords/new.html.erb.tt +25 -0
  16. data/lib/generators/bootstrap/templates/devise/erb/registrations/edit.html.erb.tt +42 -0
  17. data/lib/generators/bootstrap/templates/devise/erb/registrations/new.html.erb.tt +28 -0
  18. data/lib/generators/bootstrap/templates/devise/erb/sessions/new.html.erb.tt +34 -0
  19. data/lib/generators/bootstrap/templates/devise/erb/shared/_error_messages.html.erb +15 -0
  20. data/lib/generators/bootstrap/templates/devise/erb/shared/_links.html.erb +25 -0
  21. data/lib/generators/bootstrap/templates/devise/erb/unlocks/new.html.erb.tt +18 -0
  22. data/lib/generators/bootstrap/templates/devise/haml/confirmations/new.html.haml.tt +17 -0
  23. data/lib/generators/bootstrap/templates/devise/haml/mailer/confirmation_instructions.html.haml +3 -0
  24. data/lib/generators/bootstrap/templates/devise/haml/mailer/email_changed.html.haml +7 -0
  25. data/lib/generators/bootstrap/templates/devise/haml/mailer/password_change.html.haml +2 -0
  26. data/lib/generators/bootstrap/templates/devise/haml/mailer/reset_password_instructions.html.haml +5 -0
  27. data/lib/generators/bootstrap/templates/devise/haml/mailer/unlock_instructions.html.haml +4 -0
  28. data/lib/generators/bootstrap/templates/devise/haml/passwords/edit.html.haml.tt +23 -0
  29. data/lib/generators/bootstrap/templates/devise/haml/passwords/new.html.haml.tt +17 -0
  30. data/lib/generators/bootstrap/templates/devise/haml/registrations/edit.html.haml.tt +39 -0
  31. data/lib/generators/bootstrap/templates/devise/haml/registrations/new.html.haml.tt +19 -0
  32. data/lib/generators/bootstrap/templates/devise/haml/sessions/new.html.haml.tt +21 -0
  33. data/lib/generators/bootstrap/templates/devise/haml/shared/_error_messages.html.haml +7 -0
  34. data/lib/generators/bootstrap/templates/devise/haml/shared/_links.html.haml +19 -0
  35. data/lib/generators/bootstrap/templates/devise/haml/unlocks/new.html.haml.tt +14 -0
  36. data/lib/generators/bootstrap/templates/devise/simple_form/erb/confirmations/new.html.erb.tt +22 -0
  37. data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/edit.html.erb.tt +18 -0
  38. data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/new.html.erb.tt +21 -0
  39. data/lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt +30 -0
  40. data/lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/new.html.erb.tt +20 -0
  41. data/lib/generators/bootstrap/templates/devise/simple_form/erb/sessions/new.html.erb.tt +22 -0
  42. data/lib/generators/bootstrap/templates/devise/simple_form/erb/unlocks/new.html.erb.tt +16 -0
  43. data/lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt +16 -0
  44. data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/edit.html.haml.tt +15 -0
  45. data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/new.html.haml.tt +15 -0
  46. data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt +26 -0
  47. data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt +17 -0
  48. data/lib/generators/bootstrap/templates/devise/simple_form/haml/sessions/new.html.haml.tt +16 -0
  49. data/lib/generators/bootstrap/templates/devise/simple_form/haml/unlocks/new.html.haml.tt +13 -0
  50. data/lib/generators/bootstrap/templates/devise/simple_form/slim/confirmations/new.html.slim.tt +16 -0
  51. data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/edit.html.slim.tt +15 -0
  52. data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/new.html.slim.tt +15 -0
  53. data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/edit.html.slim.tt +26 -0
  54. data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt +17 -0
  55. data/lib/generators/bootstrap/templates/devise/simple_form/slim/sessions/new.html.slim.tt +16 -0
  56. data/lib/generators/bootstrap/templates/devise/simple_form/slim/unlocks/new.html.slim.tt +13 -0
  57. data/lib/generators/bootstrap/templates/devise/slim/confirmations/new.html.slim.tt +17 -0
  58. data/lib/generators/bootstrap/templates/devise/slim/mailer/confirmation_instructions.html.slim +3 -0
  59. data/lib/generators/bootstrap/templates/devise/slim/mailer/email_changed.html.slim +5 -0
  60. data/lib/generators/bootstrap/templates/devise/slim/mailer/password_change.html.slim +2 -0
  61. data/lib/generators/bootstrap/templates/devise/slim/mailer/reset_password_instructions.html.slim +5 -0
  62. data/lib/generators/bootstrap/templates/devise/slim/mailer/unlock_instructions.html.slim +4 -0
  63. data/lib/generators/bootstrap/templates/devise/slim/passwords/edit.html.slim.tt +22 -0
  64. data/lib/generators/bootstrap/templates/devise/slim/passwords/new.html.slim.tt +17 -0
  65. data/lib/generators/bootstrap/templates/devise/slim/registrations/edit.html.slim.tt +39 -0
  66. data/lib/generators/bootstrap/templates/devise/slim/registrations/new.html.slim.tt +19 -0
  67. data/lib/generators/bootstrap/templates/devise/slim/sessions/new.html.slim.tt +21 -0
  68. data/lib/generators/bootstrap/templates/devise/slim/shared/_error_messages.html.slim +7 -0
  69. data/lib/generators/bootstrap/templates/devise/slim/shared/_links.html.slim +19 -0
  70. data/lib/generators/bootstrap/templates/devise/slim/unlocks/new.html.slim.tt +14 -0
  71. metadata +66 -2
@@ -0,0 +1,7 @@
1
+ - if resource.errors.any?
2
+ .error_explanation
3
+ h2
4
+ = I18n.t('errors.messages.not_saved', count: resource.errors.count, resource: resource.class.model_name.human.downcase)
5
+ ul
6
+ - resource.errors.full_messages.each do |message|
7
+ li = message
@@ -0,0 +1,19 @@
1
+ - if controller_name != 'sessions'
2
+ = link_to "Log in", new_session_path(resource_name)
3
+ br
4
+ - if devise_mapping.registerable? && controller_name != 'registrations'
5
+ = link_to "Sign up", new_registration_path(resource_name)
6
+ br
7
+ - if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
8
+ = link_to "Forgot your password?", new_password_path(resource_name)
9
+ br
10
+ - if devise_mapping.confirmable? && controller_name != 'confirmations'
11
+ = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
12
+ br
13
+ - if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
14
+ = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
15
+ br
16
+ - if devise_mapping.omniauthable?
17
+ - resource_class.omniauth_providers.each do |provider|
18
+ = link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider)
19
+ br
@@ -0,0 +1,14 @@
1
+ <%- if options[:metatags] %>
2
+ h2.text-center = title('Resend unlock instructions')
3
+ <% else -%>
4
+ h2.text-center Resend unlock instructions
5
+ <%- end %>
6
+ = form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
7
+ = render "devise/shared/error_messages", resource: resource
8
+ .field
9
+ = f.label :email
10
+ br
11
+ = f.email_field :email, autofocus: true, autocomplete: "email"
12
+ .actions
13
+ = f.submit "Resend unlock instructions"
14
+ = render "devise/shared/links"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_views_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hicks
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap
@@ -93,7 +93,71 @@ files:
93
93
  - lib/bootstrap_views_generator.rb
94
94
  - lib/bootstrap_views_generator/version.rb
95
95
  - lib/generators/bootstrap/config/simple_form.rb
96
+ - lib/generators/bootstrap/devise_generator.rb
96
97
  - lib/generators/bootstrap/install_generator.rb
98
+ - lib/generators/bootstrap/templates/devise/erb/confirmations/new.html.erb.tt
99
+ - lib/generators/bootstrap/templates/devise/erb/mailer/confirmation_instructions.html.erb
100
+ - lib/generators/bootstrap/templates/devise/erb/mailer/email_changed.html.erb
101
+ - lib/generators/bootstrap/templates/devise/erb/mailer/password_change.html.erb
102
+ - lib/generators/bootstrap/templates/devise/erb/mailer/reset_password_instructions.html.erb
103
+ - lib/generators/bootstrap/templates/devise/erb/mailer/unlock_instructions.html.erb
104
+ - lib/generators/bootstrap/templates/devise/erb/passwords/edit.html.erb.tt
105
+ - lib/generators/bootstrap/templates/devise/erb/passwords/new.html.erb.tt
106
+ - lib/generators/bootstrap/templates/devise/erb/registrations/edit.html.erb.tt
107
+ - lib/generators/bootstrap/templates/devise/erb/registrations/new.html.erb.tt
108
+ - lib/generators/bootstrap/templates/devise/erb/sessions/new.html.erb.tt
109
+ - lib/generators/bootstrap/templates/devise/erb/shared/_error_messages.html.erb
110
+ - lib/generators/bootstrap/templates/devise/erb/shared/_links.html.erb
111
+ - lib/generators/bootstrap/templates/devise/erb/unlocks/new.html.erb.tt
112
+ - lib/generators/bootstrap/templates/devise/haml/confirmations/new.html.haml.tt
113
+ - lib/generators/bootstrap/templates/devise/haml/mailer/confirmation_instructions.html.haml
114
+ - lib/generators/bootstrap/templates/devise/haml/mailer/email_changed.html.haml
115
+ - lib/generators/bootstrap/templates/devise/haml/mailer/password_change.html.haml
116
+ - lib/generators/bootstrap/templates/devise/haml/mailer/reset_password_instructions.html.haml
117
+ - lib/generators/bootstrap/templates/devise/haml/mailer/unlock_instructions.html.haml
118
+ - lib/generators/bootstrap/templates/devise/haml/passwords/edit.html.haml.tt
119
+ - lib/generators/bootstrap/templates/devise/haml/passwords/new.html.haml.tt
120
+ - lib/generators/bootstrap/templates/devise/haml/registrations/edit.html.haml.tt
121
+ - lib/generators/bootstrap/templates/devise/haml/registrations/new.html.haml.tt
122
+ - lib/generators/bootstrap/templates/devise/haml/sessions/new.html.haml.tt
123
+ - lib/generators/bootstrap/templates/devise/haml/shared/_error_messages.html.haml
124
+ - lib/generators/bootstrap/templates/devise/haml/shared/_links.html.haml
125
+ - lib/generators/bootstrap/templates/devise/haml/unlocks/new.html.haml.tt
126
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/confirmations/new.html.erb.tt
127
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/edit.html.erb.tt
128
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/new.html.erb.tt
129
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
130
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/new.html.erb.tt
131
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/sessions/new.html.erb.tt
132
+ - lib/generators/bootstrap/templates/devise/simple_form/erb/unlocks/new.html.erb.tt
133
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt
134
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/edit.html.haml.tt
135
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/new.html.haml.tt
136
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
137
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt
138
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/sessions/new.html.haml.tt
139
+ - lib/generators/bootstrap/templates/devise/simple_form/haml/unlocks/new.html.haml.tt
140
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/confirmations/new.html.slim.tt
141
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/edit.html.slim.tt
142
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/new.html.slim.tt
143
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/edit.html.slim.tt
144
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt
145
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/sessions/new.html.slim.tt
146
+ - lib/generators/bootstrap/templates/devise/simple_form/slim/unlocks/new.html.slim.tt
147
+ - lib/generators/bootstrap/templates/devise/slim/confirmations/new.html.slim.tt
148
+ - lib/generators/bootstrap/templates/devise/slim/mailer/confirmation_instructions.html.slim
149
+ - lib/generators/bootstrap/templates/devise/slim/mailer/email_changed.html.slim
150
+ - lib/generators/bootstrap/templates/devise/slim/mailer/password_change.html.slim
151
+ - lib/generators/bootstrap/templates/devise/slim/mailer/reset_password_instructions.html.slim
152
+ - lib/generators/bootstrap/templates/devise/slim/mailer/unlock_instructions.html.slim
153
+ - lib/generators/bootstrap/templates/devise/slim/passwords/edit.html.slim.tt
154
+ - lib/generators/bootstrap/templates/devise/slim/passwords/new.html.slim.tt
155
+ - lib/generators/bootstrap/templates/devise/slim/registrations/edit.html.slim.tt
156
+ - lib/generators/bootstrap/templates/devise/slim/registrations/new.html.slim.tt
157
+ - lib/generators/bootstrap/templates/devise/slim/sessions/new.html.slim.tt
158
+ - lib/generators/bootstrap/templates/devise/slim/shared/_error_messages.html.slim
159
+ - lib/generators/bootstrap/templates/devise/slim/shared/_links.html.slim
160
+ - lib/generators/bootstrap/templates/devise/slim/unlocks/new.html.slim.tt
97
161
  - lib/generators/bootstrap/templates/layouts/application.html.erb.tt
98
162
  - lib/generators/bootstrap/templates/layouts/application.html.haml.tt
99
163
  - lib/generators/bootstrap/templates/layouts/application.html.slim.tt