<div class="modal fade" id="modal-full" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close button-primary" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"></h4>
      </div>
      <div class="modal-body"></div>
      <div class="modal-footer"></div>
    </div>
  </div>
</div>

<script id="modal-gmail-auth-warning" type="text/template">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close button-primary" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">
          <span class="icon-help"></span>
          <span class="title">{{_("Connecting To Gmail")}}</span>
        </h4>
      </div>
      <div class="modal-body clearfix">
        <p>Check your <a href="https://www.google.com/settings/security" target="_blank">Google Security Settings</a> before entering your password, otherwise you might not be able to connect your Mailpile.</p>
        <p><a href="https://www.google.com/settings/security" target="_blank">
          <img class="img-border" src="/static/img/help/google-security-tab.png">
        </a></p>
        <p>Make sure one of the following conditions is met:</p>
        <ul class="circle">
          <li>Enable access for "Less secure apps" (non Google apps)</li> 
          <li>Generate a Google 2-Step "App Password"</li>
        </ul>
        <p>
          <a href="/page/gmail-2-step-verification/" class="button-secondary" target="_blank">
            <span class="icon-help"></span> Help: Gmail's 2-Step App Passwords
          </a>
        </p>
      </div>
    </div>
  </div>
</script>

<script id="modal-gmail-auth-error" type="text/template">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close button-primary" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">
          <span class="icon-signature-unknown"></span>
          <span class="title">{{_("Could Not Connect To Gmail")}}</span>
        </h4>
      </div>
      <div class="modal-body clearfix">
        <p>Unfortunately we could not connect to your Gmail account. Check your <a href="https://www.google.com/settings/security" target="_blank">Google Security Settings</a>. The reason could be one of the following:</p>
        <ul class="circle">
          <li>You entered the wrong Gmail address and/or password</li>
          <li>Your Google Security Settings might be set to block non Google apps</li>
          <li>You might have Google's 2 factor auth enabled</li>
        </ul>
        <p>
          <a href="/page/gmail-2-step-verification/" class="button-secondary" target="_blank">
            <span class="icon-help"></span> Help: Gmail's 2-Step App Passwords
          </a>
        </p>
      </div>
    </div>
  </div>
</script>

<script id="modal-security-level-idiot" type="text/template">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close button-primary" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">
          <span class="icon-signature-unknown"></span>
          <span class="title">OMG, Seriously?</span>
        </h4>
      </div>
      <div class="modal-body clearfix">
        <p>Have you not heard- the most powerful governments in the world are performing unwarranted dragnet surveillance on most of the  population of the planet in datacenters like the one pictured above?</p>
        <p>Yes, that means pictures of your kids, your college party photos, your late night sexting pics, the porn you share with your friends, your confidential business documents, and birthday letters to grandma are all being archived whenever the Government can.</p>
        <p>Not only does this behavior undermine the very foundations & security of the internet that we know and love, but it is also detrimental to our liberties and freedoms as human beings as declared in the <a href="http://www.un.org/en/documents/udhr/" target="_blank">Universal Declaration of Human Rights</a>.</p>
      </div>
    </div>
  </div>
</script>


<script id="modal-security-enter-passphrase" type="text/template">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">
          <span class="icon-lock-closed"></span>
          <span class="title"> Save Security Settings</span>
        </h4>
      </div>
      <div class="modal-body clearfix">
      <form id="form-setup-security-passphrase" class="standard half-bottom" method="POST">
          <p>In order to update your security settings, please enter your Mailpile passphrase.</p>
          <input id="input-setup-security-passphrase" class="medium" type="password" name="passphrase" autocorrect="off" autocapitalize="off" placeholder="top secret super duper passphrase">  
          <div id="setup-security-passphrase-status" class="half-bottom">
            <span class="validation-message"></span>
          </div>
          <a href="#" id="btn-setup-security-passphrase" class="button-primary" title="{{_("Save Changes")}}" alt="{{_("Save Changes")}}">
            {{_("Save Changes")}}
          </a>
      </form>
      </div>
    </div>
  </div>
</script>