fdsfds
This commit is contained in:
parent
72e27491ce
commit
21e2b6c35c
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue