feat(yaps): ✨ first lifesigns of the yapping system
Some checks reported warnings
/ phplint (push) Has been cancelled
Some checks reported warnings
/ phplint (push) Has been cancelled
This commit is contained in:
parent
143c932c88
commit
f8af3c5c59
7 changed files with 321 additions and 17 deletions
36
www/templates/_dev_add_yap.html
Normal file
36
www/templates/_dev_add_yap.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
|
||||
{% extends "root.html" %}
|
||||
|
||||
{% block second_title %}
|
||||
<h2> YAP SOMETHIN' </h2>
|
||||
{% endblock %}
|
||||
|
||||
{%block main_content%}
|
||||
<article>
|
||||
<form method="post" enctype="multipart/form-data"
|
||||
action="/api/add_yap"
|
||||
hx-target="#yap-result"
|
||||
hx-swap="innerHTML">
|
||||
|
||||
<label for="ACCESS_KEY"> Password: </label>
|
||||
<input type="password" id="ACCESS_KEY" name="ACCESS_KEY"/>
|
||||
|
||||
<label for="path"> Path: </label>
|
||||
<input type="text" id="path" name="path"/>
|
||||
<label for="yap_category"> Yap Category: </label>
|
||||
<input type="text" id="yap_category" name="yap_category"
|
||||
value="yap"/>
|
||||
|
||||
<textarea type="file" id="yap_text" name="yap_text">
|
||||
</textarea>
|
||||
|
||||
<button>Submit</button>
|
||||
</form>
|
||||
|
||||
Return data:
|
||||
<code id="yap-result">
|
||||
|
||||
</code>
|
||||
</article>
|
||||
{%endblock%}
|
Loading…
Add table
Add a link
Reference in a new issue