caboose-cms 0.9.215 → 0.9.216

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e78cdfe6661eb28b6f2def6670fb647f04b3203f5b4b24d55a3f6438a02114a1
4
- data.tar.gz: 514ec0cd029cfd0dc08e550c2cd33c7a52013972cce05caa91319943667cdffc
3
+ metadata.gz: d7c1bfef2f29928298054378eba2753a3e98127166b7fd69fadabb15463869ac
4
+ data.tar.gz: ffe5124a84b06873f893ec83d1665b642a2fa8a7b6ecaabc540a78a6611c2636
5
5
  SHA512:
6
- metadata.gz: 0470d3d8278c51474f46dc0a7173ad5d7b2d162fd99d1bfc0d5758d608d81d209bb635e896e8ae91622d43efed021133d044c6f4fc067ac0ac92e593cd9954b8
7
- data.tar.gz: b023cd761cee7067d36fe2f9a5399a312a75a2cafb2c5898ba9fd7d5d61c243a88aaea7bc49e39be35db38decc39ab4fc90175c0788da47a33ea198c09843bb9
6
+ metadata.gz: 8aa16c7998249164f24d245a765a42cd03b59d8c93ef9e6af5ae295b2413f98a7249632c531089453706394941ddba7abe88b77ade6ff548eba4dc760fdd1f34
7
+ data.tar.gz: f58c132f13d9ea4f82ad456321e18739f47ddf83638d76c2ceb3c8ee0cd819d159bb227e732f6a9085cb5ec3772c59e56de20180b240654aa548c105b715c2b6
@@ -47,6 +47,20 @@
47
47
  font-style: normal;
48
48
  color: #282828;
49
49
  }
50
+ &.cb {
51
+ margin-top: 15px;
52
+ text-align: right;
53
+ label {
54
+ display: inline-block;
55
+ font-size: 14px;
56
+ margin: 0 5px 0 0;
57
+ }
58
+ input[type="checkbox"] {
59
+ width: auto;
60
+ display: inline-block;
61
+ margin: 0;
62
+ }
63
+ }
50
64
  }
51
65
  input[type="text"], input[type="password"], input[type="email"] {
52
66
  display: block;
@@ -35,7 +35,7 @@ module Caboose
35
35
  if login_resp.error
36
36
  resp.error = login_resp.error
37
37
  else
38
- remember = params[:remember] && (params[:remember] == 1 || params[:remember] == "1")
38
+ remember = params[:remember] && (params[:remember] == 1 || params[:remember] == "1" || params[:remember] == 'on')
39
39
  login_user(login_resp.user, remember)
40
40
  resp.redirect = Caboose.plugin_hook('login_success', return_url, login_resp.user)
41
41
  resp.modal = false
@@ -14,7 +14,7 @@
14
14
  </style>
15
15
 
16
16
  <p>
17
- <a class="caboose-btn" href='#' onclick="$('#search_form').toggle(400, function() { modal.autosize(); });">Show/hide search form</a>
17
+ <a class="caboose-btn" href='#' onclick="$('#search_form').toggle(400, function() { modal.autosize(); });return false;">Show/hide search form</a>
18
18
  <a class="caboose-btn" href='/admin/invoices/new'>New Manual Invoice</a>
19
19
  <a class="caboose-btn" href='/admin/invoices/print-pending' target='_blank'>Print Pending Invoices</a>
20
20
  <a class="caboose-btn" href='/admin/invoices/summary-report' target='_blank'>Summary Report</a>
@@ -16,6 +16,10 @@
16
16
  <a href="/register?return_url=<%= @return_url %>">Create an account</a>
17
17
  <% end %>
18
18
  <a href="/login/forgot-password?return_url=<%= @return_url %>">Forgot your password?</a>
19
+ <div class="field cb">
20
+ <label for="remember">Remember me</label>
21
+ <input type="checkbox" checked="true" id="remember" name="remember" />
22
+ </div>
19
23
  </div>
20
24
  <input type="submit" class="btn" id="caboose-login-btn" value="Login" onclick="caboose_user_login();return false;" />
21
25
  </form>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.215'
2
+ VERSION = '0.9.216'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.215
4
+ version: 0.9.216
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry