add_embody.html 1.04 KB
Newer Older
Ossi Laine's avatar
Ossi Laine committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "base.html" %}
{% block content %}
  
<h1 class="container mt-5 display-4 text-center"><br>Add new embody picture:</h1>
<br>
<p class="lead">
Upload new embody image... instructions here for admins..
</p>

{% from "_formhelpers.html" import render_field %}

<form method="post" enctype="multipart/form-data">

    <div class="form-group">
        <label for="Background questions">image question/explanation:</label>
        <textarea class="form-control" rows="5" id="embody_picture_text" name="question"></textarea>
    </div>

    <div class="custom-file">
        <input type="file" id="embody-file-input" class="custom-file-input" name="picture" accept="image/*" > 
        <label class="custom-file-label" for="upload_file">Choose file</label>
    </div>

    <hr>

    <button type="submit" class="btn btn-primary submit-file" disabled>Submit</button>
    <a class="btn btn-primary" href="{{ request.referrer }}" role="button">Cancel</a>
</form>

<script src="{{ url_for('static', filename='js/enable_button.js') }}" ></script>

{% endblock %}