<div class="field ui items">
    <label>{{ _T("Picture:") }}</label>
    <div class="item">
        <div class="image">
    {% if member.id %}
        {% set photo_id = member.id %}
    {% else %}
        {% set photo_id = 0 %}
    {% endif %}
            <img id="photo_adh" src="{{ url_for("photo", {"id": photo_id, "rand": time}) }}" class="picture" width="{{ member.picture.getOptimalWidth() }}" height="{{ member.picture.getOptimalHeight() }}" alt="{{ _T("Picture") }}"/>
        </div>
        <div class="content">
            <div class="description">
                <div class="ui file action input">
                    <input type="file" name="photo"/>
                    <label for="photo" class="ui button{% if constant('GALETTE_MODE') == constant('\\Galette\\Core\\Galette::MODE_DEMO') %} disabled{% endif %}">
                        <i class="blue upload icon"></i>
                        {% if member.hasPicture() == 1 %}{{ _T("Choose another file") }}{% else %}{{ _T("Choose a file") }}{% endif %}
                    </label>
                </div>
            </div>
            <div class="extra ui basic fitted segment">
    {% if member.hasPicture() == 1 %}
                <div class="ui toggle checkbox">
                    <input type="checkbox" name="del_photo" id="del_photo" value="1"/>
                    <label for="del_photo" class="labelalign">{{ _T("Delete image") }}</label>
                </div>
    {% endif %}
            </div>
        </div>
    </div>
</div>
