Skip to content

Commit 78baf12

Browse files
committed
Improve admin
1 parent 5e8cbad commit 78baf12

13 files changed

Lines changed: 1924 additions & 673 deletions

File tree

landolfio/inventory_frontend/templates/create.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{% extends "page-no-header.html" %}
2-
{% load static %}
2+
{% load static i18n %}
33

44
{% block content %}
55
<div class="container py-4">
66
<!-- Header -->
77
<div class="d-flex justify-content-between align-items-start mb-4">
88
<a href="javascript:history.back()" class="btn btn-outline-secondary">
9-
<i class="fas fa-arrow-left me-2"></i>Back
9+
<i class="fas fa-arrow-left me-2"></i>{% translate "Back" %}
1010
</a>
1111
<div class="text-center flex-grow-1">
12-
<h2 class="mb-1">New Asset</h2>
13-
<p class="text-muted mb-0">Create a new asset in the inventory</p>
12+
<h2 class="mb-1">{% translate "New Asset" %}</h2>
13+
<p class="text-muted mb-0">{% translate "Create a new asset in the inventory" %}</p>
1414
</div>
1515
<div style="width: 95px"><!-- Spacer to maintain centering --></div>
1616
</div>
@@ -24,7 +24,7 @@ <h2 class="mb-1">New Asset</h2>
2424
<div class="row g-3">
2525
<!-- Name -->
2626
<div class="col-md-6">
27-
<label for="{{ form.name.id_for_label }}" class="form-label">Name</label>
27+
<label for="{{ form.name.id_for_label }}" class="form-label">{% translate "Name" %}</label>
2828
{{ form.name }}
2929
{% if form.name.errors %}
3030
<div class="invalid-feedback d-block">
@@ -35,7 +35,7 @@ <h2 class="mb-1">New Asset</h2>
3535

3636
<!-- Category -->
3737
<div class="col-md-6">
38-
<label for="{{ form.category.id_for_label }}" class="form-label">Category</label>
38+
<label for="{{ form.category.id_for_label }}" class="form-label">{% translate "Category" %}</label>
3939
{{ form.category }}
4040
{% if form.category.errors %}
4141
<div class="invalid-feedback d-block">
@@ -46,7 +46,7 @@ <h2 class="mb-1">New Asset</h2>
4646

4747
<!-- Size -->
4848
<div class="col-md-6">
49-
<label for="{{ form.size.id_for_label }}" class="form-label">Size</label>
49+
<label for="{{ form.size.id_for_label }}" class="form-label">{% translate "Size" %}</label>
5050
{{ form.size }}
5151
{% if form.size.errors %}
5252
<div class="invalid-feedback d-block">
@@ -57,7 +57,7 @@ <h2 class="mb-1">New Asset</h2>
5757

5858
<!-- Collection -->
5959
<div class="col-md-6">
60-
<label for="{{ form.collection.id_for_label }}" class="form-label">Collection</label>
60+
<label for="{{ form.collection.id_for_label }}" class="form-label">{% translate "Collection" %}</label>
6161
{{ form.collection }}
6262
{% if form.collection.errors %}
6363
<div class="invalid-feedback d-block">
@@ -68,7 +68,7 @@ <h2 class="mb-1">New Asset</h2>
6868

6969
<!-- Location -->
7070
<div class="col-md-6">
71-
<label for="{{ form.location.id_for_label }}" class="form-label">Location</label>
71+
<label for="{{ form.location.id_for_label }}" class="form-label">{% translate "Location" %}</label>
7272
{{ form.location }}
7373
{% if form.location.errors %}
7474
<div class="invalid-feedback d-block">
@@ -79,7 +79,7 @@ <h2 class="mb-1">New Asset</h2>
7979

8080
<!-- Location Number -->
8181
<div class="col-md-6">
82-
<label for="{{ form.location_nr.id_for_label }}" class="form-label">Location Number</label>
82+
<label for="{{ form.location_nr.id_for_label }}" class="form-label">{% translate "Location Number" %}</label>
8383
{{ form.location_nr }}
8484
{% if form.location_nr.errors %}
8585
<div class="invalid-feedback d-block">
@@ -90,7 +90,7 @@ <h2 class="mb-1">New Asset</h2>
9090

9191
<!-- Listing Price -->
9292
<div class="col-md-6">
93-
<label for="{{ form.listing_price.id_for_label }}" class="form-label">Listing Price</label>
93+
<label for="{{ form.listing_price.id_for_label }}" class="form-label">{% translate "Listing Price" %}</label>
9494
{{ form.listing_price }}
9595
{% if form.listing_price.errors %}
9696
<div class="invalid-feedback d-block">
@@ -101,7 +101,7 @@ <h2 class="mb-1">New Asset</h2>
101101

102102
<!-- Local Status -->
103103
<div class="col-md-6">
104-
<label for="{{ form.local_status.id_for_label }}" class="form-label">Status</label>
104+
<label for="{{ form.local_status.id_for_label }}" class="form-label">{% translate "Status" %}</label>
105105
{{ form.local_status }}
106106
{% if form.local_status.errors %}
107107
<div class="invalid-feedback d-block">
@@ -122,8 +122,8 @@ <h2 class="mb-1">New Asset</h2>
122122
<!-- Submit Buttons -->
123123
<div class="col-12 mt-4">
124124
<div class="d-flex justify-content-end gap-2">
125-
<a href="javascript:history.back()" class="btn btn-outline-secondary">Cancel</a>
126-
<button type="submit" class="btn btn-primary">Create Asset</button>
125+
<a href="javascript:history.back()" class="btn btn-outline-secondary">{% translate "Cancel" %}</a>
126+
<button type="submit" class="btn btn-primary">{% translate "Create Asset" %}</button>
127127
</div>
128128
</div>
129129
</div>

0 commit comments

Comments
 (0)