Browse Source

[YQTemplate] added classes to the form

main
Annwan 4 months ago
parent
commit
3a644d2598
  1. 18
      yqtemplate.lua

18
yqtemplate.lua

@ -8,8 +8,22 @@ local form = etlua.compile[[
<body> <body>
<%= data %> <%= data %>
<form action="/cgi/yqtemplate" method="post"> <form action="/cgi/yqtemplate" method="post">
<label for="name">Character name</label>
<input type="text" id="name" />
<label for="name">Character name:</label>
<input type="text" id="name" name="name" /><br>
<label for="class1">Class 1:</label>
<select name=class1 id=class1>
<option value=1>Beast</option>
<option value=2>Swordsman</option>
<option value=3>Spirit Bird</option>
<option value=4>Twin Blades</option>
<option value=5>Healer</option>
<option value=6>Summoner</option>
<option value=7>Tamer</option>
<option value=8>Pugilist</option>
<option value=9>Mounted Fighter</option>
<option value=10>Fruit Animal</option>
<option value=11>Spellcaster</option>
</select>
<input type="submit" value="Generate"> <input type="submit" value="Generate">
</form> </form>
<hr /> <hr />

Loading…
Cancel
Save