{% extends 'base.html' %} {% from "macros.html" import render_field, render_included_field %} {% block title %}Create or Edit License for Current Tenant{% endblock %} {% block content_title %}Create or Edit License for Current Tenant{% endblock %} {% block content_description %}Create or Edit a new License based on the selected License Tier for the current Tenant{% endblock %} {% block content %} {{ form.hidden_tag() }} {% set main_fields = ['start_date', 'nr_of_periods', 'currency', 'yearly_payment', 'basic_fee'] %} {% for field in form %} {{ render_included_field(field, readonly_fields=ext_readonly_fields + ['currency'], include_fields=main_fields) }} {% endfor %}
{% set storage_fields = ['max_storage_mb', 'additional_storage_allowed', 'additional_storage_price', 'additional_storage_bucket'] %} {% for field in form %} {{ render_included_field(field, readonly_fields=ext_readonly_fields, include_fields=storage_fields) }} {% endfor %}
{% set embedding_fields = ['included_embedding_mb', 'additional_embedding_allowed', 'additional_embedding_price', 'additional_embedding_bucket', 'overage_embedding'] %} {% for field in form %} {{ render_included_field(field, readonly_fields=ext_readonly_fields, include_fields=embedding_fields) }} {% endfor %}
{% set interaction_fields = ['included_interaction_tokens', 'additional_interaction_allowed', 'additional_interaction_token_price', 'additional_interaction_bucket', 'overage_interaction'] %} {% for field in form %} {{ render_included_field(field, readonly_fields=ext_readonly_fields, include_fields=interaction_fields) }} {% endfor %}
{% endblock %} {% block content_footer %} {% endblock %}