51 lines
1.9 KiB
HTML
51 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Edit XML File</title>
|
|
<style>
|
|
::-webkit-scrollbar { width: 12px; }
|
|
::-webkit-scrollbar-track { background: #f1f1f1; }
|
|
::-webkit-scrollbar-thumb { background-color: #888; border-radius: 6px; }
|
|
::-webkit-scrollbar-thumb:hover { background-color: #555; }
|
|
html { scrollbar-width: thin; scrollbar-color: #888 #f1f1f1; }
|
|
textarea {
|
|
width: 100%;
|
|
height: 600px;
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
background-color: #f9f9f9;
|
|
border: 1px solid #ccc;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
textarea:hover { background-color: #f0f0f0; }
|
|
.xml-list-item {
|
|
padding: 10px;
|
|
background-color: #ffffff;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
.xml-list-item:hover { background-color: #e9ecef; cursor: pointer; }
|
|
.btn { margin-top: 20px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<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>
|
|
</body>
|
|
{% endblock %} |