Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,24 @@
background-color: var(--card-background);
border-color: var(--border-color);
margin-bottom: 10px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, box-shadow 0.3s;
}

.card-body {
color: var(--text-primary);
padding: 20px;
}

.card-title a {
color: var(--text-primary);
text-decoration: none;
transition: color 0.3s;
}

.card-title a:hover {
color: var(--text-color-hover);
}

.form-control {
Expand Down
29 changes: 26 additions & 3 deletions templates/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@
border-radius: 8px;
border: 1px solid var(--border-color);
margin-top: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-title {
font-size: 2rem;
font-weight: bold;
margin-bottom: 20px;
}

.item-description {
font-size: 1.2rem;
margin-bottom: 20px;
}

.item-details {
font-size: 1rem;
color: var(--text-secondary);
}

.btn-primary {
Expand Down Expand Up @@ -96,9 +113,15 @@ <h1>{{ item.title }}</h1>
<p><b>Location:</b> {{ item.location }}</p>
<p>
<b>Quantity:</b>
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="decrementQuantity()">-</button>
<input type="number" name="quantity" id="quantity" class="form-control" value="{{ item.quantity }}" min="1">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="incrementQuantity()">+</button>
<div class="input-group" style="max-width: 150px;">
<div class="input-group-prepend">
<button type="button" class="btn btn-outline-secondary" onclick="decrementQuantity()">-</button>
</div>
<input type="number" name="quantity" id="quantity" class="form-control text-center" value="{{ item.quantity }}" min="1">
<div class="input-group-append">
<button type="button" class="btn btn-outline-secondary" onclick="incrementQuantity()">+</button>
</div>
</div>
</p>
<p><b>Created at:</b> {{ item.created_at.strftime('%Y-%m-%d %H:%M') }}</p>
<a href="{{ url_for('index') }}" class="btn btn-primary">Back to Inventory</a>
Expand Down
Loading