{{ define "title" }}Withdraw Motion {{ .Motion.Tag }}{{ end }}

{{ define "main" }}
    <div class="ui form segment">
        {{ template "motion_display" .Motion }}
        <form action="/motions/{{ .Motion.Tag }}/withdraw" method="post">
            <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}">
            <div class="ui negative message">
                <div class="header">
                    Withdraw motion?
                </div>
                <p>Do you want to withdraw motion <strong>{{ .Motion.Tag }}: {{ .Motion.Title }}</strong>?</p>
            </div>
            <button class="ui negative labeled icon button" type="submit">
                <i class="trash icon"></i> Withdraw
            </button>
            <a href="/motions/" class="ui button">Cancel</a>
        </form>
    </div>
{{ end }}