|
@ -15,7 +15,27 @@ |
|
|
<dt>Avatar</dt> |
|
|
<dt>Avatar</dt> |
|
|
<dd><img src="data:<%= args.avatar.t -%>;base64,<%= encoder(args.avatar.v) %>" /></dd> |
|
|
<dd><img src="data:<%= args.avatar.t -%>;base64,<%= encoder(args.avatar.v) %>" /></dd> |
|
|
<dt>Is Leader</dt> |
|
|
<dt>Is Leader</dt> |
|
|
<dd><%= args.is_leader and args.is_leader.v %></dd> |
|
|
|
|
|
|
|
|
<dd> |
|
|
|
|
|
<% if args.is_leader and args.is_leader.v == "on" then %> |
|
|
|
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" /> |
|
|
|
|
|
<% else %> |
|
|
|
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/basic_blank.png')) %>" /> |
|
|
|
|
|
<% end %>c |
|
|
|
|
|
</dd> |
|
|
|
|
|
</dl> |
|
|
|
|
|
<h3>Classes and Levels</h3> |
|
|
|
|
|
<dl> |
|
|
|
|
|
<dt>Class 1</dt> |
|
|
|
|
|
<dd> |
|
|
|
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class1].f)) %>" /> |
|
|
|
|
|
Lvl <%= args.class1_lvl %> |
|
|
|
|
|
</dd> |
|
|
|
|
|
<dt>Class 2</dt> |
|
|
|
|
|
<dd> |
|
|
|
|
|
<img src="data:image/png;base64,<%= encoder(readfile('yqtemplate/'..classes[args.class2].f)) %>" /> |
|
|
|
|
|
Lvl <%= args.class2_lvl %> |
|
|
|
|
|
</dd> |
|
|
|
|
|
<dt>Class leaning</dt><dd><%= args.class_leaning %></dd> |
|
|
</dl> |
|
|
</dl> |
|
|
<% end %> |
|
|
<% end %> |
|
|
<form method="POST" action="/cgi/yqtemplate" enctype="multipart/form-data"> |
|
|
<form method="POST" action="/cgi/yqtemplate" enctype="multipart/form-data"> |
|
@ -29,20 +49,20 @@ |
|
|
<h2>Classes and Levels</h2> |
|
|
<h2>Classes and Levels</h2> |
|
|
<label for="class1">Class 1:</label> |
|
|
<label for="class1">Class 1:</label> |
|
|
<select name="class1"> |
|
|
<select name="class1"> |
|
|
<% for _, v in ipairs(classes) do %> |
|
|
|
|
|
<option value="<%= v %>"><%= v %></option> |
|
|
|
|
|
|
|
|
<% for k, v in ipairs(classes) do %> |
|
|
|
|
|
<option value="<%= k %>"><%= v.n %></option> |
|
|
<% end %> |
|
|
<% end %> |
|
|
</select> |
|
|
</select> |
|
|
<label for="class1_lvl">Level:</label> |
|
|
<label for="class1_lvl">Level:</label> |
|
|
<input type="number" name="class1_lvl" min="1"/><br/> |
|
|
<input type="number" name="class1_lvl" min="1"/><br/> |
|
|
<label for="class2">Class2:</label> |
|
|
<label for="class2">Class2:</label> |
|
|
<select name="class2"> |
|
|
<select name="class2"> |
|
|
<% for _, v in ipairs(classes) do %> |
|
|
|
|
|
<option value="<%= v %>"><%= v %></option> |
|
|
|
|
|
|
|
|
<% for k, v in ipairs(classes) do -%> |
|
|
|
|
|
<option value="<%= k %>"><%= v.n %></option> |
|
|
<% end %> |
|
|
<% end %> |
|
|
</select> |
|
|
</select> |
|
|
<label for="class2_lvl">Level:</label> |
|
|
<label for="class2_lvl">Level:</label> |
|
|
<input type="number"name="class2_lvl" min="1"/><br/> |
|
|
|
|
|
|
|
|
<input type="number" name="class2_lvl" min="1"/><br/> |
|
|
<label for="class_leaning"> |
|
|
<label for="class_leaning"> |
|
|
Class leaning (0 for completely class 1, 100 for completely class 2): |
|
|
Class leaning (0 for completely class 1, 100 for completely class 2): |
|
|
</label> |
|
|
</label> |
|
|