Skip to content

Commit 72671fc

Browse files
committed
Accounts Admin 1.9.0
1 parent 5a4382b commit 72671fc

11 files changed

Lines changed: 41 additions & 21 deletions

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<a name="1.9.0"></a>
2+
# [1.9.0](https://github.com/flextype-plugins/accounts-admin) (2021-01-07)
3+
4+
### Features
5+
6+
* **core** update code base for new Twig 2.0.0
7+
* **core** update code base for new Icon 2.0.0
8+
19
<a name="1.8.0"></a>
210
# [1.8.0](https://github.com/flextype-plugins/accounts-admin) (2021-01-03)
311

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following dependencies need to be installed for Accounts Admin Plugin.
1313
| Item | Version | Download |
1414
|---|---|---|
1515
| [flextype](https://github.com/flextype/flextype) | 0.9.15 | [download](https://github.com/flextype/flextype/releases) |
16-
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
16+
| [twig](https://github.com/flextype-plugins/twig) | >=2.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
1717
| [form](https://github.com/flextype-plugins/form) | >=1.0.0 | [download](https://github.com/flextype-plugins/form/releases) |
1818
| [form-admin](https://github.com/flextype-plugins/form-admin) | >=1.0.0 | [download](https://github.com/flextype-plugins/form-admin/releases) |
1919
| [admin](https://github.com/flextype-plugins/admin) | >=1.0.0 | [download](https://github.com/flextype-plugins/admin/releases) |

dependencies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919

2020
// Add Admin Navigation
21-
flextype('registry')->set('plugins.admin.settings.navigation.extends.accounts', ['title' => __('accounts_admin_accounts'),'icon' => 'fas fa-users', 'link' => flextype('router')->pathFor('admin.accounts.index')]);
21+
flextype('registry')->set('plugins.admin.settings.navigation.extends.accounts', ['title' => __('accounts_admin_accounts'), 'icon' => ['name' => 'users', 'set' => 'fontawesome|solid'], 'link' => flextype('router')->pathFor('admin.accounts.index')]);

fieldsets/accounts-admin-add.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: Create New Account
22
default_field: title
3-
icon: fas fa-user
3+
icon:
4+
name: user
5+
set: "fontawesome|solid"
46
size: 4/12
57
hide: true
68
form:

fieldsets/accounts-admin-edit.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: 'Edit Account'
22
default_field: title
3-
icon: fas fa-user
3+
icon:
4+
name: user
5+
set: "fontawesome|solid"
46
size: 4/12
57
hide: true
68
form:

fieldsets/accounts-admin-login.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: Login
22
default_field: title
3-
icon: fas fa-user
3+
icon:
4+
name: user
5+
set: "fontawesome|solid"
46
size: 4/12
57
hide: true
68
form:

fieldsets/accounts-admin-registration.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: Registration
22
default_field: title
3-
icon: fas fa-user
3+
icon:
4+
name: user
5+
set: "fontawesome|solid"
46
size: 4/12
57
hide: true
68
form:

fieldsets/accounts-admin-reset-password.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: Reset Password
22
default_field: title
3-
icon: fas fa-user
3+
icon:
4+
name: user
5+
set: "fontawesome|solid"
46
size: 4/12
57
hide: true
68
form:

plugin.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Accounts Admin
2-
version: 1.8.0
2+
version: 1.9.0
33
description: Accounts Admin Plugin to manage users accounts in Flextype Admin Panel.
4-
icon: fas fa-users
4+
icon:
5+
name: users
6+
set: "fontawesome|solid"
57
author:
68
name: Sergey Romanenko
79
email: support@flextype.org
@@ -12,7 +14,7 @@ license: MIT
1214

1315
dependencies:
1416
flextype: 0.9.15
15-
twig: '>=1.0.0'
17+
twig: '>=2.0.0'
1618
admin: '>=1.0.0'
1719
form: '>=1.0.0'
1820
form-admin: '>=1.0.0'

templates/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
{% for account in accounts_list %}
2323
<tr>
2424
<td class="w-1 text-center">
25-
<i class="icon">{{ icon('fas fa-user') }}</i>
25+
<i class="icon">{{ icon('user', 'fontawesome|solid') }}</i>
2626
</td>
2727
<td class="pl-0">
28-
<a href="{{ path_for('admin.accounts.edit') }}?email={{ account.email }}">{{ account.email }}</a>
28+
<a href="{{ urlFor('admin.accounts.edit') }}?email={{ account.email }}">{{ account.email }}</a>
2929
</td>
3030
<td>
3131
{{ account.roles }}
@@ -35,18 +35,18 @@
3535
</td>
3636
<td class="text-right">
3737
<button type="button" class="js-dropdown-btn" data-dropdown="dropdown-{{ account.email }}">
38-
<i class="icon">{{ icon('fas fa-ellipsis-h') }}</i>
38+
<i class="icon">{{ icon('ellipsis-h', 'fontawesome|solid') }}</i>
3939
</button>
4040
<div id="dropdown-{{ account.email }}" class="dropdown">
41-
<a class="dropdown__item" href="{{ path_for('admin.accounts.edit') }}?email={{ account.email }}">
42-
<i class="icon icon--white mr-3">{{ icon('fas fa-edit') }}</i>
41+
<a class="dropdown__item" href="{{ urlFor('admin.accounts.edit') }}?email={{ account.email }}">
42+
<i class="icon icon--white mr-3">{{ icon('edit', 'fontawesome|solid') }}</i>
4343
{{ tr('accounts_admin_edit') }}</a>
4444
{% if flextype.acl.getUserLoggedInEmail() != account.email %}
4545
<div class="dropdown__divider"></div>
4646
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault(); deleteAccount('{{ account.email }}', {{ loop.index0 }});">
47-
<i class="icon icon--white mr-3">{{ icon('fas fa-trash-alt') }}</i>
47+
<i class="icon icon--white mr-3">{{ icon('trash-alt', 'fontawesome|solid') }}</i>
4848
{{ tr('accounts_admin_delete') }}</a>
49-
<form id="delete-account-email-{{ account.email }}" action="{{ path_for('admin.accounts.deleteProcess') }}" method="POST" style="display: none;">
49+
<form id="delete-account-email-{{ account.email }}" action="{{ urlFor('admin.accounts.deleteProcess') }}" method="POST" style="display: none;">
5050
{{ csrf() }}
5151
<input type="hidden" name="account-email" value="{{ account.email }}">
5252
</form>
@@ -60,7 +60,7 @@
6060
{% else %}
6161
<div class="text-center flex justify-center items-center h-full">
6262
<div>
63-
<i class="icon icon--4xl">{{ icon('fas fa-users') }}</i>
63+
<i class="icon icon--4xl">{{ icon('users', 'fontawesome|solid') }}</i>
6464
<h3 class="text-2xl pt-4 pb-8">{{ tr('accounts_admin_you_have_no_acccounts') }}</h3>
6565
</div>
6666
</div>

0 commit comments

Comments
 (0)