Was confused with the comment field, only used for 14 items, which I manually merged without problems.
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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>
|
||||||
|
@@ -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 %}
|
||||||
|
@@ -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%;">
|
||||||
|
Reference in New Issue
Block a user