Skip to content

Commit

Permalink
Form Admin 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jan 7, 2021
1 parent 83b119c commit 46f8a45
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 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.8.1"></a>
# [1.8.1](https://github.com/flextype-plugins/form-admin/compare/v1.8.0...v1.8.1) (2021-01-07)

### Bug Fixes

* **FormAdminFieldsetsController** fix add process method and template.

<a name="1.8.0"></a>
# [1.8.0](https://github.com/flextype-plugins/form-admin/compare/v1.7.0...v1.8.0) (2021-01-07)

Expand Down
3 changes: 2 additions & 1 deletion app/Controllers/FormAdminFieldsetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public function addProcess($request, $response)
$data = [
'title' => $post_data['title'],
'default_field' => 'title',
'icon' => $post_data['icon'],
'icon' => ['name' => $post_data['icon_name'],
'set' => $post_data['icon_set']],
'hide' => (bool) $post_data['hide'],
'form' => [
'tabs' => [
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Form Admin
version: 1.8.0
version: 1.8.1
description: Form Admin Plugin to manage user forms in Flextype Admin Panel.
icon:
name: check-circle
Expand Down
13 changes: 10 additions & 3 deletions templates/extends/fieldsets/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@
<div class="flex row">
<div class="col w-full lg:w-6/12">
<div class="form-group">
<label for="icon" class="form-control-title">{{ tr('admin_icon') }}</label>
<input type="text" id="fieldsetIcon" name="icon" value="far fa-file-alt" class="form-control" required="required" data-parsley-minlength="1" data-parsley-error-message="{{ tr('form_admin_error_icon_empty_input') }}" data-parsley-required="true">
<small>{{ tr('form_admin_help_text_for_fieldsets_icon', {':link': '<a href="https://fontawesome.com/icons?d=gallery&m=free" target="_blank">fontawesome</a>'})|raw }}</small>
<label for="icon" class="form-control-title">{{ tr('admin_icon_name') }}</label>
<input type="text" id="fieldsetIconName" name="icon_name" value="file-alt" class="form-control" required="required" data-parsley-minlength="1" data-parsley-error-message="{{ tr('form_admin_error_icon_empty_input') }}" data-parsley-required="true">
</div>
</div>
<div class="col w-full lg:w-6/12">
<div class="form-group">
<label for="icon" class="form-control-title">{{ tr('admin_icon_set') }}</label>
<input type="text" id="fieldsetIconSet" name="icon_set" value="fontawesome|solid" class="form-control" required="required" data-parsley-minlength="1" data-parsley-error-message="{{ tr('form_admin_error_icon_empty_input') }}" data-parsley-required="true">
</div>
</div>
</div>
<div class="flex row">
<div class="col w-full lg:w-6/12">
<div class="form-group">
<label for="icon" class="form-control-title">{{ tr('form_admin_hide') }}</label>
Expand Down

0 comments on commit 46f8a45

Please sign in to comment.