Browse Source

[YQTemplate] moved form to separate file

main
Annwan 4 months ago
parent
commit
b4cf271c46
  1. 44
      yqform.etlua
  2. 43
      yqtemplate.lua

44
yqform.etlua

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<title>Yokoka’s Quest Fan Character Profile Generator</title>
</head>
<body>
<h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLEASE DO NOT USE YET</h1>
<pre>
<%=data%>
</pre>
<form method="POST" action="/cgi/yqtemplate">
<input type="test" name="name" value="name" />
<input type="file" name="avatar" value="avatar" />
<input type="checkbox" name="isLeader" value="isLeader" />
<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">
</form>
<hr />
<p>
Based on the character profiles in the webcomic
<a href=https://yokokasquest.com>Yokoka’s Quest</a>
by Chris Hyacinth R.
</p>
<p>
Assets shared by the author on the
<a href="https://forums.cisumchronicles.com/" >webcomic’s forums</a>
.
</p>
</body>
</html>

43
yqtemplate.lua

@ -1,40 +1,9 @@
local etlua = require"etlua"
local form = etlua.compile[[
<!DOCTYPE html>
<html>
<head>
<title>Yokokas Quest Character Profile Creator</title>
</head>
<body>
<h1>THIS IS WORK IN PROGRESS, THIS IS NON FUNCTIONAL, PLZ DONT USE YET</h1>
<%= data %>
<form action="/cgi/yqtemplate" method="post">
<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">
</form>
<hr />
Based on the character profiles in the webcomic <a
href=https://yokokasquest.com>Yokokas Quest</a> by Chris Hyacinth R. Assets
shared by the author on the <a
href=https://forums.cisumchronicles.com/>webcomics forums</a>.
</body>
</html>
]]
local etlua = require "etlua"
local utils = require "utils"
local yqtemplateform = utils.readfile("yqform.etlua")
local form = etlua.compile(yqtemplateform)
return { return {
desc = "Creates Yokoka’s quest-style personal status page", desc = "Creates Yokoka’s quest-style personal status page",

Loading…
Cancel
Save