Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add options in {{select_box}} helper #28

Open
paritoshbotre opened this issue Dec 18, 2015 · 1 comment
Open

Unable to add options in {{select_box}} helper #28

paritoshbotre opened this issue Dec 18, 2015 · 1 comment

Comments

@paritoshbotre
Copy link

How to add options to select_box helper, if {{select_box "payment_mode" optionValues='Cheque Cash'}} it will generate following html:-

<select class="form-control" name="payment_mode">
  <option value="C">C</option>
  <option value="h">H</option>
  <option value="e">E</option> 
  <option value="q">Q</option>
  <option value="u">U</option>
  <option value="e">E</option>
  <option value=" "></option>
  <option value="C">C</option>
  <option value="a">A</option>
  <option value="s">S</option>
  <option value="h">H</option>
</select>

when optionValues passed like an array {{select_box 'payment_mode' optionValues=['Cheque Cash'] }}, it raises an Exception

@paritoshbotre
Copy link
Author

Sent PR, please verify.

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

No branches or pull requests

1 participant