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.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/bin/console +2 -2
- data/bootstrap_views_generator.gemspec +1 -0
- data/lib/bootstrap_views_generator/version.rb +1 -1
- data/lib/generators/bootstrap/devise_generator.rb +61 -0
- data/lib/generators/bootstrap/install_generator.rb +7 -1
- data/lib/generators/bootstrap/templates/devise/erb/confirmations/new.html.erb.tt +22 -0
- data/lib/generators/bootstrap/templates/devise/erb/mailer/confirmation_instructions.html.erb +5 -0
- data/lib/generators/bootstrap/templates/devise/erb/mailer/email_changed.html.erb +7 -0
- data/lib/generators/bootstrap/templates/devise/erb/mailer/password_change.html.erb +3 -0
- data/lib/generators/bootstrap/templates/devise/erb/mailer/reset_password_instructions.html.erb +8 -0
- data/lib/generators/bootstrap/templates/devise/erb/mailer/unlock_instructions.html.erb +7 -0
- data/lib/generators/bootstrap/templates/devise/erb/passwords/edit.html.erb.tt +27 -0
- data/lib/generators/bootstrap/templates/devise/erb/passwords/new.html.erb.tt +25 -0
- data/lib/generators/bootstrap/templates/devise/erb/registrations/edit.html.erb.tt +42 -0
- data/lib/generators/bootstrap/templates/devise/erb/registrations/new.html.erb.tt +28 -0
- data/lib/generators/bootstrap/templates/devise/erb/sessions/new.html.erb.tt +34 -0
- data/lib/generators/bootstrap/templates/devise/erb/shared/_error_messages.html.erb +15 -0
- data/lib/generators/bootstrap/templates/devise/erb/shared/_links.html.erb +25 -0
- data/lib/generators/bootstrap/templates/devise/erb/unlocks/new.html.erb.tt +18 -0
- data/lib/generators/bootstrap/templates/devise/haml/confirmations/new.html.haml.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/haml/mailer/confirmation_instructions.html.haml +3 -0
- data/lib/generators/bootstrap/templates/devise/haml/mailer/email_changed.html.haml +7 -0
- data/lib/generators/bootstrap/templates/devise/haml/mailer/password_change.html.haml +2 -0
- data/lib/generators/bootstrap/templates/devise/haml/mailer/reset_password_instructions.html.haml +5 -0
- data/lib/generators/bootstrap/templates/devise/haml/mailer/unlock_instructions.html.haml +4 -0
- data/lib/generators/bootstrap/templates/devise/haml/passwords/edit.html.haml.tt +23 -0
- data/lib/generators/bootstrap/templates/devise/haml/passwords/new.html.haml.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/haml/registrations/edit.html.haml.tt +39 -0
- data/lib/generators/bootstrap/templates/devise/haml/registrations/new.html.haml.tt +19 -0
- data/lib/generators/bootstrap/templates/devise/haml/sessions/new.html.haml.tt +21 -0
- data/lib/generators/bootstrap/templates/devise/haml/shared/_error_messages.html.haml +7 -0
- data/lib/generators/bootstrap/templates/devise/haml/shared/_links.html.haml +19 -0
- data/lib/generators/bootstrap/templates/devise/haml/unlocks/new.html.haml.tt +14 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/confirmations/new.html.erb.tt +22 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/edit.html.erb.tt +18 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/passwords/new.html.erb.tt +21 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt +30 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/new.html.erb.tt +20 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/sessions/new.html.erb.tt +22 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/erb/unlocks/new.html.erb.tt +16 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/confirmations/new.html.haml.tt +16 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/edit.html.haml.tt +15 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/passwords/new.html.haml.tt +15 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/edit.html.haml.tt +26 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/registrations/new.html.haml.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/sessions/new.html.haml.tt +16 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/haml/unlocks/new.html.haml.tt +13 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/confirmations/new.html.slim.tt +16 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/edit.html.slim.tt +15 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/passwords/new.html.slim.tt +15 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/edit.html.slim.tt +26 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/registrations/new.html.slim.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/sessions/new.html.slim.tt +16 -0
- data/lib/generators/bootstrap/templates/devise/simple_form/slim/unlocks/new.html.slim.tt +13 -0
- data/lib/generators/bootstrap/templates/devise/slim/confirmations/new.html.slim.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/slim/mailer/confirmation_instructions.html.slim +3 -0
- data/lib/generators/bootstrap/templates/devise/slim/mailer/email_changed.html.slim +5 -0
- data/lib/generators/bootstrap/templates/devise/slim/mailer/password_change.html.slim +2 -0
- data/lib/generators/bootstrap/templates/devise/slim/mailer/reset_password_instructions.html.slim +5 -0
- data/lib/generators/bootstrap/templates/devise/slim/mailer/unlock_instructions.html.slim +4 -0
- data/lib/generators/bootstrap/templates/devise/slim/passwords/edit.html.slim.tt +22 -0
- data/lib/generators/bootstrap/templates/devise/slim/passwords/new.html.slim.tt +17 -0
- data/lib/generators/bootstrap/templates/devise/slim/registrations/edit.html.slim.tt +39 -0
- data/lib/generators/bootstrap/templates/devise/slim/registrations/new.html.slim.tt +19 -0
- data/lib/generators/bootstrap/templates/devise/slim/sessions/new.html.slim.tt +21 -0
- data/lib/generators/bootstrap/templates/devise/slim/shared/_error_messages.html.slim +7 -0
- data/lib/generators/bootstrap/templates/devise/slim/shared/_links.html.slim +19 -0
- data/lib/generators/bootstrap/templates/devise/slim/unlocks/new.html.slim.tt +14 -0
- metadata +66 -2
@@ -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.
|
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-
|
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
|