<h2>Change Email</h2>
<form method="POST" action="/settings/change_email">
  <%== csrf_token_input_html %>

  <p>Current Email: <strong><%= parent_site.email %></strong></p>
  <p>New Email:</p>
  <input class="input-Area" name="email" type="text">

  <div>
    <input class="btn-Action" type="submit" value="Change Email">
  </div>
</form>

<h2>Email Notification Settings</h2>
<form method="POST" action="/settings/change_email_notification">
  <%== csrf_token_input_html %>

  <p>
    Receive Emails:
    <input name="send_emails" type="hidden" value="false">
    <input name="send_emails" type="checkbox" value="true"
      <% if current_site.owner.send_emails %>
        checked
      <% end %>
    >
  </p>

  <% if current_site.owner.stripe_paying_supporter? %>
    <p>
      Receive Invoice Receipts:
      <input name="email_invoice" type="hidden" value="false">
      <input name="email_invoice" type="checkbox" value="true"
        <% if current_site.owner.email_invoice %>
          checked
        <% end %>
      >
    </p>
  <% end %>

  <p>
    Receive Comment Emails:
    <input name="send_comment_emails" type="hidden" value="false">
    <input name="send_comment_emails" type="checkbox" value="true"
      <% if current_site.owner.send_comment_emails %>
        checked
      <% end %>
    >
  </p>

  <p>
    Receive Follow Emails:
    <input name="send_follow_emails" type="hidden" value="false">
    <input name="send_follow_emails" type="checkbox" value="true"
      <% if current_site.owner.send_follow_emails %>
        checked
      <% end %>
    >
  </p>

  <div>
    <input class="btn-Action" type="submit" value="Update Notification Settings">
  </div>
</form>
