rails_base 0.58.0 → 0.60.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2382233d63801820a6f6b4b68f03f6eea0b3e79915edbf6d9da3c03500c91f98
|
4
|
+
data.tar.gz: 90b9db35b59889f0efc3ba402d852731f1c071667d9a24a87f5583d57b292372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0fbebe271f5e0ff50dc7255a22c27d8b2fdff93272298d9026019d37bd4362e6883c4c653eb440aeb89dc3ab32aa87084a53a950a1ca213bbdea1297ec8b78f
|
7
|
+
data.tar.gz: 25f855f707777734d74b33f682484adcbb8958dfbb6fa7ad12aa965619c2d7610f48f3cb348772469a5231a5e52c95f57360a6cb8dd486a396f9f7241f6ba07f
|
@@ -178,15 +178,21 @@
|
|
178
178
|
# dont load these when error page happens. The full stack of librarires are not
|
179
179
|
# rendered and jquery/bootstrap are missing
|
180
180
|
%>
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
<% when :bottom %>
|
185
|
-
if($('#_body_base_container').height() <= window.innerHeight){
|
181
|
+
function _rails_base_reload_base_footer(){
|
182
|
+
<% case footer_mode_case %>
|
183
|
+
<% when :sticky %>
|
186
184
|
$('#base-footer').addClass('fixed-bottom')
|
185
|
+
<% when :bottom %>
|
186
|
+
if($('#_body_base_container').height() <= window.innerHeight){
|
187
|
+
$('#base-footer').addClass('fixed-bottom')
|
188
|
+
} else {
|
189
|
+
$('#base-footer').removeClass('fixed-bottom')
|
190
|
+
}
|
191
|
+
<% else %>
|
192
|
+
<% end %>
|
187
193
|
}
|
188
|
-
|
189
|
-
|
194
|
+
|
195
|
+
_rails_base_reload_base_footer();
|
190
196
|
|
191
197
|
<% unless defined?(@error_page) %>
|
192
198
|
$(document).ready(function(){
|
@@ -1,14 +1,17 @@
|
|
1
1
|
<h2 class='text-center'>Forgot your password?</h2>
|
2
2
|
<%= render "devise/shared/error_messages", resource: resource %>
|
3
3
|
|
4
|
+
<% submit_id = "submit_id_#{Time.now.to_i}" %>
|
4
5
|
|
5
|
-
<%= form_for(:user, as: :user, url: RailsBase.url_routes.user_password_path, html: { method: :post }) do |f| %>
|
6
|
+
<%= form_for(:user, as: :user, url: RailsBase.url_routes.user_password_path, html: { method: :post, class: 'forgot_password' }) do |f| %>
|
6
7
|
|
7
8
|
<div class="field form-group row">
|
8
9
|
<div class="col-md-10 offset-md-1">
|
9
|
-
<%= f.label :email, class: 'text-center' %><br
|
10
|
+
<%= f.label :email, class: 'text-center' %><br>
|
10
11
|
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: :email, class: 'form-control'%>
|
11
|
-
|
12
|
+
<div class="invalid-feedback">
|
13
|
+
Password Confirmation does not match Password
|
14
|
+
</div>
|
12
15
|
</div>
|
13
16
|
</div>
|
14
17
|
|
@@ -16,7 +19,7 @@
|
|
16
19
|
<div class="col-md-10 offset-md-1 text-center">
|
17
20
|
<div class="row">
|
18
21
|
<div class="col-md-9">
|
19
|
-
<%= f.submit "Send me reset password instructions", class: "btn btn_success btn-block" %>
|
22
|
+
<%= f.submit "Send me reset password instructions", class: "btn btn_success btn-block #{submit_id}" %>
|
20
23
|
</div>
|
21
24
|
<div class="col-md-3">
|
22
25
|
<a class="btn btn_primary btn-block" href="<%= RailsBase.url_routes.new_user_session_path %>" role="button">Sign in</a>
|
@@ -25,3 +28,12 @@
|
|
25
28
|
</div>
|
26
29
|
</div>
|
27
30
|
<% end %>
|
31
|
+
|
32
|
+
<%
|
33
|
+
values = [
|
34
|
+
{ name: '#user_email', criteria: { required: true, pattern: :email }}
|
35
|
+
]
|
36
|
+
function_name = 'forgot_password'
|
37
|
+
%>
|
38
|
+
|
39
|
+
<%= render partial: 'rails_base/shared/custom_form_validation_javascript', locals: { function_name: function_name, values: values } %>
|
data/lib/rails_base/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|