mirror of
https://github.com/urbit/shrub.git
synced 2024-09-19 08:07:31 +03:00
change dropdown to a list of links
This commit is contained in:
parent
12f451d132
commit
ac8d883e14
@ -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,13 +164,6 @@
|
||||
;* 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)
|
||||
@ -183,14 +171,15 @@
|
||||
?^ 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
|
||||
=/ link=tape
|
||||
;: welp
|
||||
"/wizard/"
|
||||
(trip stud)
|
||||
(en-tape:pith:neo (oust [0 2] the-pith))
|
||||
==
|
||||
;a
|
||||
=href link
|
||||
; {(trip stud)}
|
||||
==
|
||||
==
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user