Repair help links in settings form (and reformat)
This commit is contained in:
parent
5169e5a0ce
commit
8020491bf1
1 changed files with 32 additions and 54 deletions
|
@ -18,47 +18,41 @@
|
||||||
|
|
||||||
<table class="form-layout-compressed">
|
<table class="form-layout-compressed">
|
||||||
<tr class="crm-twingle-form-block-use-sepa">
|
<tr class="crm-twingle-form-block-use-sepa">
|
||||||
<td class="label">{$form.twingle_use_sepa.label} <a onclick='CRM.help("{$form.twingle_use_sepa.label}", {literal}{"id":"id-{/literal}{$form.twingle_use_sepa.name}{literal}","file":"CRM\/Twingle\/Form\/Settings"}{/literal}); return false;' href="#" title="{ts domain="de.systopia.twingle"}Help{/ts}" class="helpicon"></a></td>
|
<td class="label">
|
||||||
|
{$form.twingle_use_sepa.label}
|
||||||
|
{help id="id-twingle_use_sepa" title=$form.twingle_use_sepa.label}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_use_sepa.html}
|
{$form.twingle_use_sepa.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_use_sepa.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr class="crm-twingle-form-block-use-sepa-reference">
|
<tr class="crm-twingle-form-block-use-sepa-reference">
|
||||||
<td class="label">{$form.twingle_dont_use_reference.label} <a onclick='CRM.help("{$form.twingle_dont_use_reference.label}", {literal}{"id":"id-{/literal}{$form.twingle_dont_use_reference.name}{literal}","file":"CRM\/Twingle\/Form\/Settings"}{/literal}); return false;' href="#" title="{ts domain="de.systopia.twingle"}Help{/ts}" class="helpicon"></a></td>
|
<td class="label">
|
||||||
|
{$form.twingle_dont_use_reference.label}
|
||||||
|
{help id="id-twingle_dont_use_reference" title=$form.twingle_dont_use_reference.label}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_dont_use_reference.html}
|
{$form.twingle_dont_use_reference.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_dont_use_reference.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr class="crm-twingle-form-block-prefix">
|
<tr class="crm-twingle-form-block-prefix">
|
||||||
<td class="label">{$form.twingle_prefix.label} <a onclick='CRM.help("{$form.twingle_prefix.label}", {literal}{"id":"id-{/literal}{$form.twingle_prefix.name}{literal}","file":"CRM\/Twingle\/Form\/Settings"}{/literal}); return false;' href="#" title="{ts domain="de.systopia.twingle"}Help{/ts}" class="helpicon"></a></td>
|
<td class="label">{$form.twingle_prefix.label}
|
||||||
|
{help id="id-twingle_prefix" title=$form.twingle_prefix.label}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_prefix.html}
|
{$form.twingle_prefix.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_prefix.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr class="crm-twingle-form-block-recurring-protection">
|
<tr class="crm-twingle-form-block-recurring-protection">
|
||||||
<td class="label">{$form.twingle_protect_recurring.label} <a onclick='CRM.help("{$form.twingle_protect_recurring.label}", {literal}{"id":"id-{/literal}{$form.twingle_protect_recurring.name}{literal}","file":"CRM\/Twingle\/Form\/Settings"}{/literal}); return false;' href="#" title="{ts domain="de.systopia.twingle"}Help{/ts}" class="helpicon"></a></td>
|
<td class="label">{$form.twingle_protect_recurring.label}
|
||||||
|
{help id="id-twingle_protect_recurring" title=$form.twingle_protect_recurring.label}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_protect_recurring.html}
|
{$form.twingle_protect_recurring.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.protect_recurring.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -66,10 +60,6 @@
|
||||||
<td class="label">{$form.twingle_protect_recurring_activity_type.label}</td>
|
<td class="label">{$form.twingle_protect_recurring_activity_type.label}</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_protect_recurring_activity_type.html}
|
{$form.twingle_protect_recurring_activity_type.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_protect_recurring_activity_type.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -77,10 +67,6 @@
|
||||||
<td class="label">{$form.twingle_protect_recurring_activity_subject.label}</td>
|
<td class="label">{$form.twingle_protect_recurring_activity_subject.label}</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_protect_recurring_activity_subject.html}
|
{$form.twingle_protect_recurring_activity_subject.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_protect_recurring_activity_subject.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -88,10 +74,6 @@
|
||||||
<td class="label">{$form.twingle_protect_recurring_activity_status.label}</td>
|
<td class="label">{$form.twingle_protect_recurring_activity_status.label}</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_protect_recurring_activity_status.html}
|
{$form.twingle_protect_recurring_activity_status.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_protect_recurring_activity_status.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -99,16 +81,11 @@
|
||||||
<td class="label">{$form.twingle_protect_recurring_activity_assignee.label}</td>
|
<td class="label">{$form.twingle_protect_recurring_activity_assignee.label}</td>
|
||||||
<td>
|
<td>
|
||||||
{$form.twingle_protect_recurring_activity_assignee.html}
|
{$form.twingle_protect_recurring_activity_assignee.html}
|
||||||
<br />
|
|
||||||
<span class="description">
|
|
||||||
{$formElements.twingle_protect_recurring_activity_assignee.description}
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<div class="crm-submit-buttons">
|
<div class="crm-submit-buttons">
|
||||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||||
</div>
|
</div>
|
||||||
|
@ -116,22 +93,23 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{literal}
|
{literal}
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* Will show/hide the twingle_protect_recurring_activity_* fields based on
|
* Will show/hide the twingle_protect_recurring_activity_* fields based on
|
||||||
* whether activity creation is selected
|
* whether activity creation is selected
|
||||||
*/
|
*/
|
||||||
function twingle_protect_recurring_change() {
|
function twingle_protect_recurring_change() {
|
||||||
if (cj("#twingle_protect_recurring").val() == '2') {
|
if (cj('#twingle_protect_recurring').val() == '2') {
|
||||||
cj("tr.crm-twingle-form-block-recurring-protection-activity").show();
|
cj('tr.crm-twingle-form-block-recurring-protection-activity').show();
|
||||||
} else {
|
}
|
||||||
cj("tr.crm-twingle-form-block-recurring-protection-activity").hide();
|
else {
|
||||||
|
cj('tr.crm-twingle-form-block-recurring-protection-activity').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cj(document).ready(function () {
|
cj(document).ready(function () {
|
||||||
cj("#twingle_protect_recurring").change(twingle_protect_recurring_change);
|
cj('#twingle_protect_recurring').change(twingle_protect_recurring_change);
|
||||||
twingle_protect_recurring_change();
|
twingle_protect_recurring_change();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
Loading…
Add table
Add a link
Reference in a new issue