Files
Cedar-Django/closedverse_main/templates/closedverse_main/community_create.html
T
2023-02-08 18:33:16 -08:00

41 lines
2.4 KiB
HTML

{% extends "closedverse_main/layout.html" %}
{% block main-body %}{% load closedverse_user %}{% load closedverse_tags %}
<div class="main-column"><div class="post-list-outline">
<h2 class="label">Create a new community</h2>
<form class="setting-form" method="post" action={% url "main:community-create-action" %}>
<p>Create your own community that you can edit here! Each community will cost you one Community Token.</p>
<li class="setting-community-name">
<p class="settings-label">Set name:</p>
<div class="center center-input">
<input type="text" name="community_name" maxlength="32" placeholder="New Name" value="{{ community.name }}">
</div>
</li>
<li class="setting-community-description">
<p class="settings-label">Community description:</p>
<textarea class="textarea" name="community_description" maxlength="2200" placeholder="Community description">{{ community.description }}</textarea>
</li>
<li>
<p class="settings-label"><label for="community_platform">Platform</label></p>
<div class="select-content">
<div class="select-button">
<select name="community_platform" id="community_platform">
<option value="0"{% if community.platform == 0 %} selected{% endif %}>None</option>
<option value="1"{% if community.platform == 1 %} selected{% endif %}>3DS</option>
<option value="2"{% if community.platform == 2 %} selected{% endif %}>Wii U</option>
<option value="3"{% if community.platform == 3 %} selected{% endif %}>Switch</option>
<option value="4"{% if community.platform == 4 %} selected{% endif %}>3DS and Wii U</option>
<option value="5"{% if community.platform == 5 %} selected{% endif %}>PC</option>
<option value="6"{% if community.platform == 6 %} selected{% endif %}>Xbox</option>
<option value="7"{% if community.platform == 7 %} selected{% endif %}>Playstation</option>
</select>
</div>
</div>
</li>
{% csrf_token %}
<div class="form-buttons">
<input type="submit" class="black-button apply-button" value="Save">
<p class="note">You have {{ tokens }} token(s) remaining</p>
<p class="note">I'm too lazy to add the remaining settings in here for now, but you can change them after making the community. Oh yeah, also if your community gets removed by a staff member, you won't get your token back, so don't make communities that break the rules or whatever.</p>
</div>
</form></div></div>
{% endblock %}