forked from MarseyWorld/MarseyWorld
fdsfds
parent
40b27cf365
commit
347bd334cf
|
@ -136,6 +136,11 @@ class User(Base):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def csslazy(self):
|
||||||
|
return self.css
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def notifications(self):
|
def notifications(self):
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-settings" action="/settings/css" method="post">
|
<form id="profile-settings" action="/settings/css" method="post">
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.css}}{% endif %}</textarea>
|
<textarea class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
|
||||||
<small>Limit of 4000 characters</small>
|
<small>Limit of 4000 characters</small>
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
<input id="submit-btn" class="btn btn-primary ml-auto" type="submit" value="Save">
|
<input id="submit-btn" class="btn btn-primary ml-auto" type="submit" value="Save">
|
||||||
|
|
Loading…
Reference in New Issue