<ion-view class="settings">
  <ion-nav-bar class="bar-royal">
    <ion-nav-title>
      {{'Email Notifications'|translate}}
    </ion-nav-title>
    <ion-nav-back-button>
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content>
    <div class="settings-explanation">
      <div class="settings-description" translate>
        You'll receive email notifications about payments sent and received from {{wallet.name}}.
      </div>
      <a href ng-if="emailForExist" class="settings-description-disabled" ng-click="save(null)" translate>Remove email notifications</a>
    </div>
    <form name="emailForm" ng-submit="save(email.value)" novalidate>
      <div class="list settings-input-group">
        <label class="item item-input item-stacked-label">
          <span class="input-label" translate>Email Address</span>
          <input type="email" id="email" name="email" ng-model="email.value" required></input>
        </label>
      </div>
      <button type="submit"
              class="button button-standard button-primary"
              ng-disabled="emailForm.$invalid" translate>
        Save
      </button>
    </form>
  </ion-content>
</ion-view>
