<h2>Contribution erfassen</h2>

{{#with (changeset contribution ContributionValidations) as |changeset|}}
  {{#form-for
    changeset
    class="layout-column-flex"
    submit=(action 'save')
    as |f|}}
    {{f.text-field "title" label="Titel" placeholder="Titel" required=true}}
    {{f.url-field "link" label="Link" placeholder="https://www.…"}}
    {{f.textarea-field "description" label="Beschreibung (in Markdown)"
      placeholder="Beschreibe hier deinen Open Source Beitrag..."
      required=true
      }}
    {{f.text-field "date" label="Datum" placeholder="2016-12-31" required=true}}
    <div class="text-center">
      {{f.button "Cancel" class="btn-link m-r-1" click=(action 'cancel')}}
      {{f.submit disabled=(or changeset.isInvalid changeset.isPristine)}}
    </div>
  {{/form-for}}
{{/with}}

<h2>Contribution erfassen</h2>

{{#with (changeset contribution ContributionValidations) as |changeset|}}
  {{#form-for
    changeset
    class="layout-column-flex"
    submit=(action 'save')
    as |f|}}
    {{f.text-field "title" label="Titel" placeholder="Titel" required=true}}
    {{f.url-field "link" label="Link" placeholder="https://www.…"}}
    {{f.textarea-field "description" label="Beschreibung (in Markdown)"
      placeholder="Beschreibe hier deinen Open Source Beitrag..."
      required=true
      }}
    {{f.text-field "date" label="Datum" placeholder="2016-12-31" required=true}}
    <div class="text-center">
      {{f.button "Cancel" class="btn-link m-r-1" click=(action 'cancel')}}
      {{f.submit
        disabled=(or changeset.isInvalid changeset.isPristine contribution.isSaving)}}
    </div>
  {{/form-for}}
{{/with}}

Disable submit button when clicked
Disable submit button when clicked

to prevent submitting the form twice.
