communications: Apply civi CSS to form elements.
[org.fsf.memberdashboard.git] / templates / CRM / Memberdashboard / Page / Communications.tpl
index b33320e5f6f4048b0022332f2b1eb9918f363f72..389e31c728b529636a0437799ae69be276008fda 100644 (file)
     {ts}Email Preferences{/ts}
   </div>
 
-  <form method="post" action="{crmURL p='/civicrm/member-dashboard/communications'}">
-    <div class="form-item">
-      <label for="preferred_mail_format">Preferred Email Format</label>
-      <select name="preferred_mail_format">
-        {foreach from=$mailFormats item=format}
-          <option
-            {if $contact.preferred_mail_format eq $format}
-              selected="selected"
-            {/if}
-              value="{$format}">
-            {$format}
-          </option>
-        {/foreach}
-      </select>
-      <input type="submit" value="Save"/>
-    </div>
-  </form>
+  <div class="form-item">
+    <label for="preferred_mail_format">Preferred Email Format</label>
+    <select class="crm-select2" name="preferred_mail_format">
+      {foreach from=$mailFormats item=format}
+        <option
+          {if $contact.preferred_mail_format eq $format}
+            selected="selected"
+          {/if}
+            value="{$format}">
+          {$format}
+        </option>
+      {/foreach}
+    </select>
+    <input class="crm-form-submit default" type="submit" value="Save"/>
+  </div>
 </div>
 
 {include file="CRM/Memberdashboard/Page/DashboardElement.tpl"