Skip to content

Commit db22b8e

Browse files
author
Roman Gsponer
committed
Fix form message & improve readme
1 parent f826c49 commit db22b8e

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

.github/license.png

14.4 KB
Loading

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,20 @@ With the integrated mailview field you can display requests allover the panel.
8181

8282
**Get a license**
8383

84-
There's two license available:
85-
86-
[Single site license](https://plain-solutions.net/?product=801346)
84+
[Klick here to obtain a license](https://plain-solutions.net/?product=801346)
8785

8886
[See also the other plugins](https://plain-solutions.net/)
8987

88+
**Validate your license**
89+
90+
*Important notes: If you’re working in a development environment, please activate the license on the public domain. Licenses are tied to the domain they are first activated on.*
91+
92+
To validate your license key click on this button:
93+
94+
<img src="./.github/license.png" width="200" />
95+
96+
...or go to *System* in the Panel and click on `plain/formblock` in the Plugins section. (Kirby > 5.0.0). You’ll be guided through the validation process from there.
97+
9098
> If you have trouble with your license, check [Troubleshooting](#troubleshooting) at the end of this documentation.
9199
92100
# How to use?
@@ -622,6 +630,13 @@ This example shows an error message on entering specific email adresses.
622630

623631
---
624632

633+
**Problem:** Uncaught TypeError (in dev tool console)
634+
635+
**Solution:** Some servers have problems resolving symbolic links. In this case, contact your hosting.
636+
If it is impossible to activate symbolic links, copy the content of `site/plugins/kirby-form-block-suite/assets` to `media/plugins/plain/formblock`.
637+
638+
---
639+
625640
**Problem:** Got an error by saving the form in panel:
626641

627642
![errorfields](./.github/error_fields.png)
@@ -640,17 +655,17 @@ This example shows an error message on entering specific email adresses.
640655
]
641656

642657
```
643-
> This will be ignored for Multilingual sites.
658+
> This will be ignored for multilingual sites.
644659
645660
---
646661

647662
**Problem:** Error to validate license key
648663

649664
**Solutions:**
650-
- If you haven't got a license yet? Get a [single site license](https://plain-solutions.net/?product=801346).
665+
- If you haven't got a license yet? Get a [license](https://plain-solutions.net/?product=801346).
651666
- Your server needs a connection to the license server: [https://plain-solutions.net](https://plain-solutions.net)
652667
- Your license key was already validated by another host: Send me [an email](mailto:[email protected]) **with your license key** to release the assigment.
653-
- Delete the license file `/site/config/.formblock_license` and try again.
668+
- Delete the license file `/site/config/.formblock_license` (if present) and try again.
654669

655670
---
656671

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "plain/kirby-form-block-suite",
33
"description": "Contactform based on Kirby blocks.",
44
"type": "kirby-plugin",
5-
"version": "5.1.0",
5+
"version": "5.1.1",
66
"license": "GPL-3.0-only",
77
"homepage": "https://plain-solutions.net/801346",
88
"authors": [

snippets/blocks/formtemplates/form_error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="formblock__message--error" data-form="form_error">
22

3-
<p class="formblock__message__text"><?= $form->errorMessage() ?></p>
3+
<div class="formblock__message__text"><?= $form->errorMessage() ?></div>
44

55
<?php if(!$form->isValid()): ?>
66

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

22
<div class="formblock__message--success" data-form="form_success">
3-
<p class="formblock__message__text"><?= $form->successMessage() ?></p>
3+
<div class="formblock__message__text"><?= $form->successMessage() ?></div>
44
</div>

utils/License.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getLicenseObject(string $locale = null): ?array
7979
}
8080
return [
8181
'title' => $this->title,
82-
'cta' => 'license.activate.label',
82+
'cta' => I18n::translate('license.activate.label'),
8383
'dialog' => $this->prefix . "/register"
8484
];
8585
}

0 commit comments

Comments
 (0)