jinda_adminlte 0.7.0.3 → 0.7.0.4
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 +4 -4
- data/lib/generators/jinda_adminlte/install_generator.rb +4 -0
- data/lib/generators/jinda_adminlte/templates/app/views/identities/new.html.haml +45 -0
- data/lib/generators/jinda_adminlte/templates/app/views/sessions/new.html.haml +35 -0
- data/lib/jinda_adminlte/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 298d83ab002fa8f10060238e3b8455c3443729cc56159319437f3076d3a4aa48
|
4
|
+
data.tar.gz: bda159496cbd1abda18dbe1d2bd6db23d8140af64db7ad5681513a52a527e50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3045c52b8174302a417dcdc66d333811be9b7e8d2085436b03ec8252fc29073e603590d681215387eaf5b073b7826e46847ecb3f3cb459480015e3c1ffb4d89b
|
7
|
+
data.tar.gz: b0fe55b94c61d6abb21b3943b5e1e31f77b86121c1789d81ebd7bfe470637bc1cb5bf6b682ed55ffa15dfbaf401f67240d3c31792333e707fbd3ca9ddab820e5
|
@@ -9,11 +9,15 @@ module Jinda_adminlte
|
|
9
9
|
def setup_app
|
10
10
|
inside("app/views/layouts") { run "mv application.haml application.haml.bak" }
|
11
11
|
inside("app/views/layouts") { run "mv lte lte.bak" }
|
12
|
+
inside("app/views/identities") { run "mv new.html.haml new-bak.html.haml" }
|
13
|
+
inside("app/views/sessions") { run "mv new.html.haml new-bak.html.haml" }
|
12
14
|
inside("app/assets") { run "mv jinda_assets ../../tmp/cache" }
|
13
15
|
inside("app/assets") { run "mv javascripts ../../tmp/cache" }
|
14
16
|
inside("app/assets") { run "mv stylesheets ../../tmp/cache" }
|
15
17
|
directory "app/views/adminltes"
|
16
18
|
directory "app/views/layouts/lte"
|
19
|
+
directory "app/views/identities"
|
20
|
+
directory "app/views/sessions"
|
17
21
|
|
18
22
|
end
|
19
23
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
.container
|
2
|
+
.signup-form
|
3
|
+
- @title= 'Sign Up'
|
4
|
+
= form_tag "/auth/identity/register", {'data-ajax'=>'false'} do
|
5
|
+
%h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign Up
|
6
|
+
%p.hint-text Sign Up with your social media account or Username
|
7
|
+
.social-btn.text-center
|
8
|
+
%a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
|
9
|
+
%i.fa.fa-facebook
|
10
|
+
Facebook
|
11
|
+
%a.btn.btn-info.btn-lg{:href => "#"}
|
12
|
+
%i.fa.fa-twitter
|
13
|
+
Twitter
|
14
|
+
%a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
|
15
|
+
%i.fa.fa-google
|
16
|
+
Google
|
17
|
+
.or-seperator
|
18
|
+
%b or
|
19
|
+
.sign_in
|
20
|
+
.label-warning
|
21
|
+
= flash[:alert]
|
22
|
+
- if @identity && @identity.errors.any?
|
23
|
+
.error_messages
|
24
|
+
%h3
|
25
|
+
= pluralize(@identity.errors.count, "error")
|
26
|
+
prohibited this account from being saved:
|
27
|
+
%ul
|
28
|
+
- @identity.errors.full_messages.each do |msg|
|
29
|
+
%li= msg
|
30
|
+
.form-group.form-control
|
31
|
+
= label_tag :code, 'Username'
|
32
|
+
= text_field_tag :code, @identity.try(:code)
|
33
|
+
.form-group.form-control
|
34
|
+
= label_tag :email
|
35
|
+
= text_field_tag :email, @identity.try(:email)
|
36
|
+
.form-group.form-control
|
37
|
+
= label_tag :password, 'Password'
|
38
|
+
= password_field_tag :password
|
39
|
+
.form-group.form-control
|
40
|
+
= label_tag :password_confirmation, 'Confirm password'
|
41
|
+
= password_field_tag :password_confirmation
|
42
|
+
%button.btn.btn-success.btn-block.actions{:type => "submit"}
|
43
|
+
%i.fas.fa-sign-up-alt
|
44
|
+
Sign Up
|
45
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.container
|
2
|
+
.signup-form
|
3
|
+
= form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do
|
4
|
+
%h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign in
|
5
|
+
%p.hint-text Sign in with your social media account or Username
|
6
|
+
.social-btn.text-center
|
7
|
+
%a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
|
8
|
+
%i.fa.fa-facebook
|
9
|
+
Facebook
|
10
|
+
%a.btn.btn-info.btn-lg{:href => "#"}
|
11
|
+
%i.fa.fa-twitter
|
12
|
+
Twitter
|
13
|
+
%a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
|
14
|
+
%i.fa.fa-google
|
15
|
+
Google
|
16
|
+
.or-seperator
|
17
|
+
%b or
|
18
|
+
.sign_in
|
19
|
+
.label-warning
|
20
|
+
= flash[:alert]
|
21
|
+
.form-group.form-control
|
22
|
+
= label_tag :auth_key, "User name"
|
23
|
+
= text_field_tag :auth_key
|
24
|
+
.form-group.form-control
|
25
|
+
= label_tag :password, "Password"
|
26
|
+
= password_field_tag :password
|
27
|
+
.form-group
|
28
|
+
= label_tag :remember_me
|
29
|
+
= check_box_tag :remember_me, 1, params.permit[:remember_me]
|
30
|
+
%button.btn.btn-success.btn-block.actions{:type => "submit"}
|
31
|
+
%i.fas.fa-sign-in-alt
|
32
|
+
Sign in
|
33
|
+
= link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'}
|
34
|
+
%hr/
|
35
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinda_adminlte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -343,12 +343,14 @@ files:
|
|
343
343
|
- lib/generators/jinda_adminlte/templates/app/views/articles/show.html.haml
|
344
344
|
- lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/edit_article.html.erb
|
345
345
|
- lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/xedit_article.html.erb
|
346
|
+
- lib/generators/jinda_adminlte/templates/app/views/identities/new.html.haml
|
346
347
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_footer.haml
|
347
348
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_header.haml
|
348
349
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu.haml
|
349
350
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu_mm.haml
|
350
351
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_rightbar.haml
|
351
352
|
- lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_sidebar.haml
|
353
|
+
- lib/generators/jinda_adminlte/templates/app/views/sessions/new.html.haml
|
352
354
|
- lib/generators/jinda_adminlte/templates/application.haml
|
353
355
|
- lib/generators/jinda_adminlte/templates/application.js
|
354
356
|
- lib/generators/jinda_adminlte/templates/application.scss
|