Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- I'm trying to change out these text boxes for HTML drop down lists, but can't find any examples. I'd like to add a lot of CSS and more HTML, maybe even add some UI widgets if things don't turn out all that great.
- Doing it this way (in prolog) hasn't make much sense to me, and not sure how far it's going to take me. This doesn't seem very flexible. Am I going about this the right way or should I be doing something else?
- Thoughts?
- */
- page_content(_Request) -->
- html(
- [
- form([action='/search', method='POST'], [
- p([], [
- label([for=model], 'Model '),
- input([name=model, type=textarea])
- ]),
- p([], [
- label([for=major], 'Major '),
- input([name=major, type=textarea])
- ]),
- p([], [
- label([for=minor], 'Minor '),
- input([name=minor, type=textarea])
- ]),
- p([], input([name=submit, type=submit, value='Search'], []))
- ])]).
Advertisement
Add Comment
Please, Sign In to add comment