Skip to content

Commit

Permalink
Form Admin 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 20, 2020
1 parent 374cd72 commit 8e657f0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.5.0"></a>
# [1.5.0](https://github.com/flextype-plugins/form-admin/compare/v1.4.0...v1.5.0) (2020-12-20)

### Features

* **core** update code base for new Flextype 0.9.13

<a name="1.4.0"></a>
# [1.4.0](https://github.com/flextype-plugins/form-admin/compare/v1.3.0...v1.4.0) (2020-12-07)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">Form Admin Plugin for <a href="http://flextype.org/">Flextype</a></h1>

<p align="center">
<a href="https://github.com/flextype-plugins/form-admin/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/form-admin.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/form-admin"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/form-admin"><img src="https://img.shields.io/github/downloads/flextype-plugins/form-admin/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.12-green.svg?color=black" alt="Flextype"></a> <a href="https://crowdin.com/project/flextype-plugin-form-admin"><img src="https://d322cqt584bo4o.cloudfront.net/flextype-plugin-form-admin/localized.svg?color=black" alt="Crowdin"></a> <a href="https://scrutinizer-ci.com/g/flextype-plugins/form-admin?branch=dev&color=black"><img src="https://img.shields.io/scrutinizer/g/flextype-plugins/form-admin.svg?branch=dev&color=black" alt="Quality Score"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&colorB=728ADA&label=Discord%20Chat" alt="Discord"></a>
<a href="https://github.com/flextype-plugins/form-admin/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/form-admin.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/form-admin"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/form-admin"><img src="https://img.shields.io/github/downloads/flextype-plugins/form-admin/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.13-green.svg?color=black" alt="Flextype"></a> <a href="https://crowdin.com/project/flextype-plugin-form-admin"><img src="https://d322cqt584bo4o.cloudfront.net/flextype-plugin-form-admin/localized.svg?color=black" alt="Crowdin"></a> <a href="https://scrutinizer-ci.com/g/flextype-plugins/form-admin?branch=dev&color=black"><img src="https://img.shields.io/scrutinizer/g/flextype-plugins/form-admin.svg?branch=dev&color=black" alt="Quality Score"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&colorB=728ADA&label=Discord%20Chat" alt="Discord"></a>
</p>

Form Admin Plugin to manage user forms in Flextype Admin Panel.
Expand All @@ -12,7 +12,7 @@ The following dependencies need to be installed for Form Admin Plugin.

| Item | Version | Download |
|---|---|---|
| [flextype](https://github.com/flextype/flextype) | 0.9.12 | [download](https://github.com/flextype/flextype/releases) |
| [flextype](https://github.com/flextype/flextype) | 0.9.13 | [download](https://github.com/flextype/flextype/releases) |
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
| [form](https://github.com/flextype-plugins/form) | >=1.0.0 | [download](https://github.com/flextype-plugins/form/releases) |
| [admin](https://github.com/flextype-plugins/admin) | >=1.0.0 | [download](https://github.com/flextype-plugins/admin/releases) |
Expand Down
4 changes: 2 additions & 2 deletions app/Controllers/FieldsetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function edit($request, $response)
[
'menu_item' => 'fieldsets',
'id' => $request->getQueryParams()['id'],
'data' => flextype('yaml')->encode(flextype('fieldsets')->fetchSingle($request->getQueryParams()['id'])),
'data' => flextype('serializers')->yaml()->encode(flextype('fieldsets')->fetchSingle($request->getQueryParams()['id'])),
'links' => [
'fieldsets' => [
'link' => flextype('router')->pathFor('admin.fieldsets.index'),
Expand Down Expand Up @@ -147,7 +147,7 @@ public function editProcess($request, $response)
$id = $request->getParsedBody()['id'];
$data = $request->getParsedBody()['data'];

if (flextype('fieldsets')->update($request->getParsedBody()['id'], flextype('yaml')->decode($data))) {
if (flextype('fieldsets')->update($request->getParsedBody()['id'], flextype('serializers')->yaml()->decode($data))) {
flextype('flash')->addMessage('success', __('form_admin_message_fieldset_saved'));
} else {
flextype('flash')->addMessage('error', __('form_admin_message_fieldset_was_not_saved'));
Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Form Admin
version: 1.4.0
version: 1.5.0
description: Form Admin Plugin to manage user forms in Flextype Admin Panel.
icon: fas fa-check-circle
author:
Expand All @@ -11,7 +11,7 @@ bugs: https://github.com/flextype-plugins/form-admin/issues
license: MIT

dependencies:
flextype: 0.9.12
flextype: 0.9.13
twig: '>=1.0.0'
admin: '>=1.0.0'
accounts-admin: '>=1.0.0'
Expand Down

0 comments on commit 8e657f0

Please sign in to comment.