Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 48 lines (48 sloc) 1.786 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
[% IF member.active %]
  <h1>Cancel membership for [% member.name %]</h1>
  <div class="alert-message warning">
    <strong>Note:</strong>
      [% IF is_admin %]
        Cancelling membership will remove their cardlock access and delete their billing data.
      [% ELSE %]
        This will remove your cardlock access and delete your billing data!
      [% END %]
  </div>
  [% SET uri = "/member/cancel" %]
  [% IF is_admin %]
    [% SET uri = "/members/" _ member.member_id _ "/cancel" %]
  [% END %]
  <form action="[% uri %]" method="GET">
    <input type="hidden" name="force" value="1" />
    <div class="input">
      [% IF is_admin %]
        <p><strong>Please record why you're cancelling their account.</strong></p>
      [% ELSE %]
        <p><strong>Please tell us why you're leaving the co-op. Be honest. :)</strong></p>
      [% END %]
      <textarea class="xlarge" name="reason" rows="3"></textarea>
    </div>
    [% IF is_admin AND member.email %]
      <div class="input">
          Send email to the member?
          <input type="checkbox" name="send_email" checked="checked" value="1" />
      </div>
    [% END %]
    <div class="actions">
        [% IF is_admin %]
          <input type="submit" class="btn large primary" value="Cancel their account" />
          <a class="btn" href="/members/[% member.member_id %]">No, go back.</a>
        [% ELSE %]
          <input type="submit" class="btn large primary" value="Cancel my account" />
          <a class="btn" href="/member/view">No, go back.</a>
        [% END %]
    </div>
  </form>
  <p>
  </p>
[% ELSE %]
  <h1>[% member.name %]'s membership is already cancelled.</h1>
  <p>
    <a href="[% IF is_admin %]/members/[% member.member_id %][% ELSE %]/member/view[% END %]">Go back.</a>
  </p>
[% END %]
Something went wrong with that request. Please try again.