admin_auth 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjM3YTVmNTcyZDkwYTgxNzFmMzg2MTQ2YWVkOGNhMmU5NDljOThkMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjBmOTg4Mjk2M2M2YmRkMTQ5OTQ3MDQ5MmJhNGM5ZmU0NzQxYjY3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2UxZDMxNjE4MDA4M2QyNTI0MzFhM2M3MjM1MDYwM2Q5YTgxMDgzMmU3NzFh
|
10
|
+
ZDU1YTk5ZjYyNzQ1NmU0NGQ0MjNkZThhMjY0ZWM3NDZjNzQ5YzA3ZjY4Yzc4
|
11
|
+
MGU4OTExZTE0ZDZmODUxOGU3YmZjZDYwYWI5YzZmOGI2NjdmMmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yzc1YmU5ZmZlODBlMzY0MWZhMmU3OGQzOTI1MWIxZmQwYWYxODJlOTc5NTRl
|
14
|
+
OTRlYjM3MWE2M2E2NTYzOWIwODA0NmQ2ZTY4OTFiNWE4ZTI1MTE2NzViNDc0
|
15
|
+
ZDdiNjc5MmMyZGM4ZjZiZmUyODI4NDBlOTRiOTE0ZTdhY2NiYzQ=
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.admin-auth
|
1
|
+
.admin-auth-edit{ style: 'text-align: center' }
|
2
2
|
%h2= 'Edit admin'
|
3
3
|
= form_for admin, url: admin_admin_path(locale, admin), method: :put do |f|
|
4
|
-
.section= f.password_field :password, placeholder: '********'
|
5
|
-
.section= f.password_field :password_confirmation, placeholder: '********'
|
6
|
-
.
|
4
|
+
.admin-auth-section= f.password_field :password, placeholder: '********'
|
5
|
+
.admin-auth-section= f.password_field :password_confirmation, placeholder: '********'
|
6
|
+
.admin-auth-actions= f.submit 'Save'
|
@@ -1,11 +1,13 @@
|
|
1
|
-
.admin-auth
|
2
|
-
%h2
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
.admin-auth-index{ style: 'width: 60%; margin: 0 auto' }
|
2
|
+
%h2
|
3
|
+
= 'Admins'
|
4
|
+
.admin-auth-actions{ style: 'font-weight: normal; font-size: 0.7em; float: right' }
|
5
|
+
= link_to 'Add an Admin', new_admin_admin_path(locale), class: 'button'
|
6
|
+
= link_to 'Change your password', edit_admin_admin_path(locale, current_admin), class: 'button'
|
7
|
+
= link_to 'Logout', admin_logout_path(locale), class: 'button'
|
6
8
|
|
7
9
|
- admins.each do |admin|
|
8
|
-
.admin
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
.admin-auth-admin{ style: 'margin-bottom: 1em; border-bottom: 1px dotted black;' }
|
11
|
+
= admin.email
|
12
|
+
= link_to 'Delete', admin_admin_path(locale, admin), method: :delete,
|
13
|
+
data: { confirm: 'Are you sure?' }, class: 'button', style: 'float: right'
|
@@ -1,7 +1,7 @@
|
|
1
|
-
.admin-auth
|
1
|
+
.admin-auth-new{ style: 'text-align: center' }
|
2
2
|
%h2= 'New admin'
|
3
3
|
= form_for admin, url: admin_admins_path(locale), method: :post do |f|
|
4
|
-
.section= f.text_field :email, placeholder: 'email@email.com'
|
5
|
-
.section= f.password_field :password, placeholder: '********'
|
6
|
-
.section= f.password_field :password_confirmation, placeholder: '********'
|
7
|
-
.
|
4
|
+
.admin-auth-section= f.text_field :email, placeholder: 'email@email.com'
|
5
|
+
.admin-auth-section= f.password_field :password, placeholder: '********'
|
6
|
+
.admin-auth-section= f.password_field :password_confirmation, placeholder: '********'
|
7
|
+
.admin-auth-actions= f.submit 'Save'
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.admin-auth
|
1
|
+
.admin-auth-login{ style: 'text-align: center' }
|
2
2
|
%h2= 'Admin login'
|
3
3
|
= form_for admin, url: admin_login_path(locale), method: :post do |f|
|
4
|
-
.section= f.text_field :email, autofocus: true, placeholder: 'email@email.com'
|
5
|
-
.section= f.password_field :password, placeholder: '********'
|
6
|
-
.
|
4
|
+
.admin-auth-section= f.text_field :email, autofocus: true, placeholder: 'email@email.com'
|
5
|
+
.admin-auth-section= f.password_field :password, placeholder: '********'
|
6
|
+
.admin-auth-actions= f.submit 'Login'
|
data/lib/admin_auth/version.rb
CHANGED