add simple form, closes #106, #107

note that i haven't done much with validation or conditional
enabling/hiding - if we start doing front-end frameworks those may have
opinions on this
This commit is contained in:
Kiara Grouwstra 2025-02-17 14:55:52 +01:00 committed by kevin
parent 1df61bbe4d
commit 5a49432b47

View file

@ -3,5 +3,56 @@
{% block content %} {% block content %}
<h1>Fediversity Panel</h1> <h1>Fediversity Panel</h1>
<p>Hello world!</p> <form method="post" enctype="multipart/form-data" action="">
{% csrf_token %}
<div>
<input type="text" id="domain" name="domain" placeholder="fediversity.net" value="fediversity.net" />
<label for="domain">Domain</label>
</div>
<fieldset>
<legend>Services:</legend>
<div>
<input type="checkbox" id="mastodon" name="mastodon" checked />
<label for="mastodon">Mastodon</label>
</div>
<!--
<div>
<input type="text" id="subdomain-mastodon" name="subdomain-mastodon" placeholder="mastodon" value="mastodon" />
<label for="subdomain-mastodon">subdomain for Mastodon</label>
</div>
-->
<div>
<input type="checkbox" id="pixelfed" name="pixelfed" checked />
<label for="pixelfed">Pixelfed</label>
</div>
<!--
<div>
<input type="text" id="subdomain-pixelfed" name="subdomain-pixelfed" placeholder="pixelfed" value="pixelfed" />
<label for="subdomain-pixelfed">subdomain for Pixelfed</label>
</div>
-->
<div>
<input type="checkbox" id="peertube" name="peertube" checked />
<label for="peertube">Peertube</label>
</div>
<!--
<div>
<input type="text" id="subdomain-peertube" name="subdomain-peertube" placeholder="peertube" value="peertube" />
<label for="subdomain-peertube">subdomain for Peertube</label>
</div>
-->
</fieldset>
<button class="button">Deploy</button>
</form>
{% endblock %} {% endblock %}