Petitionemail.tpl 6.51 KB
Newer Older
1 2 3 4 5
   <tr class="crm-campaign-survey-form-block-email_petition">
       <td class="label">{$form.email_petition.label}</td>
       <td class="view-value">{$form.email_petition.html}
      <div class="description">{ts}Should signatures generate an email to the petition's  target?.{/ts}</div></td>
6 7 8 9 10
   <tr class="crm-campaign-survey-form-block-subject">
       <td class="label">{$form.subject.label}</td>
       <td class="view-value">{$form.subject.html}
      <div class="description">{ts}Enter the subject line that should appear in the target email.{/ts}</div></td>
11 12 13 14 15
   <tr class="crm-campaign-survey-form-block-subject_field">
       <td class="label">{$form.subject_field.label}</td>
       <td class="view-value">{$form.subject_field.html}
      <div class="description">{ts}Select a field that will have the signer's custom subject line.  Make sure it is included in the Activity Profile you selected.{/ts}</div></td>
16 17 18 19 20
   <tr class="crm-campaign-survey-form-block-default_message">
       <td class="label">{$form.default_message.label}</td>
       <td class="view-value">{$form.default_message.html}
      <div class="description">{ts}Enter the default message to be included in the email.{/ts}</div></td>
   <tr class="crm-campaign-survey-form-block-message_field">
22 23
       <td class="label">{$form.message_field.label}</td>
       <td class="view-value">{$form.message_field.html}
24 25 26
      <div class="description">{ts}Select a field that will have the signer's custom message.  Make sure it is included in the Activity Profile you selected.{/ts}</div></td>

   <tr class="crm-campaign-survey-form-block-recipient_options">
       <td class="label">Target/Recipient Options</td>
29 30 31 32
       <td class="view-value">
         <div class="petitionemail-recipient-options">
           <div class="petition-email-recipient-option-description">{ts}You must specify who will receive a copy of the petition using at least one of the methods below. You may also use both methods if you would like one set of recipients to receive all petitions signed and another set of recipients to be chosen dynamically.{/ts}</div>

33 34 35 36
           <label for="target-group">Target a Group (Dynamic Method)</label>
           <input name="target-group" value="1" class="crm-form-checkbox target-group" type="checkbox">
           <label for="target-individuals">Target Individuals (Static Method)</label>
           <input name="target-individuals" value="2" class="crm-form-checkbox target-individuals" type="checkbox">

38 39
           <div class="petition-email-target-group">
             <h3 class="petition-email-header">Target a Group (Dynamic Method)</h3>

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
             <div class="petition-email-recipient-option-description">The dynamic method allows you to choose different petition recipients depending on who is filling out the petition. To use the dynamic method, you must first put your targets into a group. Then specify the group below, and the field that must match between the person filling out the petition and the target contact. You can choose up to three group/field combinations.</div>
             <table id="petition-email-dynamic-method">
                 <td>{ts}Target Group{/ts}</td>
                 <td>{ts}Matching field{/ts}</td>
                 <td class="view-value">
                   <div class="petitionemail-matching-group_id">{$form.matching_group_id1.html}</div>
                   <div class="petitionemail-matching-group_id">{$form.matching_group_id2.html}</div>
                   <div class="petitionemail-matching-group_id">{$form.matching_group_id3.html}</div>
                   <div class="petitionemail-use-with">{ts}match using:{/ts}</div>
                   <div class="petitionemail-use-with">{ts}match using:{/ts}</div>
                   <div class="petitionemail-use-with">{ts}match using:{/ts}</div>
                 <td class="view-value">
                   <div class="petitionemail-matching-fields">{$form.matching_field1.html}</div>
                   <div class="petitionemail-matching-fields">{$form.matching_field2.html}</div>
                   <div class="petitionemail-matching-fields">{$form.matching_field3.html}</div>
                <td colspan="3" class="description">{ts}Select the group containing the contacts that you want to receive the petition along with the field that should match between the petition signer and the target in this group. If the user and the target have the same value for this field, then the user's petition will be sent to the matching target.{/ts}
                 {if $petitionemail_matching_fields_count eq 0}
                    {ts}No fields are configured to be used as matching fields. Please <a target="_blank" href="{$petitionemail_profile_edit_link}">add fields to the petitionemail profile</a>.{/ts}
                    {ts}Don't see the field you want to use? You can <a target="_blank" href="{$petitionemail_profile_edit_link}">add more fields to the petitionemail profile</a> and they will show up here.{/ts}
             <div class="label">{$form.location_type_id.label}</div>
             <div class="view-value">{$form.location_type_id.html}</div>
             <div class="description">{ts}A target contact can have more than one email address. Choose the email location that should be preferred when sending the petition. If blank, or the preferred location is not available for the target, the primary email address will be used.{/ts}</div>
           <div class="petition-email-target-individuals">
             <h3 class="petition-email-header">Target Individuals (Static Method)</h3>

82 83 84 85 86
             <div class="label">{$form.recipients.label}</div>
             <div class="view-value">{$form.recipients.html}</div>
             <div class="description">{ts}Enter targets that receive copies of all petitions in the form: 'First name Last name' &lt;;. Put each recipient on a separate line.{/ts}</div>
87 88 89
90 91 92 93 94 95
   <tr class="crm-campaign-survey-form-block-links_field">
       <td class="label">{$form.links.label}</td>
       <td class="view-value">{$form.links.html}
      <div class="description">{ts}Sending an email to publicize this petition? Here are your links!{/ts}</div></td>