add_embody.html 1.13 KB
Newer Older
Ossi Laine's avatar
Ossi Laine committed
1
2
3
4
5
{% extends "base.html" %}
{% block content %}
  
<h1 class="container mt-5 display-4 text-center"><br>Add new embody picture:</h1>
<br>
6
<p class="lead"> Upload new embody image. Submit without choosing file if you want to use default embody picture.
Ossi Laine's avatar
Ossi Laine committed
7
8
9
10
11
12
13
</p>

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

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

    <div class="form-group">
14
15
        <label for="Background questions">Image question/explanation:</label>
        <textarea class="form-control" rows="5" id="embody_picture_text" name="question">Color the regions whose activity you feel increasing or getting stronger</textarea>
Ossi Laine's avatar
Ossi Laine committed
16
17
18
19
20
21
22
23
24
    </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>

25
    <button type="submit" class="btn btn-primary">Submit</button>
Ossi Laine's avatar
Ossi Laine committed
26
27
28
29
30
31
    <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 %}