forked from MarseyWorld/MarseyWorld
fsd
parent
f2e4bf64ff
commit
3ab8e5b8b5
|
@ -337,6 +337,16 @@ def settings_profile_post(v):
|
|||
updated = True
|
||||
else: abort(400)
|
||||
|
||||
house = request.values.get("house")
|
||||
if house and house in ("None","Furry","Femboy","Vampire","Racist"):
|
||||
if v.coins > 500: v.coins -= 500
|
||||
elif v.procoins > 500: v.procoins -= 500
|
||||
else: abort(403)
|
||||
|
||||
if house == "None": house = None
|
||||
v.house = house
|
||||
updated = True
|
||||
|
||||
quadrant = request.values.get("quadrant")
|
||||
if quadrant and request.host == 'pcmemes.net'.lower():
|
||||
v.quadrant = quadrant
|
||||
|
|
|
@ -39,6 +39,54 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="h5" name="referral">House</h2>
|
||||
|
||||
<div class="settings-section rounded">
|
||||
|
||||
<div class="d-lg-flex border-bottom">
|
||||
<div class="title w-lg-25">
|
||||
<label for="theme">House</label>
|
||||
</div>
|
||||
|
||||
<div class="body w-lg-100">
|
||||
<p>Change your house (cost: 500 coins or marseybux).</p>
|
||||
<div class="input-group mb2">
|
||||
<select {% if v.coins < 500 and v.procoins < 500 %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="post_toast(this,'/settings/profile?house='+document.getElementById('house').value, '1')">
|
||||
{% for entry in ("None","Furry","Femboy","Vampire","Racist") %}
|
||||
<option value="{{entry}}" {% if v.house==entry %} selected {% endif %}>
|
||||
{{entry}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="h5" name="referral">Theme</h2>
|
||||
|
||||
<div class="settings-section rounded">
|
||||
|
|
|
@ -174,10 +174,6 @@
|
|||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="privateCheck" name="private">
|
||||
<label class="custom-control-label" for="privateCheck">Draft</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="ghostCheck" name="ghost">
|
||||
<label class="custom-control-label" for="ghostCheck">Ghost Thread (cost: 500 coins or marseybux)</label>
|
||||
</div>
|
||||
|
||||
{% if v.club_allowed != False %}
|
||||
<div class="custom-control custom-checkbox">
|
||||
|
@ -185,6 +181,12 @@
|
|||
<label class="custom-control-label" for="clubCheck">{{CC_TITLE}} thread</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input {% if v.coins < 500 and v.procoins < 500 %}disabled{% endif %} autocomplete="off" type="checkbox" class="custom-control-input" id="ghostCheck" name="ghost">
|
||||
<label class="custom-control-label" for="ghostCheck">Ghost Thread (cost: 500 coins or marseybux)</label>
|
||||
</div>
|
||||
|
||||
<pre>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue