SRD

front

SRD
Oct 7th, 2016
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 1.05 KB | None | 0 0
  1. /*
  2. 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.
  3.  
  4. 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?
  5.  
  6. Thoughts?
  7. */
  8.  
  9. page_content(_Request) -->
  10.     html(
  11.         [
  12.         form([action='/search', method='POST'], [
  13.             p([], [
  14.                 label([for=model], 'Model '),
  15.                 input([name=model, type=textarea])
  16.                     ]),
  17.             p([], [
  18.                 label([for=major], 'Major '),
  19.                 input([name=major, type=textarea])
  20.                     ]),
  21.             p([], [
  22.                 label([for=minor], 'Minor '),
  23.                 input([name=minor, type=textarea])
  24.                     ]),
  25.             p([], input([name=submit, type=submit, value='Search'], []))
  26.         ])]).
Advertisement
Add Comment
Please, Sign In to add comment