philomena/lib/philomena_web/templates/captcha/create.html.slime

21 lines
494 B
Text
Raw Normal View History

2019-11-13 17:28:02 +01:00
elixir:
options = [
"Applejack": 1,
"Fluttershy": 2,
"Pinkie Pie": 3,
"Rainbow Dash": 4,
"Rarity": 5,
"Twilight Sparkle": 6
]
div
= hidden_input :captcha, :id, value: @captcha.solution_id
img src="data:image/jpeg;base64,#{@captcha.image_base64}"
= for i <- (1..6) do
.field
label> for="captcha_sln[#{i}]"
| Name of pony with cutie mark #
= i
2019-11-15 17:14:23 +01:00
= select :captcha, "sln[#{i}]", options, class: "input", name: "captcha[sln][#{i}]"