Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
ixnur committed Aug 18, 2023
1 parent c421339 commit 80dec3d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions envanter/envanter/teplates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,13 @@ <h2>Yeni Komponent Ekle</h2>
{% csrf_token %}
<label for="kategori">Kategori:</label>
<select id="kategori" name="kategori" required>
{% for category in categories %}
<option value="{{ category }}">{{ category }}</option>
{% endfor %}
<option value="">Seçiniz</option>
{% for category in categories %}
<option value="{{ category.id }}">{{ category.name }}</option>
{% for subcategory in category.category_set.all %}
<option value="{{ subcategory.id }}">-- {{ subcategory.name }}</option>
{% endfor %}
{% endfor %}
</select><br>
<label for="model">Model:</label>
<input type="text" id="model" name="model" required><br>
Expand Down

0 comments on commit 80dec3d

Please sign in to comment.