{% extends "markettracker/base.html" %}
{% load i18n humanize %}
{% block page_title %}{% trans "Manage Stock" %}{% endblock %}
{% block header_nav_collapse_right %}
{{ block.super }}
{% endblock %}
{% block content %}
{% if market_character %}
{{ market_character.character.character.character_name }}
{% endif %}
{# ============ ITEMS FORM ============ #}
{% if form %}
{% trans "Add/Edit Item" %}
{# ============ CONTRACTS ADD/EDIT FORM (na tej samej stronie) ============ #}
{% elif tc_add_mode and tc_form or tc_edit_id and tc_form %}
{% if tc_edit_id %}{% trans "Edit Tracked Contract" %}{% else %}{% trans "Add Tracked Contract" %}{% endif %}
{# ============ NORMALNY WIDOK Z LISTAMI ============ #}
{% else %}
{% trans "Manage Stock" %}
{# ITEMS CARD #}
| {% trans "Icon" %} |
{% trans "Item Name" %} |
{% trans "Desired Quantity" %} |
|
{% for item in tracked_items %}
 |
{{ item.item.name }} |
{{ item.desired_quantity|default:"β" }} |
βοΈ {% trans "Edit" %}
|
{% empty %}
| {% trans "No items to display." %} |
{% endfor %}
{# CONTRACTS CARD #}
| {% trans "Type" %} |
{% trans "Name / Filter" %} |
{% trans "Desired" %} |
{% trans "Max price" %} |
{% trans "Actions" %} |
{% for tc in tracked_contracts %}
|
{% if tc.mode == "custom" %}
{% trans "Custom" %}
{% else %}
{% trans "Doctrine" %}
{% endif %}
|
{% if tc.mode == "custom" %}
{{ tc.title_filter|default:"β" }}
{% else %}
{% if tc.fitting %}
{{ tc.fitting.name }} ({{ tc.fitting.ship_type.name }})
{% else %}
{% trans "Missing fitting" %}
{% endif %}
{% endif %}
|
{{ tc.desired_quantity|default:"β" }} |
{% if tc.max_price and tc.max_price|floatformat != "0" %}
{{ tc.max_price|floatformat:2|intcomma }} ISK
{% else %}
β
{% endif %}
|
βοΈ {% trans "Edit" %}
|
{% empty %}
| {% trans "No tracked contracts yet." %} |
{% endfor %}
{% endif %}
{% endblock %}