{% extends 'base.html' %}
{% block content %}
<div class="row container">
<div class="section slogan">
<h2 class="center-align" style="font-weight:bold">Inventory<br></h2>
</div>
<div class="row container challenges">
<div class="row">
{% for item in inventory %}
{% if not item.hidden %}
<div class="col s12 m3">
<div class="card">
<div class="card-content">
<div class="card-image">
{% if item.photo %}
<img src='/media/{{ item.photo }}'>
{% else %}
<img src='/media/missing_photo.png'>
{% endif %}
<div class="card-title"><b>{{ item.item_name }}</b></div>
<p>Serial: {{ item.serial_nr }}</p>
<p style="text-align: justify; max-height: 120px; overflow: auto;">{{ item.description }}</p>
{% endfor %}
{% endblock %}