30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md">
|
|
<form action='/update' method='POST'>
|
|
<textarea rows = "30" cols = "120" name = "content" id="content">{% if filecontent %}{{ filecontent }}
|
|
{% endif %}
|
|
</textarea><br>
|
|
<input type='hidden' id='sha' name='sha' value="{{ sha }}">
|
|
<input type='hidden' id='path' name='path' value="{{ path }}">
|
|
<button type="submit">Update in GIT!!</button>
|
|
</form>
|
|
</div>
|
|
<div class='col-md'>
|
|
<div id="drop-area">
|
|
<form class="my-form">
|
|
<p>Upload multiple files with the file dialog or by dragging and dropping images onto the dashed region. Files are automatically uploaded to git!</p>
|
|
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
|
|
<label class="button" for="fileElem">Select some files</label>
|
|
</form>
|
|
<progress id="progress-bar" max=100 value=0></progress>
|
|
</div>
|
|
<div id="gallery"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" src="{{ url_for('static',filename='upload.js') }}"></script>
|
|
{% endblock %}
|