{% extends "base.html" %}
{% from "macros.html" import render_field %}
{% block title %}Update Document{% endblock %}

{% block content_title %}Update Document{% endblock %}
{% block content_description %}Update document details.{% endblock %}

{% block content %}
    <form method="post">
        {{ form.hidden_tag() }}
        {% set disabled_fields = [] %}
        {% set exclude_fields = [] %}

        {{ render_field(form.name, disabled_fields, exclude_fields) }}
        {{ render_field(form.valid_from, disabled_fields, exclude_fields) }}
        {{ render_field(form.valid_to, disabled_fields, exclude_fields) }}

        <div class="form-group">
            <label for="catalog_name">Catalog</label>
            <input type="text" class="form-control" id="catalog_name" value="{{ catalog_name }}" readonly>
        </div>
        <button type="submit" class="btn btn-primary">Update Document</button>
    </form>
{% endblock %}