remove description
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Was confused with the comment field,
only used for 14 items, which I
manually merged without problems.
This commit is contained in:
2025-01-22 21:01:59 +02:00
parent 04a7e18e55
commit d21bcd9d82
4 changed files with 0 additions and 15 deletions

View File

@@ -149,8 +149,6 @@ class InventoryItemForm(CustomForm):
inventory = FormField(InventoryForm) inventory = FormField(InventoryForm)
hardware = FormField(HardwareForm) hardware = FormField(HardwareForm)
shortener = FormField(ShortenerForm) shortener = FormField(ShortenerForm)
_description_placeholder = "Insert Markdown here."
description = TextAreaField('Description', [validators.optional(), validators.length(max=3000)], render_kw={"placeholder": _description_placeholder})
location = StringField('Location') location = StringField('Location')
def setup_defaults_add(self): def setup_defaults_add(self):
setup_default_owner(self.inventory.form.owner.form.username) setup_default_owner(self.inventory.form.owner.form.username)

View File

@@ -116,10 +116,6 @@
<div class="placeholder-dark chips"> <div class="placeholder-dark chips">
<input style="width: auto !important;"> <input style="width: auto !important;">
</div> </div>
<h5>Description</h5>
<p class="auto-height placeholder-dark">
{{ form.description(rows='15',cols='100') }}
</p>
<button class="btn waves-effect waves-light" type="submit" name="action">Submit <button class="btn waves-effect waves-light" type="submit" name="action">Submit
<i class="material-icons right">send</i> <i class="material-icons right">send</i>

View File

@@ -141,10 +141,6 @@
{% for tag in item.tags %} {% for tag in item.tags %}
<div class="chip"> {{ tag }} </div> <div class="chip"> {{ tag }} </div>
{% endfor %} {% endfor %}
<h3>Description</h3>
<p class="auto-height">
{{ item.description | markdown }}
</p>
<h3>Photo</h3> <h3>Photo</h3>
{% if item.has_photo %} {% if item.has_photo %}

View File

@@ -52,11 +52,6 @@
</tbody> </tbody>
</table> </table>
<h3>Description</h3>
<p class="auto-height">
{{ item.description | markdown }}
</p>
<h3>Photo</h3> <h3>Photo</h3>
{% if item.has_photo %} {% if item.has_photo %}
<img src="{{ photo_url }}" alt="" style="max-width: 800px; width: 100%;"> <img src="{{ photo_url }}" alt="" style="max-width: 800px; width: 100%;">