Files
Cedar-Django/closedverse_main/templates/closedverse_main/profile-settings.html
T
some weird guy e5c99e0248 File sharing update (requires migrations for existing databases)
There are a bunch of migration files that have been thrown into the repository. Sadly, migrating is a huge pain in the fucking ass, you may need to rollback your database or god knows what.

- did not add change logs too lazy
2023-10-16 15:22:41 -07:00

181 lines
10 KiB
HTML

{% extends "closedverse_main/layout.html" %}
{% block main-body %}{% load closedverse_user %}{% load closedverse_tags %}{% load closedverse_community %}
{% user_sidebar request user profile 0 %}
<div class="main-column"><div class="post-list-outline">
<h2 class="label">{{ title }}</h2>
<form class="setting-form" method="post" action="{% url "main:user-view" user.username %}">
<ul class="settings-list">
<li class="setting-nickname">
<p class="settings-label">Nickname</p>
<div class="center center-input">
<input type="text" name="screen_name" maxlength="32" placeholder="Nickname" value="{{ user.nickname }}">
</div>
<p class="note">Nickname, up to 32 characters.</p>
</li>
<li class="setting-profile-comment">
<p class="settings-label">Profile comment</p>
<textarea class="textarea" name="profile_comment" maxlength="2200" placeholder="Write about yourself here.">{{ profile.comment }}</textarea>
<p class="note">Anything you write here will appear on your profile. Remember to keep it brief. Please don't write anything that'll violate <a href="{% url "main:help-rules" %}">{{ brand_name }}'s rules</a>.</p>
</li>
<li class="setting-pronoun">
<p class="settings-label">What are your pronouns?</p>
<div class="center center-input">
<input type="text" name="pronouns" maxlength="16" placeholder="Pronouns" value="{{ profile.pronoun_is }}">
</div>
<p class="note">Enter your pronouns here. </p>
</li>
<li class="setting-country">
<p class="settings-label">Region</p>
<div class="center center-input">
<input type="text" name="country" maxlength="64" placeholder="Region" value="{{ profile.country }}">
</div>
<p class="note">Enter your region here. It'll appear on your profile.
<br>
<a class="get-ipinfo" href="#">If you want to use your location, you can get it automatically here (it will not be automatically saved).</a>
</p>
</li>
<li class="setting-email">
<p class="settings-label">E-mail address</p>
<div class="center center-input">
<input type="text" name="email" maxlength="255" placeholder="Email address" value="{{ user.email|default_if_none:"" }}">
</div>
<p class="note">Please note that your email can be a fake one, however if you need to reset your password, this must be accessible. You can't share emails.</p>
</li>
<li class="setting-website">
<p class="settings-label">Web URL</p>
<div class="center center-input">
<input type="text" name="website" maxlength="255" placeholder="URL" value="{{ profile.weblink }}">
</div>
<p class="note">If you want to advertise a URL of some sorts on your profile, this is where it goes.</p>
</li>
<li class="setting-website">
<p class="settings-label">Discord Username</p>
<div class="center center-input">
<input type="text" name="external" maxlength="255" placeholder="@" value="{{ profile.external }}">
</div>
<p class="note">Actually, you don't have to put a Discord username here, you can put anything here, such as your Threads username or X username. Discord sure is popular though.</p>
</li>
<li class="setting-website">
<p class="settings-label">What are you?</p>
<div class="center center-input">
<input type="text" name="whatareyou" maxlength="255" placeholder="What are you?" value="{{ profile.whatareyou }}">
</div>
<p class="note">So what exactly are you? Are you a Human, attack helicopter, something in between?</p>
</li>
<li class="setting-color">
<p class="settings-label">Nickname color</p>
<div class="center center-input">
<input type="hidden" name="color" maxlength="7" placeholder="Enter a hex color value here" value="{{ user.color|default_if_none:"" }}">
<button class="button color-thing">Open color picker</button>
</div>
<p class="note">This is the color your nickname will appear as. Set it to white (#ffffff) and it will return to the default. It will appear like so.</p>
{% user_sidebar_info user %}
</li>
<li>
<p class="settings-label"><label for="id_visibility">{% if profile.origin_id %}Who should be able to see your Nintendo Network ID? ({{ profile.origin_id }}){% else %}You have not entered a Nintendo Network ID yet, If you do, who should be able to see it?{% endif %}</label></p>
<div class="select-content">
<div class="select-button">
<select name="id_visibility" id="id_visibility">
<option value="0"{% if profile.id_visibility == 0 %} selected{% endif %}>Everyone</option>
<option value="1"{% if profile.id_visibility == 1 %} selected{% endif %}>My friends</option>
<option value="2"{% if profile.id_visibility == 2 %} selected{% endif %}>Nobody</option>
</select>
</div>
</div>
</li>
<li>
<p class="settings-label"><label for="let_friendrequest">Who should be able to send you friend requests?</label></p>
<div class="select-content">
<div class="select-button">
<select name="let_friendrequest" id="let_friendrequest">
<option value="0"{% if profile.let_friendrequest == 0 %} selected{% endif %}>Everyone</option>
<option value="1"{% if profile.let_friendrequest == 1 %} selected{% endif %}>People I'm following</option>
<option value="2"{% if profile.let_friendrequest == 2 %} selected{% endif %}>Nobody</option>
</select>
</div>
</div>
</li>
<li>
<p class="settings-label"><label for="yeahs_visibility">Who should be able to see your Yeahs given?</label></p>
<div class="select-content">
<div class="select-button">
<select name="yeahs_visibility" id="yeahs_visibility">
<option value="0"{% if profile.yeahs_visibility == 0 %} selected{% endif %}>Everyone</option>
<option value="1"{% if profile.yeahs_visibility == 1 %} selected{% endif %}>My friends</option>
<option value="2"{% if profile.yeahs_visibility == 2 %} selected{% endif %}>Nobody</option>
</select>
</div>
</div>
</li>
<li>
<p class="settings-label"><label for="comments_visibility">Who should be able to see your comments made?</label></p>
<div class="select-content">
<div class="select-button">
<select name="comments_visibility" id="comments_visibility">
<option value="0"{% if profile.comments_visibility == 0 %} selected{% endif %}>Everyone</option>
<option value="1"{% if profile.comments_visibility == 1 %} selected{% endif %}>My friends</option>
<option value="2"{% if profile.comments_visibility == 2 %} selected{% endif %}>Nobody</option>
</select>
</div>
</div>
</li>
<li class="setting-background">
<p class="settings-label">Website theme:</p>
<div class="center center-input">
<input type="hidden" name="theme" maxlength="7" placeholder="Enter a hex color value here" value="{{ user.theme }}">
<button class="button color-thing2">Open color picker</button>
</div>
<p class="current-theme" style="color:{{ user.theme }}">Remember to save and refresh the page.</p>
{% if user.theme %}<input type="checkbox" name="reset_theme">Reset to default{% endif %}
{% if settings.site_wide_theme_hex %}<p class="note">Default theme: "{{ settings.site_wide_theme_hex }}"</p>{% endif %}
</li>
<li class="setting-background">
<p class="settings-label">Change your password:</p>
<div class="center center-input">
<a class="button" href={% url "main:change-password" %}>Change password</a>
</div>
</li>
<li class="setting-nnid">
<p class="settings-label">Nintendo Network ID</p>
<div class="icon-container">
<img class="icon nnid-icon mii" src="{% miionly user.mh %}">
</div>
<input type="text" name="origin_id" minlength="6" maxlength="16" placeholder="Nintendo Network ID{% if not profile.origin_id %} (None){% endif %}" value="{% if profile.origin_id %}{{ profile.origin_id }}{% endif %}" data-mii-domain="{{ mii_domain }}" data-action="{{ mii_endpoint }}">
<input type="hidden" name="mh" value="{{ user.mh }}">
<p class="error"></p>
<p class="note">Enter your Nintendo Network ID here. It'll appear on your profile if you set it to be visible.</p>
</li>
<li class="setting-avatar">
<div class="icon-container">
<img class="icon nnid-icon mii{% if not user.avatar_type == 2 %} none{% endif %}" src="{% miionly user.mh %}">
<img class="icon nnid-icon gravatar{% if not user.avatar_type == 1 %} none{% endif %}" src="{{ user.gravatar }}">
{% if user.has_freedom %}
<img class="icon nnid-icon custom{% if not user.avatar_type == 0 %} none{% endif %}" src="{{ user.do_avatar }}">
{% endif %}
</div>
<p class="settings-label">Do you want the avatar shown beside your content to use the Mii from your Nintendo Network ID or a Gravatar or a custom avatar the way God intended?</p>
<label><input type="radio" name="avatar" value="0"{% if user.avatar_type == 2 %} checked{% endif %}>Mii</label>
<label><input type="radio" name="avatar" value="1">Use Gravatar</label>
{% if user.has_freedom %}
<label><input type="radio" name="avatar" value="2"{% if user.avatar_type == 0 %} checked{% endif %}>Custom</label>
<span id="upload-thing"{% if not user.avatar_type == 0 %} class="none"{% endif %}>{% file_button %}</span>
<style>
.setting-avatar div.file-button-container { display: none; }
</style>
{% else %}
<input type="hidden" name="avatar" value="2">
{% endif %}
<p class="note">Selecting the Gravatar option will cause your avatar to be pulled from the <a href="https://gravatar.com">Gravatar account</a> linked to your email address, and feelings won't be shown in your posts unless you choose to use a Mii instead. Same with the custom avatar option but who really cared anyway?</p>
</li>
{% csrf_token %}
<div class="form-buttons">
<input type="submit" class="black-button apply-button" value="Save these settings">
</div>
</ul></form></div></div>
{% endblock %}