<div class="md_simple_modal_wrap" my-modal-position>

  <div class="md_simple_modal_body">

    <form class="modal_simple_form" ng-submit="checkCode()">

      <h4 my-i18n="login_recovery_title"></h4>

      <div class="md_simple_form_description" my-i18n="login_recovery_description_md">
        <my-i18n-param name="email">
          <strong ng-bind="recovery.email_pattern"></strong>
        </my-i18n-param>
      </div>

      <div class="md-input-group" ng-class="{'md-input-error': recovery.error_field == 'code'}" my-labeled-input ng-switch="recovery.error_field == 'code'">
        <label ng-switch-when="true" class="md-input-label" my-i18n="login_code_incorrect"></label>
        <label ng-switch-default class="md-input-label" my-i18n="login_code_placeholder"></label>
        <input class="md-input" my-focused type="text" ng-model="recovery.code" name="code" my-focused />
      </div>

    </form>

  </div>

  <div class="md_simple_modal_footer">

    <button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button>
    <button class="btn btn-md btn-md-primary" ng-class="{disabled: recovery.updating}" ng-click="checkCode()" ng-disabled="recovery.updating" ng-bind="recovery.updating ? 'password_recover_active' : 'password_recover_submit' | i18n"></button>

  </div>

</div>