change dropdown to a list of links

This commit is contained in:
hanfel-dovned 2024-08-08 13:14:23 -07:00
parent 12f451d132
commit ac8d883e14

View File

@ -157,11 +157,6 @@
::
++ chooser
|= [options=(set stud:neo) the-pith=pith]
::=/ oninput
:: """
:: this.setAttribute("value", this.value);
:: this.nextElementSibling.nextElementSibling.setAttribute('action', '/wizard/' + this.value + {(en-tape:pith:neo (oust [0 2] the-pith))});
:: """
;html
;head
;meta(charset "UTF-8");
@ -169,28 +164,22 @@
;* standard-head-tags:serv
==
;body
;form
=method "get"
=action "/wizard/nested-text{(en-tape:pith:neo (oust [0 2] the-pith))}"
:: /wizard/input-value/(oust [0 2] the-pith)
;select
=name "choice"
:: =oninput oninput
;*
%+ turn
~(tap in options)
|= =stud:neo
?^ stud :: XX will need to change this someday
~|("The stud you chose isn't a @tas. Let the devs know if you ever see this error." !!)
^- manx
;option
{(trip stud)}
==
==
;button
=type "submit"
; Submit
;*
%+ turn
~(tap in options)
|= =stud:neo
?^ stud :: XX will need to change this someday
~|("The stud you chose isn't a @tas. Let the devs know if you ever see this error." !!)
^- manx
=/ link=tape
;: welp
"/wizard/"
(trip stud)
(en-tape:pith:neo (oust [0 2] the-pith))
==
;a
=href link
; {(trip stud)}
==
==
==