cms-fortress 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/cms/fortress/session.css +13 -1
- data/app/controllers/cms/fortress/users/passwords_controller.rb +5 -0
- data/app/views/cms/fortress/users/passwords/edit.html.haml +19 -0
- data/app/views/cms/fortress/users/passwords/new.html.haml +14 -0
- data/app/views/cms/fortress/users/sessions/new.html.haml +18 -13
- data/cms-fortress.gemspec +2 -2
- data/lib/cms/fortress/routes/admin.rb +2 -1
- metadata +5 -2
data/Gemfile.lock
CHANGED
@@ -8,7 +8,19 @@ body {
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.form-signin {
|
11
|
-
|
11
|
+
padding: 19px 29px 29px;
|
12
|
+
margin: 3em auto 20px;
|
13
|
+
background-color: #fff;
|
14
|
+
border: 1px solid #e5e5e5;
|
15
|
+
-webkit-border-radius: 5px;
|
16
|
+
-moz-border-radius: 5px;
|
17
|
+
border-radius: 5px;
|
18
|
+
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
19
|
+
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
20
|
+
box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
21
|
+
}
|
22
|
+
|
23
|
+
.form-reset-password {
|
12
24
|
padding: 19px 29px 29px;
|
13
25
|
margin: 3em auto 20px;
|
14
26
|
background-color: #fff;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= render :partial => 'cms/fortress/shared/navbar'
|
2
|
+
.container
|
3
|
+
.row
|
4
|
+
.col-sm-6.col-sm-offset-3
|
5
|
+
|
6
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, role: 'form', class: 'form-reset-password' }) do |f|
|
7
|
+
%h3 Change your password
|
8
|
+
= devise_error_messages!
|
9
|
+
= f.hidden_field :reset_password_token
|
10
|
+
.form-group
|
11
|
+
= f.label :password, "New password"
|
12
|
+
= f.password_field :password, autofocus: true, autocomplete: "off", class: 'form-control'
|
13
|
+
.form-group
|
14
|
+
= f.label :password_confirmation, "Confirm new password"
|
15
|
+
= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control'
|
16
|
+
|
17
|
+
= f.submit "Change my password"
|
18
|
+
|
19
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= render :partial => 'cms/fortress/shared/navbar'
|
2
|
+
.container
|
3
|
+
.row
|
4
|
+
.col-sm-6.col-sm-offset-3
|
5
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, role: 'form', class: 'form-reset-password' }) do |f|
|
6
|
+
%h3 Forgot your password?
|
7
|
+
= devise_error_messages!
|
8
|
+
.form-group
|
9
|
+
= f.label :email
|
10
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
11
|
+
|
12
|
+
= f.submit "Send me reset password instructions", class: 'btn btn-default'
|
13
|
+
|
14
|
+
= render "devise/shared/links"
|
@@ -1,15 +1,20 @@
|
|
1
1
|
= render :partial => 'cms/fortress/shared/navbar'
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
.container
|
3
|
+
.row
|
4
|
+
.col-sm-6.col-sm-offset-3
|
5
|
+
= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:role => "form", :class => "form-signin" }) do |f|
|
6
|
+
%h3.form-signin-heading= t('cms.fortress.users.sessions.new.sign_in')
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, :autofocus => true, :placeholder => t('cms.fortress.users.sessions.new.email_address'), :class => "form-control"
|
10
|
+
.form-group
|
11
|
+
= f.label :password
|
12
|
+
= f.password_field :password, :placeholder => t('cms.fortress.users.sessions.new.password'), :class => "form-control"
|
8
13
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
- if devise_mapping.rememberable?
|
15
|
+
.checkbox
|
16
|
+
%label.checkbox
|
17
|
+
= f.check_box :remember_me
|
18
|
+
= t('cms.fortress.users.sessions.new.remember_me')
|
19
|
+
= f.submit t('cms.fortress.users.sessions.new.sign_in'), :class => "btn btn-primary btn-md"
|
20
|
+
= render "devise/shared/links"
|
data/cms-fortress.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "cms-fortress"
|
5
|
-
s.version = "1.3.
|
5
|
+
s.version = "1.3.3"
|
6
6
|
|
7
7
|
s.authors = ["Melvin Sembrano"]
|
8
|
-
s.date = "2014-09-
|
8
|
+
s.date = "2014-09-20"
|
9
9
|
s.description = "Comfortable Mexican Sofa (CMS) - User and role management extension"
|
10
10
|
s.email = "melvinsembrano@gmail.com"
|
11
11
|
s.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ]
|
@@ -9,7 +9,8 @@ class ActionDispatch::Routing::Mapper
|
|
9
9
|
:sign_in => 'login', :sign_out => 'logout'
|
10
10
|
},
|
11
11
|
:controllers => {
|
12
|
-
:sessions => 'cms/fortress/users/sessions'
|
12
|
+
:sessions => 'cms/fortress/users/sessions',
|
13
|
+
:passwords => 'cms/fortress/users/passwords'
|
13
14
|
}
|
14
15
|
|
15
16
|
scope path, module: 'cms/fortress' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cms-fortress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -292,6 +292,7 @@ files:
|
|
292
292
|
- app/assets/stylesheets/cms/fortress/themes/wide.css.scss
|
293
293
|
- app/controllers/cms/fortress/admin_controller.rb
|
294
294
|
- app/controllers/cms/fortress/roles_controller.rb
|
295
|
+
- app/controllers/cms/fortress/users/passwords_controller.rb
|
295
296
|
- app/controllers/cms/fortress/users/sessions_controller.rb
|
296
297
|
- app/controllers/cms/fortress/users_controller.rb
|
297
298
|
- app/helpers/cms/fortress/application_helper.rb
|
@@ -335,6 +336,8 @@ files:
|
|
335
336
|
- app/views/cms/fortress/users/edit.html.haml
|
336
337
|
- app/views/cms/fortress/users/index.html.haml
|
337
338
|
- app/views/cms/fortress/users/new.html.haml
|
339
|
+
- app/views/cms/fortress/users/passwords/edit.html.haml
|
340
|
+
- app/views/cms/fortress/users/passwords/new.html.haml
|
338
341
|
- app/views/cms/fortress/users/sessions/.DS_Store
|
339
342
|
- app/views/cms/fortress/users/sessions/new.html.haml
|
340
343
|
- app/views/comfy/admin/cms/pages/_form.html.haml
|