{% extends 'base.html' %} {% from "macros.html" import render_field, render_included_field %} {% block title %}Register or Edit License Tier{% endblock %} {% block content_title %}Register or Edit License Tier{% endblock %} {% block content_description %}Register or Edit License Tier{% endblock %} {% block content %} {{ form.hidden_tag() }} {% set main_fields = ['name', 'version', 'start_date', 'end_date', 'basic_fee_d', 'basic_fee_e'] %} {% for field in form %} {{ render_included_field(field, disabled_fields=[], include_fields=main_fields) }} {% endfor %}
{% set storage_fields = ['max_storage_mb', 'additional_storage_price_d', 'additional_storage_price_e', 'additional_storage_bucket'] %} {% for field in form %} {{ render_included_field(field, disabled_fields=[], include_fields=storage_fields) }} {% endfor %}
{% set embedding_fields = ['included_embedding_mb', 'additional_embedding_price_d', 'additional_embedding_price_e', 'additional_embedding_bucket', 'standard_overage_embedding'] %} {% for field in form %} {{ render_included_field(field, disabled_fields=[], include_fields=embedding_fields) }} {% endfor %}
{% set interaction_fields = ['included_interaction_tokens', 'additional_interaction_token_price_d', 'additional_interaction_token_price_e', 'additional_interaction_bucket', 'standard_overage_interaction'] %} {% for field in form %} {{ render_included_field(field, disabled_fields=[], include_fields=interaction_fields) }} {% endfor %}
{% endblock %} {% block content_footer %} {% endblock %}