clarify switch between price set and manual membership
authorAndrew Hunt <andrew@aghstrategies.com>
Thu, 9 May 2013 15:10:35 +0000 (11:10 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Thu, 9 May 2013 15:10:35 +0000 (11:10 -0400)
templates/CRM/Member/Form/Membership.tpl

index 85ad40ccd1312d14188a5cd672a622117f5da91b..b2c1989a58b970db1b972a97c58695e977c36273 100644 (file)
               {/if}
             {/if}
             {if $member_is_test} {ts}(test){/ts}{/if}<br />
-            <span class="description">{ts}Select Membership Organization and then Membership Type.{/ts}</span>
+            <span class="description">{ts}Select Membership Organization and then Membership Type.{/ts}{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/if}</span>
           </td>
         </tr>
         <tr id="maxRelated" class="crm-membership-form-block-max_related">
 
         // show/hide price set amount and total amount.
         cj( "#mem_type_id").show( );
+        var choose = "{/literal}{ts}Choose price set{/ts}{literal}";
+        cj("#price_set_id option[value='']").html( choose );
         cj( "#totalAmountORPriceSet" ).show( );
         cj('#total_amount').removeAttr("readonly");
         cj( "#num_terms_row").show( );
 
       cj( "#totalAmountORPriceSet" ).hide( );
       cj( "#mem_type_id" ).hide( );
+      var manual = "{/literal}{ts}Manual membership and price{/ts}{literal}";
+      cj("#price_set_id option[value='']").html( manual );
       cj( "#num_terms_row" ).hide( );
       cj(".crm-membership-form-block-financial_type_id-mode").hide();
     }