Commit | Line | Data |
---|---|---|
8f57842f SL |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
8f57842f | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
8f57842f SL |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {*this is included inside a table row*} | |
11 | {assign var=relativeName value=$fieldName|cat:"_relative"} | |
12 | {assign var='from' value=$from|default:'_low'} | |
13 | {assign var='to' value=$to|default:'_high'} | |
14 | ||
15 | {if !$hideRelativeLabel} | |
16 | <td class="label"> | |
17 | {$form.$relativeName.label} | |
18 | </td> | |
19 | {/if} | |
20 | <td> | |
21 | {$form.$relativeName.html}<br /> | |
22 | <span class="crm-absolute-date-range"> | |
23 | <span class="crm-absolute-date-from"> | |
24 | {assign var=fromName value=$fieldName|cat:$from} | |
25 | {$form.$fromName.label} | |
26 | {$form.$fromName.html} | |
27 | </span> | |
28 | <span class="crm-absolute-date-to"> | |
29 | {assign var=toName value=$fieldName|cat:$to} | |
30 | {$form.$toName.label} | |
31 | {$form.$toName.html} | |
32 | </span> | |
33 | </span> | |
34 | </td> | |
35 | {include file="CRM/Core/DatePickerRangejs.tpl" relativeName=$relativeName} |