39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
<!-- Navigation -->
|
|
{% extends "base.html" %} {% block title %}Input Dataset{% endblock %}
|
|
<!-- Page Content -->
|
|
{% block content %}
|
|
<div class="container">
|
|
{% include "menu_dataset.html" %}
|
|
|
|
<div id="content">
|
|
<form method="post" action="{{ url_for('input_dataset') }}" enctype="multipart/form-data" class="form-container">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<div class="form-group">
|
|
<a href="{{ url_for('download_template') }}" class="btn btn-success" role="button">Download Template Excel</a>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Upload Document (format Dokumen .xlsx)</label>
|
|
<br />
|
|
<label>File Excel terdiri dari kolom (tweets dan label)</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="file" name="document" class="form-control-file" />
|
|
</div>
|
|
{% for error in form.document.errors %}
|
|
<div class="alert alert-danger" role="alert">{{ error }}</div>
|
|
{% endfor %}
|
|
|
|
{%if msg %}
|
|
<div class="alert alert-danger" role="alert">{{ msg }}</div>
|
|
{% endif %}
|
|
<div class="form-group">
|
|
<button class="btn btn-primary" type="submit" name="submit" value="Upload" onclick="spinner();">
|
|
Submit
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- /.container -->
|
|
{% endblock %} |