b33320e5f6f4048b0022332f2b1eb9918f363f72
[org.fsf.memberdashboard.git] / templates / CRM / Memberdashboard / Page / Communications.tpl
1 {*
2 FSF Member Dashboard
3 Copyright © 2014 Free Software Foundation, Inc.
4
5 This file is a part of FSF Member Dashboard.
6
7 FSF Member Dashboard is free software: you can redistribute it
8 and/or modify it under the terms of the GNU Affero General Public
9 License as published by the Free Software Foundation, either version
10 3 of the License, or (at your option) any later version.
11
12 FSF Member Dashboard is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with FSF Member Dashboard. If not, see
19 <http://www.gnu.org/licenses/>.
20 *}
21
22 <div class="crm-dashboard-groups">
23 <div class="header-dark">
24 {ts}Your Group(s){/ts}
25 </div>
26 {include file="CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl"}
27 </div>
28
29 <div>
30 <div class="header-dark">
31 {ts}Email Preferences{/ts}
32 </div>
33
34 <form method="post" action="{crmURL p='/civicrm/member-dashboard/communications'}">
35 <div class="form-item">
36 <label for="preferred_mail_format">Preferred Email Format</label>
37 <select name="preferred_mail_format">
38 {foreach from=$mailFormats item=format}
39 <option
40 {if $contact.preferred_mail_format eq $format}
41 selected="selected"
42 {/if}
43 value="{$format}">
44 {$format}
45 </option>
46 {/foreach}
47 </select>
48 <input type="submit" value="Save"/>
49 </div>
50 </form>
51 </div>
52
53 {include file="CRM/Memberdashboard/Page/DashboardElement.tpl"
54 element=$dashboardElements.CiviEvent }