Ansinterface/templates/edit_file.html

17 lines
662 B
HTML
Raw Permalink Normal View History

2023-12-19 10:32:13 +00:00
{% extends 'base.html' %}
{% block content %}
2023-12-19 12:48:06 +00:00
<div class="card">
<div class="card-header">
Editing <code>{{ file_name }}</code>
</div>
<div class="card-body">
2023-12-19 10:32:13 +00:00
<form method="post" action="{{ url_for('edit_file') }}">
2023-12-19 12:48:06 +00:00
<textarea id="code" name="file_content" class="form-control numbered">{{ file_content }}</textarea><br>
2023-12-19 10:32:13 +00:00
<input type="hidden" id="file_path" name="file_path" value="{{ filepath }}">
2023-12-19 12:48:06 +00:00
<a href="/" class="btn btn-info">Back</a>
2023-12-19 10:32:13 +00:00
<button type="submit" value="Save Changes" class="btn btn-info" >Save</button>
</form>
2023-12-19 12:48:06 +00:00
</div>
</div>
2023-12-19 10:32:13 +00:00
{% endblock %}