<div class="ui vertical stripe segment">
    <div class="ui middle aligned container">
        <h2>CRUD: {{ mode }} {{ name }} Item</h2>
        <p>Allow for the creation or editing of a <span class="ui label">{{ name }}</span> item of the <span class="ui label">{{ collection }}</span> collection.</p>
        <a class="ui left labeled icon button" href="{{ listRoute }}"><i class="left chevron icon"></i>{{ name }} listing</a>

        {{#if deleteRoute }}
            <a class="ui right floated red button" href="{{ deleteRoute }}" onclick="return confirm('Are you sure you want to delete this item?');"><i class="remove icon"></i>delete {{ name }}</a>
        {{/if }}

        <div class="ui segment">
            {{> form/build form app=app}}
        </div>
    </div>
</div>
