Input select helper

0 views
Skip to first unread message

moski

unread,
Dec 13, 2008, 3:33:06 AM12/13/08
to erlyweb
is it possible to use <% erlyweb_html:input("category_id", select,
Options, "volvo") %> to generate a select statement like this :
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>

By looking at erlyweb_html.et , i can see that option doesn't take a
value param
<%@ option(Name, Name) %>
<option selected><% Name %></option>

<%@ option(Name, _Val) %>
<option><% Name %></option>

I can create my own helper, but just wondering if it was created this
way for a reason ...

Yariv Sadan

unread,
Dec 24, 2008, 7:15:19 PM12/24/08
to erl...@googlegroups.com
Looks like that feature is missing from erlyweb_html. You can add it
and submit a patch or create your own helper. It's pretty trivial
either way.
Reply all
Reply to author
Forward
0 new messages