updated order of perks in member benefits page
[org.fsf.memberdashboard.git] / templates / CRM / Memberdashboard / Page / Benefits.tpl
1 {if $hasValidMembership}
2 <div class="header-dark">Shop Discount</div>
3
4 <p>
5 Enjoy 20% off all merchandise at the
6 <a href="http://shop.fsf.org/">FSF shop</a>
7 using promotional code <strong>ASSOC</strong>
8 </p>
9
10
11 <div class="header-dark"> Discount on Hardware from ThinkPenguin </div>
12
13 <p>
14 <a href="https://www.thinkpenguin.com/">ThinkPenguin</a> is a purveyor of computers and
15 peripherals that provides 5% off all their products to FSF members. ThinkPenguin offers some
16 devices that are certified by the FSF under our <a href="https://www.fsf.org/ryf">Respects
17 Your Freedom hardware certification</a>, and all of their products are able to run or
18 interface with <a href="https://www.gnu.org/distros/free-distros.html">free GNU/Linux
19 distributions</a>. Use the discount code <strong>FSFMEMBER</strong> at checkout.
20 </p>
21
22
23 {if !empty($buttonUrl) }
24 <div class="header-dark">Member button</div>
25
26 <p>
27 Display this member button proudly on your website to show how
28 long you have been an FSF member!
29 </p>
30
31 <img src="{$buttonUrl}{$contact.id}.png" />
32 {/if}
33
34
35 <div class="header-dark">LibrePlanet</div>
36
37 <a href="https://libreplanet.org">
38 <img src="//static.fsf.org/nosvn/big-logo.png" alt="LibrePlanet" />
39 </a>
40
41 <p>
42 Associate members get gratis admission to
43 <a href="https://libreplanet.org">LibrePlanet</a>,
44 the FSF's annual conference.
45 </p>
46
47 <p>
48 Use your FSF account to join a
49 <a href="https://libreplanet.org/">
50 local free software group at LibrePlanet.
51 </a>
52 </p>
53
54
55 <div class="header-dark">Email Forwarding</div>
56
57 <p>
58 You may maintain up to five email aliases. Each localpart name
59 exists in the member.fsf.org domain name and can forward to one
60 email address. The localpart you request might not be available.
61 </p>
62
63 <p>
64 For example, a localpart of "yyz" with a forward to value of
65 "xyzzy@example.com" would cause mail sent to "yyz@member.fsf.org" to
66 be forwarded to "xyzzy@example.com".
67 </p>
68
69 <p>
70 Please note that it may take up to a half hour for new forwards to
71 take effect.
72 </p>
73
74 {if !empty($emailAliases)}
75 <form method="POST"
76 action="{crmURL p='civicrm/member-dashboard/benefits' q='action=edit'}">
77 <table>
78 <thead>
79 <tr>
80 <th>Delete</th>
81 <th>Local Part</th>
82 <th>Forward</th>
83 </tr>
84 </thead>
85 <tbody>
86 {foreach from=$emailAliases item=alias}
87 <tr>
88 <td>
89 <input type="checkbox" name="delete[{$alias->id}]" value="delete" />
90 <input type="hidden" name="ids[]" value="{$alias->id}" />
91 </td>
92 <td>
93 <input type="text" name="localparts[]" value="{$alias->localpart}" />
94 </td>
95 <td>
96 <input type="text" name="forwards[]" value="{$alias->forward}" />
97 </td>
98 </tr>
99 {/foreach}
100 </tbody>
101 </table>
102
103 <input class="crm-form-submit default" type="submit" value="Save" />
104 </form>
105 {/if}
106
107 <h2>Add New Alias</h2>
108
109 <form method="POST"
110 action="{crmURL p='civicrm/member-dashboard/benefits' q='action=add'}">
111 <label for="localpart">Local part</label>
112 <input type="text" name="localpart" />
113 <label for="forward">Forward</label>
114 <input type="text" name="forward" />
115 <input class="crm-form-submit default" type="submit" value="Add" />
116 </form>
117
118
119 <div class="header-dark">Jabber/XMPP</div>
120
121 <p>
122 Your Jabber/XMPP account is: <strong>{$user->name}@member.fsf.org</strong>
123 </p>
124
125 <h2>Instructions</h2>
126
127 <p>
128 Use your FSF username as the jabber username, and member.fsf.org as
129 the domain if your XMPP client supports server discovery via a DNS
130 SRV record lookup. Most XMPP clients support this. If your client
131 does not, you can use jabber.member.fsf.org as the server name. Make
132 sure to enable encryption: we support TLS on port 5222 only. Your
133 password is the same as your FSF member password. (Please report
134 any problems you might encounter to
135 <a href="mailto:sysadmin@gnu.org">sysadmin@gnu.org</a>.)
136 </p>
137
138
139 <div class="header-dark">Member Forums</div>
140
141 <p>
142 Post and participate in our
143 <a href="https://my.fsf.org/associate/forum">
144 Members-Only Forums
145 </a>
146 </p>
147 {else}
148 <div class="header-dark">Members Only</div>
149
150 <p>
151 Only FSF Associate Members can access this page.
152 <a href="https://fsf.org/join">Become an FSF Associate Member today!</a>
153 </p>
154 {/if}