bootforms
bootforms copied to clipboard
Label issues with array form
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.
Can you start a PR with a failing test? Happy to look at it then, just a bit busy at the moment! Cheers.
Hm, well I guess the issue is that id, and label should not be added, if the name is array type