- Translation Service improvement - Enable activation / deactivation of Processors - Renew API-keys for Mistral (leading to workspaces) - Align all Document views to use of a session catalog - Allow for different processors for the same file type
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% from "macros.html" import render_field %}
|
|
|
|
{% block title %}Edit Processor{% endblock %}
|
|
|
|
{% block content_title %}Edit Processor{% endblock %}
|
|
{% block content_description %}Edit Processor for Catalog <b>{% if session.catalog_name %}{{ session.catalog_name }}{% else %}No Catalog{% endif %}</b>{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
{{ form.hidden_tag() }}
|
|
{% set disabled_fields = ['type'] %}
|
|
{% set exclude_fields = [] %}
|
|
<!-- Render Static Fields -->
|
|
{% for field in form.get_static_fields() %}
|
|
{{ render_field(field, disabled_fields, exclude_fields) }}
|
|
{% endfor %}
|
|
<!-- Render Dynamic Fields -->
|
|
{% for collection_name, fields in form.get_dynamic_fields().items() %}
|
|
{% if fields|length > 0 %}
|
|
<h4 class="mt-4">{{ collection_name }}</h4>
|
|
{% endif %}
|
|
{% for field in fields %}
|
|
{{ render_field(field, disabled_fields, exclude_fields) }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
<button type="submit" class="btn btn-primary">Save Processor</button>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block content_footer %}
|
|
|
|
{% endblock %}
|