master
Aevann1 2021-11-04 21:57:25 +02:00
parent a8943db9c8
commit eec5bbe256
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ def settings_profile_post(v):
msg="Your bio has been updated.")
if request.values.get("sig") = "":
if request.values.get("sig") == "":
v.sig = None
v.sig_html = None
g.db.add(v)

View File

@ -617,7 +617,7 @@
<form id="profile-sig" action="/settings/profile" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<div class="input-group mb-2">
<textarea id="sig-text" class="form-control rounded" aria-label="With textarea" placeholder="Tell the community a bit about yourself." rows="3" name="sig" form="profile-sig" maxlength="200">{% if v.sig %}{{v.sig}}{% endif %}</textarea>
<textarea id="sig-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter a signature..." rows="3" name="sig" form="profile-sig" maxlength="200">{% if v.sig %}{{v.sig}}{% endif %}</textarea>
</div>
<div class="d-flex">
<pre style="padding-top:0.7rem" class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('sig-text')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Bold"></pre>