Skip to content

Commit

Permalink
Accounts 1.9.0
Browse files Browse the repository at this point in the history
### Features

* **core** update code base for new Twig 2.0.0
* **core** update code base for new Icon 2.0.0
  • Loading branch information
Awilum committed Jan 7, 2021
1 parent bc5016e commit 8ea6d88
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="1.9.0"></a>
# [1.9.0](https://github.com/flextype-plugins/accounts) (2021-01-07)

### Features

* **core** update code base for new Twig 2.0.0
* **core** update code base for new Icon 2.0.0

<a name="1.8.0"></a>
# [1.8.0](https://github.com/flextype-plugins/accounts) (2021-01-03)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The following dependencies need to be downloaded and installed for Accounts Plug
|---|---|---|
| [flextype](https://github.com/flextype/flextype) | 0.9.15 | [download](https://github.com/flextype/flextype/releases) |
| [site](https://github.com/flextype-plugins/site) | >=1.0.0 | [download](https://github.com/flextype-plugins/site/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=2.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
| [acl](https://github.com/flextype-plugins/acl) | >=1.0.0 | [download](https://github.com/flextype-plugins/acl/releases) |
| [phpmailer](https://github.com/flextype-plugins/phpmailer) | >=1.0.0 | [download](https://github.com/flextype-plugins/phpmailer/releases) |

Expand Down
4 changes: 3 additions & 1 deletion fieldsets/accounts-login.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
title: Login
default_field: title
icon: fas fa-user
icon:
name: user
set: "fontawesome|solid"
size: 4/12
hide: true
form:
Expand Down
4 changes: 3 additions & 1 deletion fieldsets/accounts-profile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
title: Profile
default_field: title
icon: fas fa-user
icon:
name: user
set: "fontawesome|solid"
hide: true
size: 4/12
form:
Expand Down
4 changes: 3 additions & 1 deletion fieldsets/accounts-registration.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
title: Registration
default_field: title
icon: fas fa-user
icon:
name: user
set: "fontawesome|solid"
size: 4/12
hide: true
form:
Expand Down
4 changes: 3 additions & 1 deletion fieldsets/accounts-reset-password.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
title: Reset Password
default_field: title
icon: fas fa-user
icon:
name: user
set: "fontawesome|solid"
size: 4/12
hide: true
form:
Expand Down
6 changes: 4 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Accounts
version: 1.8.0
description: Accounts plugins for Flextype.
icon: fas fa-users
icon:
name: user
set: "fontawesome|solid"
author:
name: Sergey Romanenko
email: [email protected]
Expand All @@ -14,7 +16,7 @@ license: MIT
dependencies:
flextype: 0.9.15
site: '>=1.0.0'
twig: '>=1.0.0'
twig: '>=2.0.0'
form: '>=1.0.0'
jquery: '>=1.0.0'
acl: '>=1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>{{ __('accounts') }}</h3>
<tbody>
{% for account in accounts %}
<tr>
<td><a href="{{ path_for('accounts.profile', {'email': account.email}) }}">{{ account.email }}</a></td>
<td><a href="{{ urlFor('accounts.profile', {'email': account.email}) }}">{{ account.email }}</a></td>
<td>{{ account.registered_at }}</td>
</tr>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ <h3>{{ __('accounts_profile') }}</h3>
{% endfor %}
</table>
{% if flextype.acl.getUserLoggedInEmail() == profile.email %}
<a href="{{ path_for('accounts.profileEdit', {'email': profile.email}) }}">{{ __('accounts_profile_edit') }}</a>
<a href="{{ urlFor('accounts.profileEdit', {'email': profile.email}) }}">{{ __('accounts_profile_edit') }}</a>
<a href="javascript:;" onclick="event.preventDefault(); document.getElementById('accountsLogoutProcess').submit();">{{ __('accounts_logout') }}</a>
<form id="accountsLogoutProcess" action="{{ path_for('accounts.logoutProcess') }}" method="POST" style="display: none;">
<form id="accountsLogoutProcess" action="{{ urlFor('accounts.logoutProcess') }}" method="POST" style="display: none;">
{{ csrf() }}
</form>
{% endif %}
Expand Down

0 comments on commit 8ea6d88

Please sign in to comment.