Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Label issues with array form #83

Open
simplenotezy opened this issue Dec 25, 2015 · 2 comments
Open

Label issues with array form #83

simplenotezy opened this issue Dec 25, 2015 · 2 comments

Comments

@simplenotezy
Copy link

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.

@adamwathan
Copy link
Owner

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

@simplenotezy
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants