Remove more HTML that wasn't supposed to be committed.
[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 <div class="header-dark">LibrePlanet</div>
11
12 <a href="https://libreplanet.org">
13 <img src="//static.fsf.org/nosvn/big-logo.png" alt="LibrePlanet" />
14 </a>
15
16 <p>
17 Associate members get gratis admission to
18 <a href="https://libreplanet.org">LibrePlanet</a>,
19 the FSF's annual conference.
20 </p>
21
22 <p>
23 Use your FSF account to join a
24 <a href="https://libreplanet.org/">
25 local free software group at LibrePlanet.
26 </a>
27 </p>
28
29 <div class="header-dark">Jabber/XMPP</div>
30
31 <p>
32 Your Jabber/XMPP account is: <strong>{$user->name}@member.fsf.org</strong>
33 </p>
34
35 <h3>Instructions</h3>
36
37 <p>
38 Use your FSF username as the jabber username, and member.fsf.org as
39 the domain if your XMPP client supports server discovery via a DNS
40 SRV record lookup. Most XMPP clients support this. If your client
41 does not, you can use jabber.member.fsf.org as the server name. Make
42 sure to enable encryption: we support TLS on port 5222 only. Your
43 password is the same as your FSF member password. (Please report
44 any problems you might encounter to
45 <a href="mailto:sysadmin@gnu.org">sysadmin@gnu.org</a>.)
46 </p>
47
48 <div class="header-dark">Email Forwarding</div>
49
50 <p>
51 You may maintain up to five email aliases. Each localpart name
52 exists in the member.fsf.org domain name and can forward to one
53 email address. The localpart you request might not be available.
54 </p>
55
56 <p>
57 For example, a localpart of "yyz" with a forward to value of
58 "xyzzy@example.com" would cause mail sent to "yyz@member.fsf.org" to
59 be forwarded to "xyzzy@example.com".
60 </p>
61
62 <p>
63 Please note that it may take up to a half hour for new forwards to
64 take effect.
65 </p>
66
67 {if !empty($emailAliases)}
68 <form method="POST"
69 action="{crmURL p='civicrm/member-dashboard/benefits' q='action=edit'}">
70 <table>
71 <thead>
72 <tr>
73 <th>Delete</th>
74 <th>Local Part</th>
75 <th>Forward</th>
76 </tr>
77 </thead>
78 <tbody>
79 {foreach from=$emailAliases item=alias}
80 <tr>
81 <td>
82 <input type="checkbox" name="delete[{$alias->id}]" value="delete" />
83 <input type="hidden" name="ids[]" value="{$alias->id}" />
84 </td>
85 <td>
86 <input type="text" name="localparts[]" value="{$alias->localpart}" />
87 </td>
88 <td>
89 <input type="text" name="forwards[]" value="{$alias->forward}" />
90 </td>
91 </tr>
92 {/foreach}
93 </tbody>
94 </table>
95
96 <input class="crm-form-submit default" type="submit" value="Save" />
97 </form>
98 {/if}
99
100 <h3>Add New Alias</h3>
101
102 <form method="POST"
103 action="{crmURL p='civicrm/member-dashboard/benefits' q='action=add'}">
104 <label for="localpart">Local part</label>
105 <input type="text" name="localpart" />
106 <label for="forward">Forward</label>
107 <input type="text" name="forward" />
108 <input class="crm-form-submit default" type="submit" value="Add" />
109 </form>
110
111 {if !empty($buttonUrl) }
112 <div class="header-dark">Member button</div>
113
114 <p>
115 Display this member button proudly on your website to show how
116 long you have been an FSF member!
117 </p>
118
119 <img src="{$buttonUrl}{$contact.id}.png" />
120 {/if}
121
122 <div class="header-dark">Member Forums</div>
123
124 <p>
125 Post and participate in our
126 <a href="https://my.fsf.org/associate/forum">
127 Members-Only Forums
128 </a>
129 </p>
130 {else}
131 <div class="header-dark">Members Only</div>
132
133 <p>
134 Only FSF Associate Members can access this page.
135 <a href="https://fsf.org/join">Become an FSF Associate Member today!</a>
136 </p>
137 {/if}