{% extends "base.html" %} {% from "partials/components.html" import select_field, feedback, empty_state, table_container with context %} {% block title %}Currencies ยท CalMiner{% endblock %} {% block content %} Currency Overview Current availability of currencies for project inputs. {% if currency_stats %} Total Currencies {{ currency_stats.total }} Active {{ currency_stats.active }} Inactive {{ currency_stats.inactive }} {% else %} {{ empty_state("currencies-overview-empty", "No currency data available yet.") }} {% endif %} {% call table_container( "currencies-table-container", aria_label="Configured currencies", heading="Configured Currencies" ) %} Code Name Symbol Status Actions {% endcall %} {{ empty_state( "currencies-table-empty", "No currencies configured yet.", hidden=currencies|length > 0 ) }} Manage Currencies Create new currencies or update existing configurations inline. {% set status_options = [ {"id": "true", "name": "Active"}, {"id": "false", "name": "Inactive"} ] %} {{ select_field( "Currency to update (leave blank for new)", "currency-form-existing", name="existing_code", options=currencies, placeholder="Create a new currency", value_attr="code", label_attr="name" ) }} Currency code Currency name Currency symbol (optional) {{ select_field( "Status", "currency-form-status", name="is_active", options=status_options, include_blank=False ) }} Save Currency Reset {{ feedback("currency-form-feedback") }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}
Current availability of currencies for project inputs.
Create new currencies or update existing configurations inline.