cot 0.3.1

The Rust web framework for lazy developers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% extends "base.html" %}

{% block title %}Model{% endblock %}

{% block content -%}
{%- let urls = urls -%}
{%- let model = model -%}
<h2>Remove {{ model.name() }}</h2>
    <p class="main-dialog">Are you sure you want to remove <strong>{{ object.display() }}</strong>?</p>

    <form action="" method="post">
        <div class="form-actions">
            <a href="{{ cot::reverse!(urls, "view_model", model_name = model.url_name())? }}" class="btn secondary">Cancel</a>
            <button type="submit" class="btn danger">Remove</button>
        </div>
    </form>
</form>
{%- endblock %}