update styles for form

This commit is contained in:
imohkay 2021-10-27 16:42:11 +05:30
commit 84c80ab632
5 changed files with 53 additions and 17 deletions

View file

@ -136,8 +136,24 @@
<p>Project "<a href="/polis">Phantas.ma/polis</a>" is organized by National Taiwan Museum of Fine Arts, supervised by the Ministry of Culture, and is co-organized by the Cultural Taiwan Foundation and in partnership with SEA Plateau.</p>
<p>本計畫由國立臺灣美術館策劃文化部指導、財團法人文化臺灣基金會支持、SEA plateaus協力。</p>
</div>
<div class="contact">
{% if submitted %}
Thanks for your message
{% else %}
<h1>Contact 聯絡</h1>
<form method="post">
<label for="input-email">Your Email</label>
<input name="email" type="email" id="input-email" required>
<label for="input-msg">Message 訊息</label>
<textarea name="message" id="input-msg" required></textarea>
<input type="submit" value="Send Message 傳送訊息">
{% csrf_token %}
</form>
{% endif %}
</div>
{% endblock %}
{% block end %}

15
app/templates/contact.html Normal file → Executable file
View file

@ -8,15 +8,12 @@
{% else %}
<h1>Contact 聯絡</h1>
<form method="post">
<label>
Your Email:
<input name="email" type="email" required>
</label>
<br>
<label>Message 訊息:<br>
<textarea name="message" required></textarea>
</label>
<br>
<label for="input-email">Your Email</label>
<input name="email" type="email" id="input-email" required>
<label for="input-msg">Message 訊息</label>
<textarea name="message" id="input-msg" required></textarea>
<input type="submit" value="Send Message 傳送訊息">
{% csrf_token %}
</form>