{% extends "base.html" %}

{% block title %}Edit XML File - Dell Server Info{% endblock %}

{% block extra_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/edit_xml.css') }}">
{% endblock %}

{% block content %}
<div class="card shadow-lg">
    <div class="card-header bg-primary text-white">
        <h3>Edit XML File: <strong>{{ filename }}</strong></h3>
    </div>
    <div class="card-body">
        <form method="post">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
            <div class="form-group">
                <label for="xmlContent">XML Content</label>
                <textarea id="xmlContent" name="content" class="form-control" rows="20">{{ content }}</textarea>
            </div>
            <button type="submit" class="btn btn-success mt-3">Save Changes</button>
            <a href="{{ url_for('xml.xml_management') }}" class="btn btn-secondary mt-3">Cancel</a>
        </form>
    </div>
</div>
{% endblock %}