bootforms icon indicating copy to clipboard operation
bootforms copied to clipboard

Label issues with array form

Open simplenotezy opened this issue 9 years ago • 2 comments

There are issues if you do this:

{!! BootForm::text('Name', 'tickettype[][name]') !!}

It generates the following:

<fieldset class="form-group">
    <label class="control-label" for="tickettype[][name]">Name</label>
    <input type="text" name="tickettype[][name]" id="tickettype[][name]" class="form-control">
</fieldset>

But that is invalid when you have multiple. Id and labels does not work.

simplenotezy avatar Dec 25 '15 18:12 simplenotezy

Can you start a PR with a failing test? Happy to look at it then, just a bit busy at the moment! Cheers.

adamwathan avatar Jan 04 '16 12:01 adamwathan

Hm, well I guess the issue is that id, and label should not be added, if the name is array type

simplenotezy avatar Jan 04 '16 14:01 simplenotezy