Tortue Torche
3688b0e433
Form method of hidden input '_method' is preserved on next request
...
E.G. When you submitted data across a form with a 'PATCH' method and then in a second submit you use a form with a 'DELETE' method, the FormBuilder::getValueAttribute() method use the previous value of the hidden input '_method'.
So the value is replaced by 'PATCH' instead of the 'DELETE' value.
2017-08-09 14:23:33 +02:00
mlantz
37672ebf2f
Merge branch '5.3-fix' into 5.4
2017-05-20 15:10:43 -04:00
mlantz
a4bf883e9b
Merge branch '5.2' into 5.3-fix
2017-05-20 15:05:08 -04:00
mlantz
28df2ea235
Removing the double escape
2017-05-20 15:04:52 -04:00
mlantz
3dcf2185a1
Carry over from 5.1 and test update for new boolean attributes
2017-05-20 14:58:35 -04:00
Matt Lantz
9931c3e7de
Merge pull request #247 from vlakoff/dynamic_calls
...
Check if component/macro exists instead of relying on exceptions
2017-05-20 14:18:53 -04:00
Matt Lantz
9239b8678f
Merge pull request #334 from martinjoiner/5.4
...
FormBuilder.php: Added search() method
2017-05-20 13:46:58 -04:00
mlantz
115141fe55
Fixes issue #339
2017-05-19 13:45:41 -04:00
mlantz
4aae8fb438
Fixes for #337 and #259
2017-05-19 04:15:59 -04:00
mlantz
c0dc174809
Fix for #337
2017-05-19 03:41:28 -04:00
mlantz
4b493269d5
Issues #336 and #329
2017-05-18 01:28:33 -04:00
Martin Joiner
2e56b52dca
FormBuilder.php: Added search() method
...
If `email`, `tel` and `number` are all included, shouldn't we let `search` join the party too
2017-05-17 14:53:54 +01:00
mlantz
023efce5fd
Fixes issue with collections vs arrays
2017-05-15 05:38:20 -04:00
mlantz
2806986b41
Fixes issue #325
...
Thanks to @aygee for pointing out some missing parts
2017-05-15 00:00:52 -04:00
mlantz
c3b49e0a56
Style correction
2017-05-14 18:55:10 -04:00
mlantz
606f17f176
Cleaner string
2017-05-14 18:45:27 -04:00
mlantz
8e7ea3f8d2
Merge branch '5.4-select-option-attributes' of https://github.com/pjona/html into pjona-5.4-select-option-attributes
2017-05-14 18:27:09 -04:00
mlantz
0c31cfb6ee
Merge branch '5.4' of https://github.com/LaravelCollective/html into 5.4
2017-05-14 18:07:57 -04:00
Matt Lantz
321be7acf0
Merge pull request #314 from aygee/mutate-related-models
...
Mutating form attributes in related models
2017-05-14 18:07:43 -04:00
mlantz
28ba758afc
Fixes issue #307
2017-05-14 17:25:53 -04:00
mlantz
bc097b24e2
Reversion to the original state with the e method
2017-04-26 11:51:23 -04:00
mlantz
b583044d36
Dropping e on values that should remain literal
2017-04-26 11:33:01 -04:00
mlantz
c30acd6786
Merge remote-tracking branch 'LaravelCollective/5.4' into fix_escape
...
# Conflicts:
# src/HtmlServiceProvider.php
2017-04-26 01:25:07 -04:00
mlantz
856e1e6d6b
Fixes for escape issue
2017-04-20 00:02:24 -04:00
Adrian Gunawan
752951ee5f
Call get model value attribute recursively to allow mutating form attribute in related models
2017-04-19 16:42:00 +10:00
darthrevan13
4f38d5c0fd
Merge branch '5.3' into 5.3
2017-02-19 13:34:33 +02:00
Marek Skiba
f113066717
Allow select options to have attributes
2017-01-28 14:44:59 +01:00
Shawn Tunney
23223c6e28
Fix another getToken call
2017-01-23 10:09:39 -05:00
Stefan Roehle
92f3ba71c5
updates for Laravel 5.4
2017-01-05 18:52:43 +01:00
Stefan Printezis
6d1d46a258
Created a function for correctly converting characters to entities.
2016-11-10 23:58:02 +01:00
Stefan Printezis
c1a105975b
Values are encoded consistently by the formbuilder and the htmlbuilder
2016-10-28 12:37:15 +02:00
vlakoff
89a9f40956
Check if component/macro exists instead of relying on exceptions
2016-10-16 09:45:18 +02:00
darthrevan13
410943c5e1
changed select placeholder to major browser standards
...
http://stackoverflow.com/a/8442831/1722248
2016-09-27 19:52:22 +03:00
Victor Isadov
3f474b0bec
Fix style
2016-08-13 13:25:29 +03:00
Victor Isadov
e152172962
Make request protected
2016-08-13 13:10:38 +03:00
Victor Isadov
c47d34b7de
Test checkbox array
2016-08-13 12:35:26 +03:00
Victor Isadov
16264f1c8d
Add tests and checkbox handling
2016-08-13 12:26:27 +03:00
Victor Isadov
45fe4e7988
Add Request support
2016-08-13 11:57:01 +03:00
Matt Lantz
bcf0697d7d
Merge pull request #191 from aygee/get-form-value-related-model
...
Getting form value from related model
2016-06-19 01:01:55 -04:00
Matt Lantz
d79805ade4
Merge pull request #193 from JamesAlday/5.2-link-fix
...
Make escaping of labels for HTML and mailto links optional
2016-06-10 15:16:34 -04:00
James Alday
24ee0aadc0
StyleCI fixes - remove empty line after class declaration
2016-06-10 15:12:35 -04:00
Matt Lantz
f6d9a66624
Merge pull request #174 from StefanPrintezis/form_label_html
...
Html escaping is now optional for labels
2016-06-10 11:26:30 -04:00
Adrian Gunawan
a3d42da280
Transform the field name when getting the form value from model
2016-05-14 20:50:52 +10:00
Stefan Printezis
d65deb4e77
Html escaping is now optional for labels
2016-03-23 13:13:50 +01:00
Rafael Renan Pacheco
df8acc24bb
Avoid using session to build form
2016-02-01 09:32:17 -02:00
Antonio Carlos Ribeiro
0e8e2dbc67
Remove uneeded use.
2016-01-26 21:39:03 -02:00
Adam Engebretson
c88b2d59a5
Revert "[5.2] Use toArray() for Model Object Value"
...
This reverts commit e7db3dd11a .
2016-01-16 10:54:49 -06:00
Dennis Oderwald
e7db3dd11a
[5.2] Use toArray() for Model Object Value
2015-12-23 22:28:01 +01:00
lanort
ef11b7dd2f
Update FormBuilder.php: fix to get selected value with 0 as index
...
`getSelectedValue` returns always true if it receives a value (from an select input) of 0. To avoid that the strict parameter has to be set to true.
This is because the following code does not work as might expected:
<?php
// check if 0 is in the array [1 => "c16"]
var_dump(in_array(0, [1=>"c16"])); // returns true
2015-12-14 23:33:12 +01:00
Adam Engebretson
4c9b44a817
Extracting Components to Trait & Adding to Forms
...
Signed-off-by: Adam Engebretson <adam.engebretson@bridgeconx.com >
2015-12-02 02:15:22 -06:00