- Token name and options are now passed through parse() method
This commit is contained in:
1 parent
77d05ae051
commit
aba66479be
12 files changed
+114
-150
No files matched your search
@@ -15,4 +15,20 @@ and will typically be rendered such as :
|
||||
<form class="ui-form" enctype="multipart/form-data" action="$action" method="$method">
|
||||
<input class="ui-hidden" type="hidden" name="picea-ui-form[$name]" value="{ random md5 hash }">
|
||||
</form>
|
||||
```
|
||||
|
||||
### Additional options
|
||||
|
||||
You can now remove the enctype attribute `no-enctype` or the CSRF token `no-csrf` using those option
|
||||
on the form tag :
|
||||
|
||||
```html
|
||||
{% ui:form.post.no-enctype.no-csrf "my.form" %} {% endform %}
|
||||
```
|
||||
|
||||
and would render as such :
|
||||
|
||||
```html
|
||||
<form class="ui-form" action="$action" method="$method">
|
||||
</form>
|
||||
```
|
||||
Reference in new issue
Block a user