- Minor corrections to entitlement changes and upgrades
- started new eveai_entitlements component (not finished)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{{ form.hidden_tag() }}
|
||||
{% set main_fields = ['start_date', 'end_date', 'currency', 'yearly_payment', 'basic_fee'] %}
|
||||
{% for field in form %}
|
||||
{{ render_included_field(field, disabled_fields=['currency'], include_fields=main_fields) }}
|
||||
{{ render_included_field(field, disabled_fields=ext_disabled_fields + ['currency'], include_fields=main_fields) }}
|
||||
{% endfor %}
|
||||
<!-- Nav Tabs -->
|
||||
<div class="row mt-5">
|
||||
@@ -40,21 +40,21 @@
|
||||
<div class="tab-pane fade show active" id="storage-tab" role="tabpanel">
|
||||
{% set storage_fields = ['max_storage_mb', 'additional_storage_price', 'additional_storage_bucket'] %}
|
||||
{% for field in form %}
|
||||
{{ render_included_field(field, disabled_fields=[], include_fields=storage_fields) }}
|
||||
{{ render_included_field(field, disabled_fields=ext_disabled_fields, include_fields=storage_fields) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<!-- Embedding Tab -->
|
||||
<div class="tab-pane fade" id="embedding-tab" role="tabpanel">
|
||||
{% set embedding_fields = ['included_embedding_mb', 'additional_embedding_price', 'additional_embedding_bucket', 'overage_embedding'] %}
|
||||
{% for field in form %}
|
||||
{{ render_included_field(field, disabled_fields=[], include_fields=embedding_fields) }}
|
||||
{{ render_included_field(field, disabled_fields=ext_disabled_fields, include_fields=embedding_fields) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<!-- Interaction Tab -->
|
||||
<div class="tab-pane fade" id="interaction-tab" role="tabpanel">
|
||||
{% set interaction_fields = ['included_interaction_tokens', 'additional_interaction_token_price', 'additional_interaction_bucket', 'overage_interaction'] %}
|
||||
{% for field in form %}
|
||||
{{ render_included_field(field, disabled_fields=[], include_fields=interaction_fields) }}
|
||||
{{ render_included_field(field, disabled_fields=ext_disabled_fields, include_fields=interaction_fields) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user