{{#partial "content"}}
  <h1>Add a new greeting</h1>

  {{#if errors}}
    <p class="h2 text-danger">There were errors in the submitted greeting!</p>
  {{/if}}

  <form action="/greeting/" method="post">
    <div class="form-group {{#if errors.template}}has-error{{/if}}">
      <label for="template">Greeting text</label>
      <input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
      {{#if errors.template}}
      <p class="text-danger">{{errors.template}}</p>
      {{/if}}
    </div>

    <button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
    <a class="btn btn-danger" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
  </form>
{{/partial}}

{{> layouts/base title="New greeting"}}

{{#partial "content"}}
  <h1>Add a new greeting</h1>

  {{#if errors}}
    <p class="h2 text-danger">There were errors in the submitted greeting!</p>
  {{/if}}

  <form action="/greeting/" method="post">
    <div class="form-group {{#if errors.template}}has-error{{/if}}">
      <label for="template">Greeting text</label>
      <input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
      {{#if errors.template}}
      <p class="text-danger">{{errors.template}}</p>
      {{/if}}
    </div>

    <button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
    <a class="btn btn-warning" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
  </form>
{{/partial}}

{{> layouts/base title="New greeting"}}

Downgrade cancel button on the new page to warning.
Downgrade cancel button on the new page to warning.

Keep danger for delete!
