First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,161 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing ACL *}
<div class="crm-block crm-form-block crm-acl-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;
{ts}WARNING: Delete will remove this permission from the specified ACL Role.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-acl-form-block-name">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}<br />
<span class="description">{ts}Enter a descriptive name for this permission (e.g. 'Edit Advisory Board Contacts').{/ts}</span>
</td>
</tr>
<tr class="crm-acl-form-block-entity_id">
<td class="label">{$form.entity_id.label}</td>
<td>{$form.entity_id.html}<br />
<span class="description">{ts}Select a Role to assign (grant) this permission to. Select the special role 'Everyone' if you want to grant this permission to ALL users. 'Everyone' includes anonymous (i.e. not logged in) users. Select the special role 'Authenticated' if you want to grant it to any logged in user.{/ts}</span>
</td>
</tr>
<tr class="crm-acl-form-block-operation">
<td class="label">{$form.operation.label}</td>
<td>{$form.operation.html}<br />
<span class="description">{ts}What type of operation (action) is being permitted?{/ts}</span>
</td>
</tr>
<tr class="crm-acl-form-block-object_type">
<td class="label">{$form.object_type.label}</td>
<td>{$form.object_type.html}</td>
</tr>
<tr class="crm-acl-form-block-description">
<td class="{$form.object_type.name}">&nbsp;</dt><td class="description">{ts}Select the type of data this ACL operates on.{/ts}<br />
{if $config->userSystem->is_drupal EQ '1'}
<div class="status description">{ts}IMPORTANT: The Drupal permissions for 'access all custom data' and 'profile listings and forms' override and disable specific ACL settings for custom field groups and profiles respectively. Do not enable those Drupal permissions for a Drupal role if you want to use CiviCRM ACL's to control access.{/ts}</div></td>
{/if}
</tr>
</table>
<div id="id-group-acl">
<table class="form-layout-compressed">
<tr class="crm-acl-form-block-group_id">
<td class="label">{$form.group_id.label}</td>
<td>{$form.group_id.html}<br />
<span class="description">{ts}Select a specific group of contacts, OR apply this permission to ALL groups.{/ts}</span>
</td>
</tr>
</table>
</div>
<div id="id-profile-acl">
<table class="form-layout-compressed" >
<tr class="crm-acl-form-block-uf_group_id">
<td class="label">{$form.uf_group_id.label}</td>
<td>{$form.uf_group_id.html}<br />
<span class="description">{ts}Select a specific profile, OR apply this permission to ALL profiles.{/ts}</span>
</td>
</tr>
</table>
<div class="status message">{ts}NOTE: Profile ACL operations affect which modes a profile can be used in (i.e. Create a new contact, Edit your own contact record, View a contact record, etc.). The Create operation is required for profiles embedded in online contribution or event registration forms. None of the operations for Profile ACLs grant access to administration of profiles.{/ts}</div>
</div>
<div id="id-custom-acl">
<table class="form-layout-compressed">
<tr class="crm-acl-form-block-custom_group_id">
<td class="label">{$form.custom_group_id.label}</td>
<td>{$form.custom_group_id.html}<br />
<span class="description">{ts}Select a specific group of custom fields, OR apply this permission to ALL custom fields.{/ts}</span>
</td>
</tr>
</table>
<div class="status message">{ts}NOTE: For Custom Data ACLs, the 'View' and 'Edit' operations currently do the same thing. Either option grants the right to view AND / OR edit custom data fields (in all groups, or in a specific custom data group). Neither option grants access to administration of custom data fields.{/ts}</div>
</div>
<div id="id-event-acl">
<table class="form-layout-compressed">
<tr class="crm-acl-form-block-event_id">
<td class="label">{$form.event_id.label}</td>
<td>{$form.event_id.html}<br />
<span class="description">{ts}Select an event, OR apply this permission to ALL events.{/ts}</span>
</td>
</tr>
</table>
<div class="status message">{ts}NOTE: For Event ACLs, the 'View' operation allows access to the event information screen. "Edit" allows users to register for the event if online registration is enabled.{/ts}<br />
{if $config->userSystem->is_drupal EQ '1'}
{ts}Please remember that Drupal's "register for events" permission overrides CiviCRM's control over event information access.{/ts}
{/if}
</div>
</div>
<table class="form-layout-compressed">
<tr class="crm-acl-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{include file="CRM/common/showHide.tpl"}
{literal}
<script type="text/javascript">
showObjectSelect( );
function showObjectSelect( ) {
var ot = document.getElementsByName('object_type');
for (var i = 0; i < ot.length; i++) {
if ( ot[i].checked ) {
switch(ot[i].value) {
case "1":
cj('#id-group-acl').show();
cj('#id-profile-acl').hide();
cj('#id-custom-acl').hide();
cj('#id-event-acl').hide();
break;
case "2":
cj('#id-group-acl').hide();
cj('#id-profile-acl').show();
cj('#id-custom-acl').hide();
cj('#id-event-acl').hide();
break;
case "3":
cj('#id-group-acl').hide();
cj('#id-profile-acl').hide();
cj('#id-custom-acl').show();
cj('#id-event-acl').hide();
break;
case "4":
cj('#id-group-acl').hide();
cj('#id-profile-acl').hide();
cj('#id-custom-acl').hide();
cj('#id-event-acl').show();
break;
}
}
}
return;
}
</script>
{/literal}

View file

@ -0,0 +1,60 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing ACL *}
<div class="form-item">
<fieldset><legend>{if $action eq 1}{ts}New ACL{/ts}{elseif $action eq 2}{ts}Edit ACL{/ts}{else}{ts}Delete ACL{/ts}{/if}</legend>
{if $action eq 8}
<div class="messages status no-popup">
<dl>
<dt><div class="icon inform-icon"></div></dt>
<dd>
{ts}WARNING: Delete will remove this permission from the specified ACL Role.{/ts} {ts}Do you want to continue?{/ts}
</dd>
</dl>
</div>
{else}
<dl>
<dt>{$form.entity_id.label}</dt><dd>{$form.entity_id.html}</dd>
<dt>&nbsp;</dt><dd class="description">{ts}Select a Role to assign (grant) this permission to. Select the special role 'Everyone' if you want to grant this permission to ALL users. 'Anyone' includes anonymous (i.e. not logged in) users.{/ts}</dd>
</dl>
<dl>
<dt>{$form.object_table.label}</dt>
<dd>
<table>
<tr><td>
{$form.object_table.html}
</td></tr>
</table>
</dd>
</dl>
{/if}
<dl>
<dt></dt><dd>{$form.buttons.html}</dd>
</dl>
</fieldset>
</div>

View file

@ -0,0 +1,56 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing ACL EntityRole objects *}
<div class="crm-block crm-form-block crm-acl-entityrole-form-block">
<fieldset><legend>{if $action eq 1}{ts}Assign ACL Role{/ts}{elseif $action eq 2}{ts}Assign ACL Role{/ts}{else}{ts}Delete ACL Role Assignment{/ts}{/if}</legend>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option will remove this ACL Role Assignment.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-acl-entityrole-form-block-acl_role_id">
<td class="label">{$form.acl_role_id.label}</td>
<td>{$form.acl_role_id.html}<br />
<span class="description">{ts}Select an ACL Role to assign.{/ts}</span>
</td>
</tr>
<tr class="crm-acl-entityrole-form-block-entity_id">
<td class="label">{$form.entity_id.label}</td>
<td>{$form.entity_id.html}<br />
<span class="description">{ts}Select a group of contacts who should have this role when logged in to your site. Groups must be assigned the 'Access Control' type (Contacts &raquo; Manage Groups &raquo; Settings) to be included in this list.{/ts}</span>
</td>
<tr class="crm-acl-entityrole-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
</fieldset>
</div>

View file

@ -0,0 +1,74 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing Wordpress Access Control *}
<div class="help">
<p>{ts}Use this form to Grant access to CiviCRM components and other CiviCRM permissions to WordPress roles.{/ts}<br /><br />
{ts}<strong>NOTE: Super Admin</strong> and <strong>Administrator</strong> roles will have all permissions in CiviCRM.{/ts}
</p>
</div>
<div class="crm-block crm-form-block crm-export-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table>
<tr>
{assign var="i" value=1}
{foreach from=$roles key=role_name item=role_value }
<td style="padding:0;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="label">&nbsp;</td>
<td align="center"><b>{$role_value}</b><br /></td>
</tr>
{assign var="j" value=0}
{foreach from=$rolePerms.$role_name key=name item=value }
{if $j mod 2 eq 1}
<tr style="background-color: #E6E6DC;">
{else}
<tr style="background-color: #FFFFFF;">
{/if}
<td style="height:3em;">
{if $i eq 1}
{$form.$role_name.$name.label}
{if $permDesc.$name}
<br/><span class="description">{$permDesc.$name}</span>
{/if}
{/if}
</td>
<td align="center">{$form.$role_name.$name.html}<br /></td>
</tr>
{assign var="j" value=$j+1}
{/foreach}
</table>
</td>
{assign var="i" value=$i+1}
{/foreach}
</tr>
</table>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
</div>

View file

@ -0,0 +1,61 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=docLink}{docURL page='user/initial-set-up/permissions-and-access-control/' text='Access Control Documentation'}{/capture}
<div class="help">
<p>{ts 1=$docLink}ACLs allow you to control access to CiviCRM data. An ACL consists of an <strong>Operation</strong> (e.g. 'View' or 'Edit'), a <strong>set of data</strong> that the operation can be performed on (e.g. a group of contacts), and a <strong>Role</strong> that has permission to do this operation. Refer to the %1 for more info.{/ts}</p>
</div>
{php}
$currentStep = $this->get_template_vars('step');
$wizard = array(
'style' => array(),
'currentStepNumber' => $currentStep,
'steps' => array(
array(
'title' => ts('Manage Roles'),
'link' => CRM_Utils_System::url('civicrm/admin/options/acl_role', 'reset=1'),
),
array(
'title' => ts('Assign Users'),
'link' => CRM_Utils_System::url('civicrm/acl/entityrole', 'reset=1'),
),
array(
'title' => ts('Manage ACLs'),
'link' => CRM_Utils_System::url('civicrm/acl', 'reset=1'),
),
),
);
foreach ($wizard['steps'] as $num => &$step) {
$step['step'] = $step['valid'] = $step['stepNumber'] = $num + 1;
if ($step['stepNumber'] == $currentStep) {
$step['link'] = NULL;
}
}
$this->assign('wizard', $wizard);
{/php}
{include file="CRM/common/WizardHeader.tpl"}

View file

@ -0,0 +1,82 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 1 or $action eq 2 or $action eq 8}
{include file="CRM/ACL/Form/ACL.tpl"}
{else}
<div class="crm-block crm-content-block">
{include file="CRM/ACL/Header.tpl" step=3}
{if $rows}
<div id="ltype">
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr class="columnheader">
<th id="sortable">{ts}Role{/ts}</th>
<th>{ts}Operation{/ts}</th>
<th>{ts}Type of Data{/ts}</th>
<th>{ts}Which Data{/ts}</th>
<th>{ts}Description{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$rows item=row key=aclID}
<tr id="acl-{$aclID}" class="{cycle values="odd-row,even-row"} {$row.class} crm-acl crm-entity {if NOT $row.is_active} disabled{/if}">
<td class="crm-acl-entity">{$row.entity}</td>
<td class="crm-acl-operation" >{$row.operation}</td>
<td class="crm-acl-object_name">{$row.object_name}</td>
<td class="crm-acl-object" >{$row.object}</td>
<td class="crm-acl-name crm-editable" data-field="name">{$row.name}</td>
<td class="crm-acl-is_active" id="row_{$aclID}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$aclID}</td>
</tr>
{/foreach}
</tbody>
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
{crmButton q="action=add&reset=1" id="newACL" icon="plus-circle"}{ts}Add ACL{/ts}{/crmButton}
</div>
{/if}
</div>
{else}
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
{capture assign=crmURL}{crmURL q="action=add&reset=1"}{/capture}
{ts 1=$crmURL}There are no ACLs entered. You can <a href='%1'>add one</a>.{/ts}
</div>
{/if}
</div>
{/if}

View file

@ -0,0 +1,72 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/ACL/Header.tpl" step=3}
{if $action eq 1 or $action eq 2 or $action eq 8}
<div class="crm-block crm-form-block">
{include file="CRM/ACL/Form/ACLBasic.tpl"}
</div>
{/if}
<div class="crm-block crm-content-block">
{if $rows}
<div id="ltype">
<p></p>
<div class="form-item">
{strip}
<table>
<tr class="columnheader">
<th>{ts}Role{/ts}</th>
<th>{ts}ACL Type(s){/ts}</th>
<th></th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
<td>{$row.entity}</td>
<td>{$row.object_table}</td>
<td>{$row.action}</td>
</tr>
{/foreach}
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
<a href="{crmURL q="action=add&reset=1"}" id="newACL"><i class="crm-i fa-plus-circle"></i> {ts}Add ACL{/ts}</a>
</div>
{/if}
</div>
</div>
{elseif $action ne 1 and $action ne 2 and $action ne 8}
<div class="messages status no-popup">
<dl>
<dt><img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/></dt>
{capture assign=crmURL}{crmURL q="action=add&reset=1"}{/capture}
<dd>{ts 1=$crmURL}There are no ACLs entered. You can <a href='%1'>add one</a>.{/ts}</dd>
</dl>
</div>
{/if}
</div>

View file

@ -0,0 +1,74 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/ACL/Header.tpl" step=2}
{if $action eq 1 or $action eq 2 or $action eq 8}
{include file="CRM/ACL/Form/EntityRole.tpl"}
{/if}
<div class="crm-block crm-content-block">
{if $rows}
<div id="ltype">
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr class="columnheader">
<th id="sortable">{ts}ACL Role{/ts}</th>
<th>{ts}Assigned to{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr id="acl_role-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-acl_entity_role crm-entity {if NOT $row.is_active} disabled{/if}">
<td class="crm-acl_entity_role-acl_role">{$row.acl_role}</td>
<td class="crm-acl_entity_role-entity">{$row.entity}</td>
<td class="crm-acl_entity_role-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</tbody>
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="crm-submit-buttons">
{crmButton q="action=add&reset=1" id="newACL" icon="plus-circle"}{ts}Add Role Assignment{/ts}{/crmButton}
</div>
{/if}
</div>
{elseif $action ne 1 and $action ne 2 and $action ne 8}
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
{capture assign=crmURL}{crmURL q="action=add&reset=1"}{/capture}
{ts 1=$crmURL}There are no Role Assignments. You can <a href='%1'>add one</a> now.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,48 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//CiviCRM//NONSGML CiviCRM iCal//EN
X-WR-TIMEZONE:{$timezone}
METHOD:REQUEST
BEGIN:VEVENT
UID:CIVICRMACTIVITY{$activity->id}
SUMMARY:{$activity->subject|crmICalText}
CALSCALE:GREGORIAN
DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
DTSTART;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate}
DURATION:PT{$activity->duration}M
{if $activity->location}
LOCATION:{$activity->location|crmICalText}
{/if}
{if $organizer}
ORGANIZER:MAILTO:{$organizer|crmICalText}
{/if}
{foreach from=$contacts item=contact}
ATTENDEE;CN="{$contact.display_name|crmICalText}":MAILTO:{$contact.email|crmICalText}
{/foreach}
END:VEVENT
END:VCALENDAR

View file

@ -0,0 +1,46 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-is_multi_activity-title"}
{ts}Create Separate Activity Records?{/ts}
{/htxt}
{htxt id="id-is_multi_activity"}
<p>{ts}By default a single activity record will be created and linked to all the contacts listed above. However, if you think you might be editing the activity later - and entering different information for different contacts - check this box to create separate activity records.{/ts}</p>
{/htxt}
{htxt id="assignee_contact_id"}
<p>
{ts}You can optionally assign this activity to someone. Assigned activities will appear in their Activities listing at CiviCRM Home.{/ts}
</p>
{/htxt}
{htxt id="sent_copy_email"}
<p>
{ts}When CiviCRM emails a copy of this activity to each assignees, that email will come from the contact listed under "Added By".{/ts}
</p>
<p>
{ts}If (in rare cases) that contact has no email address, then CiviCRM will send the email from the default "from" email address configured for this domain. And finally, if that email address has not been configured, then CiviCRM will send the email from the email address associated with the currently logged in user who creates this activity.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,295 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing other (custom) activities. *}
{if $action eq 4}
<div class="crm-block crm-content-block crm-activity-view-block">
{else}
{if $activityTypeDescription }
<div class="help">{$activityTypeDescription}</div>
{/if}
<div class="crm-block crm-form-block crm-activity-form-block">
{/if}
{* added onload javascript for source contact*}
{include file="CRM/Activity/Form/ActivityJs.tpl" tokenContext="activity"}
{if !$action or ( $action eq 1 ) or ( $action eq 2 ) }
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{/if}
{if $action eq 8} {* Delete action. *}
<table class="form-layout">
<tr>
<td colspan="2">
<div class="status">{ts}Are you sure you want to delete {/ts}{if $delName}'{$delName}'{/if}?</div>
</td>
</tr>
{elseif $action eq 1 or $action eq 2 or $action eq 4 or $context eq 'search' or $context eq 'smog'}
<table class="{if $action eq 4}crm-info-panel{else}form-layout{/if}">
{if $action eq 4}
{if $activityTypeDescription }
<div class="help">{$activityTypeDescription}</div>
{/if}
{else}
{if $context eq 'standalone' or $context eq 'search' or $context eq 'smog'}
<tr class="crm-activity-form-block-activity_type_id">
<td class="label">{$form.activity_type_id.label}</td><td class="view-value">{$form.activity_type_id.html}</td>
</tr>
{/if}
{/if}
{if $surveyActivity}
<tr class="crm-activity-form-block-survey">
<td class="label">{ts}Survey Title{/ts}</td><td class="view-value">{$surveyTitle}</td>
</tr>
{/if}
<tr class="crm-activity-form-block-source_contact_id">
<td class="label">{$form.source_contact_id.label}</td>
<td class="view-value">
{$form.source_contact_id.html}
</td>
</tr>
<tr class="crm-activity-form-block-target_contact_id">
<td class="label">{$form.target_contact_id.label}</td>
<td class="view-value">
{$form.target_contact_id.html}
{if $action eq 1 or $single eq false}
<div class="crm-is-multi-activity-wrapper">
{$form.is_multi_activity.html}&nbsp;{$form.is_multi_activity.label} {help id="id-is_multi_activity"}
</div>
{/if}
</td>
</tr>
<tr class="crm-activity-form-block-assignee_contact_id">
<td class="label">
{$form.assignee_contact_id.label}
{edit}{help id="assignee_contact_id" title=$form.assignee_contact_id.label}{/edit}
</td>
<td>
{$form.assignee_contact_id.html}
{if $action neq 4}
{if !$form.target_contact_id.frozen}
<a href="#" class="crm-hover-button" id="swap_target_assignee" title="{ts}Swap Target and Assignee Contacts{/ts}" style="position:relative; bottom: 1em;">
<i class="crm-i fa-random"></i>
</a>
{/if}
{if $activityAssigneeNotification}
<br />
<span class="description"><i class="crm-i fa-paper-plane"></i> {ts}A copy of this activity will be emailed to each Assignee.{/ts} {help id="sent_copy_email"}</span>
{/if}
{/if}
</td>
</tr>
{if $activityTypeFile}
{include file="CRM/$crmDir/Form/Activity/$activityTypeFile.tpl"}
{/if}
<tr class="crm-activity-form-block-subject">
<td class="label">{$form.subject.label}</td><td class="view-value">{$form.subject.html|crmAddClass:huge}</td>
</tr>
{* CRM-7362 --add campaign to activities *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
campaignTrClass="crm-activity-form-block-campaign_id"}
{* build engagement level CRM-7775 *}
{if $buildEngagementLevel}
<tr class="crm-activity-form-block-engagement_level">
<td class="label">{$form.engagement_level.label}</td>
<td class="view-value">{$form.engagement_level.html}</td>
</tr>
{/if}
<tr class="crm-activity-form-block-location">
<td class="label">{$form.location.label}</td><td class="view-value">{$form.location.html|crmAddClass:huge}</td>
</tr>
<tr class="crm-activity-form-block-activity_date_time">
<td class="label">{$form.activity_date_time.label}</td>
{if $action neq 4}
<td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=activity_date_time}</td>
{else}
<td class="view-value">{$form.activity_date_time.value|crmDate}</td>
{/if}
</tr>
<tr class="crm-activity-form-block-duration">
<td class="label">{$form.duration.label}</td>
<td class="view-value">
{$form.duration.html}
{if $action neq 4}<span class="description">{ts}minutes{/ts}{/if}
</td>
</tr>
<tr class="crm-activity-form-block-status_id">
<td class="label">{$form.status_id.label}</td><td class="view-value">{$form.status_id.html}</td>
</tr>
<tr class="crm-activity-form-block-details">
<td class="label">{$form.details.label}</td>
{if $activityTypeName eq "Print PDF Letter"}
<td class="view-value">
{$form.details.html}
</td>
{else}
<td class="view-value">
{$form.details.html|crmStripAlternatives}
</td>
{/if}
</tr>
<tr class="crm-activity-form-block-priority_id">
<td class="label">{$form.priority_id.label}</td><td class="view-value">{$form.priority_id.html}</td>
</tr>
{if $surveyActivity }
<tr class="crm-activity-form-block-result">
<td class="label">{$form.result.label}</td><td class="view-value">{$form.result.html}</td>
</tr>
{/if}
{if $form.tag.html}
<tr class="crm-activity-form-block-tag">
<td class="label">{$form.tag.label}</td>
<td class="view-value">
<div class="crm-select-container">{$form.tag.html}</div>
</td>
</tr>
{/if}
{if $tagsetInfo.activity}
<tr class="crm-activity-form-block-tag_set">{include file="CRM/common/Tagset.tpl" tagsetType='activity' tableLayout=true}</tr>
{/if}
{if $action neq 4 OR $viewCustomData}
<tr class="crm-activity-form-block-custom_data">
<td colspan="2">
{if $action eq 4}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{else}
<div id="customData"></div>
{/if}
</td>
</tr>
{/if}
{if $action eq 4 AND $currentAttachmentInfo}
{include file="CRM/Form/attachment.tpl"}{* For view action the include provides the row and cells. *}
{elseif $action eq 1 OR $action eq 2}
<tr class="crm-activity-form-block-attachment">
<td colspan="2">
{include file="CRM/Form/attachment.tpl"}
</td>
</tr>
{/if}
{if $action eq 2 OR $action eq 1}
<tr class="crm-activity-form-block-recurring_activity">
<td colspan="2">
{include file="CRM/Core/Form/RecurringEntity.tpl" recurringFormIsEmbedded=true}
</td>
</tr>
{/if}
{if $action neq 4} {* Don't include "Schedule Follow-up" section in View mode. *}
<tr class="crm-activity-form-block-schedule_followup">
<td colspan="2">
{include file="CRM/Activity/Form/FollowUp.tpl" type=""}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
$('.crm-accordion-body', $form).each( function() {
//open tab if form rule throws error
if ( $(this).children( ).find('span.crm-error').text( ).length > 0 ) {
$(this).parent('.collapsed').crmAccordionToggle();
}
});
function toggleMultiActivityCheckbox() {
$('.crm-is-multi-activity-wrapper').toggle(!!($(this).val() && $(this).val().indexOf(',') > 0));
}
$('[name=target_contact_id]', $form).each(toggleMultiActivityCheckbox).change(toggleMultiActivityCheckbox);
$('#swap_target_assignee').click(function(e) {
e.preventDefault();
var assignees = $('#assignee_contact_id', $form).select2("data");
var targets = $('#target_contact_id', $form).select2("data");
$('#assignee_contact_id', $form).select2("data", targets);
$('#target_contact_id', $form).select2("data", assignees).change();
});
});
</script>
{/literal}
</td>
</tr>
{/if}
{/if} {* End Delete vs. Add / Edit action *}
</table>
<div class="crm-submit-buttons">
{if $action eq 4 && $activityTName neq 'Inbound Email'}
{if !$context }
{assign var="context" value='activity'}
{/if}
{if $permission EQ 'edit'}
{assign var='urlParams' value="reset=1&atype=$atype&action=update&reset=1&id=$entityID&cid=$contactId&context=$context"}
{if ($context eq 'fulltext' || $context eq 'search') && $searchKey}
{assign var='urlParams' value="reset=1&atype=$atype&action=update&reset=1&id=$entityID&cid=$contactId&context=$context&key=$searchKey"}
{/if}
<a href="{crmURL p='civicrm/activity/add' q=$urlParams}" class="edit button" title="{ts}Edit{/ts}"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
{/if}
{if call_user_func(array('CRM_Core_Permission','check'), 'delete activities')}
{assign var='urlParams' value="reset=1&atype=$atype&action=delete&reset=1&id=$entityID&cid=$contactId&context=$context"}
{if ($context eq 'fulltext' || $context eq 'search') && $searchKey}
{assign var='urlParams' value="reset=1&atype=$atype&action=delete&reset=1&id=$entityID&cid=$contactId&context=$context&key=$searchKey"}
{/if}
<a href="{crmURL p='civicrm/contact/view/activity' q=$urlParams}" class="delete button" title="{ts}Delete{/ts}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
{/if}
{/if}
{if $action eq 4 and $context != 'case' and call_user_func(array('CRM_Case_BAO_Case','checkPermission'), $activityId, 'File On Case', $atype)}
<a href="#" onclick="fileOnCase('file', {$activityId}, null, this); return false;" class="cancel button" title="{ts}File On Case{/ts}"><span><i class="crm-i fa-clipboard"></i> {ts}File on Case{/ts}</span></a>
{include file="CRM/Case/Form/ActivityToCase.tpl"}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{if $action eq 1 or $action eq 2 or $context eq 'search' or $context eq 'smog'}
{*include custom data js file*}
{include file="CRM/common/customData.tpl"}
{literal}
<script type="text/javascript">
CRM.$(function($) {
{/literal}
{if $customDataSubType}
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
{else}
CRM.buildCustomData( '{$customDataType}' );
{/if}
{literal}
});
</script>
{/literal}
{/if}
</div>{* end of form block*}
{include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$activityId entityTable="civicrm_activity"}

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* added onload javascript for source contact*}
{literal}
<script type="text/javascript">
/**
* Function to check activity status in relavent to activity date
*
* @param message JSON object.
*/
function activityStatus(message) {
var activityDate = cj("#activity_date_time_display").datepicker('getDate');
if (activityDate) {
var
// Ignore time, only compare dates
today = new Date().setHours(0,0,0,0),
activityStatusId = cj('#status_id').val();
if (activityStatusId == 2 && today < activityDate) {
return confirm(message.completed);
}
else if (activityStatusId == 1 && today > activityDate) {
return confirm(message.scheduled);
}
}
}
</script>
{/literal}

View file

@ -0,0 +1,84 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Links for scheduling/logging meetings and calls and Sending Email *}
{if $contact_id }
{assign var = "contactId" value= $contact_id }
{/if}
{if $as_select} {* on 3.2, the activities can be either a drop down select (on the activity tab) or a list (on the action menu) *}
<select name="other_activity" class="crm-form-select crm-select2 crm-action-menu fa-plus">
<option value="">{ts}New Activity{/ts}</option>
{foreach from=$activityTypes item=act}
<option value="{$act.url}" data-icon="{$act.icon}">{$act.label}</option>
{/foreach}
</select>
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('[name=other_activity].crm-action-menu').change(function() {
var
$el = $(this),
url = $el.val();
if (url) {
$el.select2('val', '');
CRM.loadForm(url).on('crmFormSuccess', function() {
CRM.refreshParent($el);
});
}
});
});
</script>
{/literal}
{else}
<ul>
<li class="crm-activity-tab"><a href="#" data-tab="activity">{ts}Record Activity:{/ts}</a></li>
{foreach from=$activityTypes key=k item=act}
<li class="crm-activity-type_{$k}">
<a href="{$act.url}" data-tab="activity">
<i class="crm-i {$act.icon}"></i> {$act.label}
</a>
</li>
{/foreach}
{* add hook links if any *}
{if $hookLinks}
{foreach from=$hookLinks item=link}
<li>
<a href="{$link.url}" data-tab="activity"{if !empty($link.title)} title="{$link.title|escape}"{/if}
{if !empty($link.class)} class="{$link.class}"{/if}>
{if $link.img}
<img src="{$link.img}" alt="{$link.title|escape}" />&nbsp;
{/if}
{$link.name}
</a>
</li>
{/foreach}
{/if}
</ul>
{/if}

View file

@ -0,0 +1,149 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-content-block crm-activity-view-block">
{if $activityTypeDescription}
<div class="help">{$activityTypeDescription}</div>
{/if}
<table class="crm-info-panel">
<tr>
<td class="label">{ts}Added By{/ts}</td><td class="view-value">{$values.source_contact}</td>
</tr>
{if $values.target_contact_value}
<tr>
<td class="label">{ts}With Contact{/ts}</td><td class="view-value">{$values.target_contact_value}</td>
</tr>
{/if}
{if $values.mailingId}
<tr>
<td class="label">{ts}With Contact{/ts}</td><td class="view-value"><a href="{$values.mailingId}" title="{ts}View Mailing Report{/ts}">&raquo;{ts}Mailing Report{/ts}</a></td>
</tr>
{/if}
<tr>
<td class="label">{ts}Subject{/ts}</td><td class="view-value">{$values.subject}</td>
</tr>
{if $values.campaign}
<tr>
<td class="label">{ts}Campaign{/ts}</td><td class="view-value">{$values.campaign}</td>
</tr>
{/if}
{if $values.engagement_level AND
call_user_func( array( 'CRM_Campaign_BAO_Campaign', 'isCampaignEnable' ) )}
<td class="label">{ts}Engagement Level{/ts}</td><td class="view-value">{$values.engagement_level}</td>
{/if}
<tr>
<td class="label">{ts}Date and Time{/ts}</td><td class="view-value">{$values.activity_date_time|crmDate }</td>
</tr>
{if $values.mailingId}
<tr>
<td class="label nowrap">
# of opens
</td>
<td class="view-value">{$openreport|@count}
{if $openreport|@count > 0 and $openreport|@count < 50}<br />Open times:
{foreach from=$openreport item=opens}
{$opens.date} <br />
{/foreach}
{/if}
</tr>
<tr>
<td class="label">
# of click-throughs
</td>
<td class="view-value"> {$clickreport|@count}
{if $clickreport|@count > 0 and $clickreport|@count < 50}<br />Click times:
{foreach from=$clickreport item=clicks}
{$clicks.date}: <a href ='{$clicks.url}'>{$clicks.url|truncate:40:' .... ':true:true}</a> <br />
{/foreach}
{/if}
</td>
</tr>
<tr>
<td class="label">{ts}Details{/ts}</td>
<td class="view-value report">
<fieldset>
<legend>{ts}Content / Components{/ts}</legend>
{strip}
<table class="form-layout-compressed">
{if $mailingReport.mailing.body_text}
<tr>
<td class="label nowrap">{ts}Text Message{/ts}</td>
<td>
{$mailingReport.mailing.body_text|mb_truncate:30|escape|nl2br}
<br />
{if $values.mailingId}
<strong><a class="crm-popup" href='{$textViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
{/if}
</td>
</tr>
{/if}
{if $mailingReport.mailing.body_html}
<tr>
<td class="label nowrap">{ts}HTML Message{/ts}</td>
<td>
{$mailingReport.mailing.body_html|mb_truncate:30|escape|nl2br}
<br/>
{if $values.mailingId}
<strong><a class="crm-popup" href='{$htmlViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
{/if}
</td>
</tr>
{/if}
{if $mailingReport.mailing.attachment}
<tr>
<td class="label nowrap">{ts}Attachments{/ts}</td>
<td>
{$mailingReport.mailing.attachment}
</td>
</tr>
{/if}
</table>
{/strip}
</fieldset>
</td>
</tr>
{else}
<tr>
<td class="label">{ts}Details{/ts}</td><td class="view-value report">{$values.details|crmStripAlternatives|nl2br}</td>
</tr>
{/if}
{if $values.attachment}
<tr>
<td class="label">{ts}Attachment(s){/ts}</td><td class="view-value report">{$values.attachment}</td>
</tr>
{/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,30 @@
<div id="follow-up" class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">
{ts}Schedule Follow-up{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr class="crm-{$type}activity-form-block-followup_activity_type_id">
<td class="label">{ts}Schedule Follow-up Activity{/ts}</td>
<td>{$form.followup_activity_type_id.html}&nbsp;&nbsp;{ts}on{/ts}
{include file="CRM/common/jcalendar.tpl" elementName=followup_date}
</td>
</tr>
<tr class="crm-{$type}activity-form-block-followup_activity_subject">
<td class="label">{$form.followup_activity_subject.label}</td>
<td>{$form.followup_activity_subject.html|crmAddClass:huge}</td>
</tr>
<tr class="crm-{$type}activity-form-block-followup_assignee_contact_id">
<td class="label">
{$form.followup_assignee_contact_id.label}
{edit}
{/edit}
</td>
<td>
{$form.followup_assignee_contact_id.html}
</td>
</tr>
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->

View file

@ -0,0 +1,107 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Search form and results for Activities *}
<div class="crm-form-block crm-search-form-block">
<div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if $rows}collapsed{/if}">
<div class="crm-accordion-header crm-master-accordion-header">
{ts}Edit Search Criteria{/ts}
</div>
<!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div id="searchForm" class="form-item">
{strip}
<table class="form-layout">
<tr>
<td class="font-size12pt" colspan="2">
{$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}
<div>
<div class="description font-italic">{ts}Complete OR Partial Name{/ts}
<span class="contact-name-option option-1">{ts} of the Source Contact{/ts}</span>
<span class="contact-name-option option-2">{ts} of the Assignee Contact{/ts}</span>
<span class="contact-name-option option-3">{ts} of the Target Contact{/ts}</span>
</div>
</div>
</td>
<td>{include file="CRM/common/formButtons.tpl" location="top"}</td>
</tr>
{include file="CRM/Activity/Form/Search/Common.tpl"}
<tr>
<td colspan="3">{include file="CRM/common/formButtons.tpl" location="botton"}</td>
</tr>
</table>
{/strip}
</div>
</div>
</div>
</div>
{if $rowsEmpty || $rows }
<div class="crm-content-block">
{if $rowsEmpty}
<div class="crm-results-block crm-results-block-empty">
{include file="CRM/Activity/Form/Search/EmptyResults.tpl"}
</div>
{/if}
{if $rows}
<div class="crm-results-block">
{* Search request has returned 1 or more matching rows. *}
{* This section handles form elements for action task select and submit *}
<div class="crm-search-tasks">
{include file="CRM/common/searchResultTasks.tpl"}
</div>
{* This section displays the rows along and includes the paging controls *}
<div class="crm-search-results">
{include file="CRM/Activity/Form/Selector.tpl" context="Search"}
</div>
{* END Actions/Results section *}
</div>
{/if}
</div>
{/if}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}'),
roleId = $('input[name=activity_role]:checked', $form).val();
if (roleId) {
$('.description .option-' + roleId).show();
}
$('[name=activity_role]:input').change(function() {
$('.description .contact-name-option').hide();
if ($(this).is(':checked')) {
$('.description .option-' + $(this).val()).show();
}
}).change();
});
</script>
{/literal}

View file

@ -0,0 +1,245 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<tr>
<td colspan="2">
{$form.activity_role.html}
</span>
</td>
</tr>
<tr>
{if $form.activity_type_id}
<td><label>{$form.activity_type_id.label}</label>
<br />
{$form.activity_type_id.html}
</td>
{else}
<td>&nbsp;</td>
{/if}
{if $form.activity_survey_id || $buildEngagementLevel}
<td>
{if $form.activity_survey_id}
<label>{$form.activity_survey_id.label}</label>
<br/>
{$form.activity_survey_id.html}
{/if}
{if $buildEngagementLevel}
<br
/ >
<br/>
<label>{$form.activity_engagement_level.label}</label>
<br/>
{$form.activity_engagement_level.html}
{/if}
</td>
{/if}
<td>
<table>
<tr><td>
{if $form.parent_id}
<label>{ts}Has a Followup Activity?{/ts}</label>
<br/>
{$form.parent_id.html}
{/if}
</td></tr>
<tr><td>
{if $form.followup_parent_id}
<label>{ts}Is a Followup Activity?{/ts}</label>
<br/>
{$form.followup_parent_id.html}
{/if}
</td></tr>
</table>
</td>
{if $form.activity_tags}
<td><label>{ts}Activity Tag(s){/ts}</label>
<div id="Tags" class="listing-box">
{foreach from=$form.activity_tags item="tag_val"}
<div class="{cycle values='odd-row,even-row'}">
{$tag_val.html}
</div>
{/foreach}
</td>
{else}
<td>&nbsp;</td>
{/if}
</tr>
<tr>
<td><label>{ts}Activity Dates{/ts}</label></td>
</tr>
<tr>
{include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high'}
</tr>
<tr>
<td>
{$form.activity_text.label}<br/>
{$form.activity_text.html|crmAddClass:big}<br/>
{$form.activity_option.html}<br/>
</td>
<td colspan="2">
{$form.status_id.label}<br/>
{$form.status_id.html}
</td>
</tr>
<tr>
<td>
{$form.priority_id.label}<br />
{$form.priority_id.html}
</td>
<td colspan="2">
{$form.activity_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}
&nbsp; {$form.activity_test.html}
</td>
</tr>
{if $buildSurveyResult }
<tr>
<td id="activityResult">
<label>{$form.activity_result.label}</label><br />
{$form.activity_result.html}
</td>
<td colspan="2">{include file="CRM/common/Tagset.tpl" tagsetType='activity'}</td>
</tr>
{else}
<tr>
<td colspan="3">{include file="CRM/common/Tagset.tpl" tagsetType='activity'}</td>
</tr>
{/if}
{* campaign in activity search *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
{if $activityGroupTree}
<tr id="activityCustom">
<td id="activityCustomData" colspan="2">
{include file="CRM/Custom/Form/Search.tpl" groupTree=$activityGroupTree showHideLinks=false}
</td>
</tr>
{/if}
{literal}
<script type="text/javascript">
CRM.$(function($) {
//Searchable activity custom fields which extend ALL activity types are always displayed in the form
//hence hide remaining activity custom data
$('#activityCustom').children( ).each( function( ) {
$('#'+$(this).attr('id')+' div').each( function( ) {
if ($(this).children( ).attr('id')) {
var activityCustomdataGroup = $(this).attr('id'); //div id
var fieldsetId = $(this).children( ).attr('id'); // fieldset id
var splitFieldsetId = fieldsetId.split("");
var splitFieldsetLength = splitFieldsetId.length; //length of fieldset
var show = 0;
//setdefault activity custom data group if corresponding activity type is checked
$('#Activity div').each(function( ) {
var checkboxId = $(this).children().attr('id'); //activity type element name
if (document.getElementById( checkboxId ).checked ) {
var element = checkboxId.split('[');
var splitElement = element[1].split(']'); // get activity type id
for (var i=0; i<splitFieldsetLength; i++) {
var singleFieldset = splitFieldsetId[i];
if (parseInt( singleFieldset)) {
if (singleFieldset == splitElement[0]) {
show++;
}
}
}
}
});
if (show < 1) {
$('#'+activityCustomdataGroup).hide( );
}
}
});
});
});
function showCustomData(chkbox) {
if (document.getElementById(chkbox).checked) {
//inject Searchable activity custom fields according to activity type selected
var element = chkbox.split("[");
var splitElement = element[1].split("]");
cj('#activityCustom').children().each(function( ) {
cj('#'+cj(this).attr( 'id' )+' div').each(function( ) {
if (cj(this).children().attr('id')) {
if (cj('#'+cj(this).attr('id')+(' fieldset')).attr('id')) {
var fieldsetId = cj('#' + cj(this).attr('id')+(' fieldset')).attr('id').split("");
var activityTypeId = jQuery.inArray(splitElement[0], fieldsetId);
if (fieldsetId[activityTypeId] == splitElement[0]) {
cj(this).show();
}
}
}
});
});
}
else {
//hide activity custom fields if the corresponding activity type is unchecked
var setcount = 0;
var element = chkbox.split( "[" );
var splitElement = element[1].split( "]" );
cj('#activityCustom').children().each( function( ) {
cj('#'+cj(this).attr( 'id' )+' div').each(function() {
if (cj(this).children().attr('id')) {
if (cj('#'+cj(this).attr('id')+(' fieldset')).attr('id')) {
var fieldsetId = cj( '#'+cj(this).attr('id')+(' fieldset')).attr('id').split("");
var activityTypeId = jQuery.inArray( splitElement[0],fieldsetId);
if (fieldsetId[activityTypeId] == splitElement[0]) {
cj('#'+cj(this).attr('id')).each( function() {
if (cj(this).children().attr('id')) {
//if activity custom data extends more than one activity types then
//hide that only when all the extended activity types are unchecked
cj('#'+cj(this).attr('id')+(' fieldset')).each( function( ) {
var splitFieldsetId = cj( this ).attr('id').split("");
var splitFieldsetLength = splitFieldsetId.length;
for( var i=0;i<splitFieldsetLength;i++ ) {
var setActivityTypeId = splitFieldsetId[i];
if (parseInt(setActivityTypeId)) {
var activityTypeId = 'activity_type_id['+setActivityTypeId+']';
if (document.getElementById(activityTypeId).checked) {
return false;
}
else {
setcount++;
}
}
}
if (setcount > 0) {
cj('#'+cj(this).parent().attr('id')).hide();
}
});
}
});
}
}
}
});
});
}
}
{/literal}
</script>

View file

@ -0,0 +1,40 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* No matches for submitted search request. *}
<div class="messages status no-popup">
<div class="icon inform-icon"></div> &nbsp;
{if $qill}{ts}No matches found for:{/ts}
{include file="CRM/common/displaySearchCriteria.tpl"}
{else}
{ts}None found.{/ts}
{/if}
<br />{ts}Suggestions:{/ts}
<ul>
<li>{ts}If you are searching by activity name, check your spelling or use fewer letters.{/ts}</li>
<li>{ts}If you are searching within a date range, try a wider range of values.{/ts}</li>
<li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
</ul>
</div>

View file

@ -0,0 +1,130 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $context EQ 'Search'}
{include file="CRM/common/pager.tpl" location="top"}
{/if}
{strip}
<table class="selector row-highlight">
<tr class="sticky">
{if !$single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{counter start=0 skip=1 print=false}
{foreach from=$rows item=row}
<tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}">
{if !$single }
{if $context eq 'Search' }
{assign var=cbName value=$row.checkbox}
<td>{$form.$cbName.html}</td>
{/if}
{/if}
<td>
{$row.activity_type}
{if $row.repeat}
<br/>
<span><b>{$row.repeat}</b></span>
{/if}
</td>
<td>{$row.activity_subject}</td>
<td>
{if !$row.source_contact_id}
<em>n/a</em>
{elseif $contactId NEQ $row.source_contact_id}
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a>
{else}
{$row.source_contact_name}
{/if}
</td>
<td>
{if $row.mailingId}
<a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
{elseif $row.recipients}
{$row.recipients}
{elseif !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{if count($row.target_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td>
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td>{$row.activity_date_time|crmDate}</td>
<td>{$row.activity_status}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{include file="CRM/Case/Form/ActivityToCase.tpl"}
{if $context EQ 'Search'}
{include file="CRM/common/pager.tpl" location="bottom"}
{/if}

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{ts 1=$totalSelectedActivities}Number of selected Activities: %1{/ts}
{if $rows }
<div class="form-item">
<table width="30%">
<tr class="columnheader">
<th>{ts}Name{/ts}</th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.displayName}</td>
</tr>
{/foreach}
</table>
</div>
{/if}

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-form-block crm-block crm-activity-task-addtotag-form-block">
<h3>
{ts}Tag Activities{/ts}
</h3>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activity-task-addtotag-form-block-tag">
<td>
<div class="listing-box">
{foreach from=$form.tag item="tag_val"}
<div class="{cycle values="odd-row,even-row"}">
{$tag_val.html}
</div>
{/foreach}
</div>
</td>
</tr>
<tr>
<td>
{include file="CRM/common/Tagset.tpl"}
</td>
</tr>
<tr><td>{include file="CRM/Activity/Form/Task.tpl"}</td></tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,62 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activity-task-batch-form-block">
<fieldset>
<div class="help">
{ts}Update field values for each Activities as needed. Click <strong>Update Activities</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first Activity and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
</div>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<table class="crm-copy-fields">
<thead class="sticky">
<tr class="columnheader">
{foreach from=$readOnlyFields item=fTitle key=fName}
<th>{$fTitle}</th>
{/foreach}
{foreach from=$fields item=field key=fieldName}
<td><img src="{$config->resourceBase}i/copy.png" alt="{ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}" fname="{$field.name}" class="action-icon" title="{ts}Click here to copy the value in row one to ALL rows.{/ts}" />{$field.title}</td>
{/foreach}
</tr>
</thead>
{foreach from=$componentIds item=activityId}
<tr class="{cycle values="odd-row,even-row"}" entity_id="{$activityId}">
{foreach from=$readOnlyFields item=fTitle key=fName}
<td>{$contactDetails.$activityId.$fName}</td>
{/foreach}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
<td class="compressed">{$form.field.$activityId.$n.html}</td>
{/foreach}
</tr>
{/foreach}
</tr>
</table>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>
{*include batch copy js js file*}
{include file="CRM/common/batchCopy.tpl"}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Confirmation of Activity deletes *}
<div class="crm-block crm-form-block crm-activity_delete-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
<p>{ts}Are you sure you want to delete the selected Activities?{/ts}</p>
<p>{include file="CRM/Activity/Form/Task.tpl"}</p>
</div>
<p>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Contact/Form/Task/Email.tpl"}

View file

@ -0,0 +1,45 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-form crm-form-block crm-file-on-case-form-block">
<div class="help">
{ts}File on Case{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-file-on-case-form-block-unclosed_cases">
<td class="label">
{$form.unclosed_case_id.label}
</td>
<td>
{$form.unclosed_case_id.html}<br />
</td>
</tr>
<tr>
{include file="CRM/Activity/Form/Task.tpl"}
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-form crm-form-block crm-pick-option-form-block">
<div class="help">
Select Group of Contacts
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-pick-option-form-block-with_contact">
<td class="label">{$form.with_contact.label}</td>
<td>{$form.with_contact.html}</td>
</tr>
<tr class="crm-pick-option-form-block-assigned_to">
<td class="label">{$form.assigned_to.label}</td>
<td>{$form.assigned_to.html}</td>
</tr>
<tr class="crm-pick-option-form-block-created_by">
<td class="label">{$form.created_by.label}</td>
<td>{$form.created_by.html}</td>
</tr>
<tr>
{include file="CRM/Activity/Form/Task.tpl"}
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,42 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activityPickProfile-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activityPickProfile-form-block-uf_group_id">
<td>{$form.uf_group_id.label}</td>
<td>{$form.uf_group_id.html}</td>
</tr>
<tr>
<td class="label"></td>
<td>
{include file="CRM/Activity/Form/Task.tpl"}
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-activity_task_print-form-block">
<p>
{if $rows }
<div class="crm-submit-buttons element-right">
{include file="CRM/common/formButtons.tpl" location="top"}
</div>
<div class="spacer"></div>
<br />
<p>
<table>
<tr class="columnheader">
<td>{ts}Type{/ts}</td>
<td>{ts}Subject{/ts}</td>
<td>{ts}Added By{/ts}</td>
<td>{ts}With{/ts}</td>
<td>{ts}Assigned to{/ts}</td>
<td>{ts}Date{/ts}</td>
<td>{ts}Status{/ts}</td>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.activity_type}</td>
<td>{$row.activity_subject}</td>
<td>{$row.source_contact_name}</td>
<td>
{if !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{/if}
</td>
<td>
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{/if}
</td>
<td>{$row.activity_date_time}</td>
<td>{$row.activity_status}</td>
</tr>
{/foreach}
</table>
<div class="crm-submit-buttons element-right">
{include file="CRM/common/formButtons.tpl" location="bottom"}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no records selected for Print.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* template to remove tags from activity *}
<div class="crm-form-block crm-block crm-activity-task-removefromtag-form-block">
<h3>
{ts}Tag Activities (Remove){/ts}
</h3>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activity-task-removefromtag-form-block-tag">
<td>
<div class="listing-box">
{foreach from=$form.tag item="tag_val"}
<div class="{cycle values="odd-row,even-row"}">
{$tag_val.html}
{/foreach}
</div>
</td>
</tr>
<tr>
<td>
{include file="CRM/common/Tagset.tpl"}
</td>
</tr>
<tr><td>{include file="CRM/Activity/Form/Task.tpl"}</td></tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Contact/Form/Task/SMS.tpl"}

View file

@ -0,0 +1,59 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $rows}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div class="spacer"></div>
<div>
<br />
<table>
<tr class="columnheader">
<td>{ts}Display Name{/ts}</td>
<td>{ts}Subject{/ts}</th>
<td>{ts}Activity Type{/ts}</td>
<td>{ts}Activity Date{/ts}</td>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.display_name}</td>
<td>{$row.subject}</td>
<td>{$row.activity_type}</td>
<td>{$row.activity_date}</td>
</tr>
{/foreach}
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no records selected.{/ts}
</div>
{/if}

View file

@ -0,0 +1,40 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-upload-title"}
{ts}Activity Import{/ts}
{/htxt}
{htxt id="id-upload"}
<p>
{ts}The Activity Import Wizard allows you to easily upload activity from other applications into CiviCRM. Contacts must already exist in your CiviCRM database prior to importing activities for them. Use Import Contacts to create contact records first, if necessary. Then you can match activities to contacts by Email Address, CiviCRM Contact ID, or an External Identifier (see the TIP below).{/ts}
</p>
<p>
{ts}Files to be imported must be in the 'comma-separated-values' format (CSV). Most applications will allow you to export records in this format. Consult the documentation for your application if you're not sure how to do this. Save this file to your local hard drive (or an accessible drive on your network) - and you are now ready for step 1 (Upload Data).{/ts}
</p>
<p>
<strong>{ts}TIP - Matching Activities to Contact Records{/ts}</strong><br />
{ts}CiviCRM allows you to indicate which contact each activity record belongs to using either the unique CiviCRM-assigned Contact ID, a unique External ID which you assign, OR your configured Unsupervised Duplicate Matching Rule set (which uses email addresses by default). You must include at least one of these values as a column in your import file. If you are synchronizing (or migrating) contacts from another application to CiviCRM, and that application has assigned a unique ID to each contact, you can import that value into CiviCRM's External ID field. Then you can use that unique key as the 'match to contact' value when importing related data such as Activities.{/ts}
<p>
{/htxt}

View file

@ -0,0 +1,72 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 1 (upload data file) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-uploadfile-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}The Activity Import Wizard allows you to easily upload activity from other applications into CiviCRM. Contacts must already exist in your CiviCRM database prior to importing activity.{/ts}
{help id="id-upload"}
</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div id="upload-file">
<h3>{ts}Upload Data File{/ts}</h3>
<table class="form-layout-compressed">
<tr class="crm-activity-import-uploadfile-form-block-uploadFile">
<td class="label">{$form.uploadFile.label}</td>
<td>{$form.uploadFile.html}<br />
<span class="description">{ts}File format must be comma-separated-values (CSV).{/ts}</span><br /><span>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</span>
</td>
</tr>
<tr class="crm-activity-import-uploadfile-form-block-skipColumnHeader">
<td class="label"></td>
<td>{$form.skipColumnHeader.html}{$form.skipColumnHeader.label}<br />
<span class="description">{ts}Check this box if the first row of your file consists of field names (Example: 'Contact ID', 'Activity Type', 'Activity Date').{/ts}</span>
</td>
</tr>
<tr class="crm-import-datasource-form-block-fieldSeparator">
<td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
<td>{$form.fieldSeparator.html}</td>
</tr>
<tr>{include file="CRM/Core/Date.tpl"}</tr>
{if $savedMapping}
<tr class="crm-activity-import-uploadfile-form-block-savedMapping">
<td>{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</td>
<td>{$form.savedMapping.html}<br />
<span class="description">{ts}Select Saved Mapping or Leave blank to create a new One.{/ts}</span>
{/if}
</td>
</tr>
</table>
<div class="spacer"></div>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,55 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activity-import-mapfield-form-block">
{* Activity Import Wizard - Step 2 (map incoming data fields) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>{ts}Review the values shown below from the first 2 rows of your import file and select the matching CiviCRM database fields from the drop-down lists in the right-hand column. Select '- do not import -' for any columns in the import file that you want ignored.{/ts}</p>
{if $savedMapping}
<p>{ts}Click 'Load Saved Field Mapping' if data has been previously imported from the same source. You can then select the saved import mapping setup and load it automatically.{/ts}<p>
{/if}
<p>{ts}If you think you may be importing additional data from the same data source, check 'Save this field mapping' at the bottom of the page before continuing. The saved mapping can then be easily reused the next time data is imported.{/ts}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Table for mapping data to CRM fields *}
{include file="CRM/Activity/Import/Form/MapTable.tpl}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{$initHideBoxes}
{literal}
<script type="text/javascript" >
if ( document.getElementsByName("saveMapping")[0].checked ) {
document.getElementsByName("updateMapping")[0].checked = true;
document.getElementsByName("saveMapping")[0].checked = false;
}
</script>
{/literal}
</div>

View file

@ -0,0 +1,121 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Data Mapping table used by MapFields.tpl and Preview.tpl *}
<div class="crm-block crm-form-block crm-activity_map_table-form-block">
<div id="map-field">
{strip}
<table>
{if $loadedMapping}
<tr class="columnheader-dark"><th colspan="4">{ts 1=$savedName}Saved Field Mapping: %1{/ts}</td></tr>
{/if}
<tr class="columnheader">
{section name=rows loop=$rowDisplayCount}
{if $skipColumnHeader }
{ if $smarty.section.rows.iteration == 1 }
<th>{ts}Column Headers{/ts}</th>
{else}
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
{/if}
{else}
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
{/if}
{/section}
<th>{ts}Matching CiviCRM Field{/ts}</th>
</tr>
{*Loop on columns parsed from the import data rows*}
{section name=cols loop=$columnCount}
{assign var="i" value=$smarty.section.cols.index}
<tr style="border-bottom: 1px solid #92B6EC;">
{section name=rows loop=$rowDisplayCount}
{assign var="j" value=$smarty.section.rows.index}
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]}</td>
{/section}
{* Display mapper <select> field for 'Map Fields', and mapper value for 'Preview' *}
<td class="form-item even-row
{if $wizard.currentStepName == 'Preview'}labels{/if}">
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
{$form.mapper[$i].html}
{/if}
</td>
</tr>
{/section}
</table>
{/strip}
{if $wizard.currentStepName != 'Preview'}
<div>
{if $loadedMapping}
<span>{$form.updateMapping.html} &nbsp;&nbsp; {$form.updateMapping.label}</span>
{/if}
<span>{$form.saveMapping.html} &nbsp;&nbsp; {$form.saveMapping.label}</span>
<div id="saveDetails" class="form-item">
<table>
<tr class="crm-activity_map_table-form-block-saveMappingName">
<td>{$form.saveMappingName.label}</td>
<td>{$form.saveMappingName.html}</td>
</tr>
<tr class="crm-activity_map_table-form-block-saveMappingDesc">
<td>{$form.saveMappingDesc.label}</td>
<td>{$form.saveMappingDesc.html}</td>
</tr>
</table>
</div>
<script type="text/javascript">
{if $mappingDetailsError }
cj('#saveDetails').show();
{else}
cj('#saveDetails').hide();
{/if}
{literal}
function showSaveDetails(chkbox) {
if (chkbox.checked) {
document.getElementById("saveDetails").style.display = "block";
document.getElementById("saveMappingName").disabled = false;
document.getElementById("saveMappingDesc").disabled = false;
} else {
document.getElementById("saveDetails").style.display = "none";
document.getElementById("saveMappingName").disabled = true;
document.getElementById("saveMappingDesc").disabled = true;
}
}
{/literal}
{include file="CRM/common/highLightImport.tpl"}
</script>
</div>
{/if}
</div>
</div>

View file

@ -0,0 +1,95 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 3 (preview import results prior to actual data loading) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-preview-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}The information below previews the results of importing your data in CiviCRM. Review the totals to ensure that they represent your expected results.{/ts}
</p>
{if $invalidRowCount}
<p class="error">
{ts 1=$invalidRowCount 2=$downloadErrorRecordsUrl}CiviCRM has detected invalid data or formatting errors in %1 records. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Errors</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
</p>
{/if}
{if $conflictRowCount}
<p class="error">
{ts 1=$conflictRowCount 2=$downloadConflictRecordsUrl}CiviCRM has detected %1 records with conflicting transaction ids within this data file. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Conflicts</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
</p>
{/if}
<p>{ts}Click 'Import Now' if you are ready to proceed.{/ts}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Summary Preview (record counts) *}
<table id="preview-counts" class="report">
<tr><td class="label">{ts}Total Rows{/ts}</td>
<td class="data">{$totalRowCount}</td>
<td class="explanation">{ts}Total rows (activity records) in uploaded file.{/ts}</td>
</tr>
{if $invalidRowCount}
<tr class="error"><td class="label">{ts}Rows with Errors{/ts}</td>
<td class="data">{$invalidRowCount}</td>
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
{if $invalidRowCount}
<div class="action-link"><a href="{$downloadErrorRecordsUrl}">&raquo; {ts}Download Errors{/ts}</a></div>
{/if}
</td>
</tr>
{/if}
{if $conflictRowCount}
<tr class="error"><td class="label">{ts}Conflicting Rows{/ts}</td>
<td class="data">{$conflictRowCount}</td>
<td class="explanation">{ts}Rows with conflicting transaction ids within this file. These rows will be skipped (not imported).{/ts}
{if $conflictRowCount}
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
<tr><td class="label">{ts}Valid Rows{/ts}</td>
<td class="data">{$validRowCount}</td>
<td class="explanation">{ts}Total rows to be imported.{/ts}</td>
</tr>
</table>
<br />
{* Table for mapping preview *}
{include file="CRM/Activity/Import/Form/MapTable.tpl}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,134 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 4 (summary of import results AFTER actual data loading) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-summary-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}<strong>Import has completed successfully.</strong> The information below summarizes the results.{/ts}
</p>
{if $unMatchCount }
<p class="error">
{ts count=$unMatchCount plural='CiviCRM has detected mismatched activity IDs. These records have not been Updated.'}CiviCRM has detected mismatched activity ID. This record have not been updated.{/ts}
</p>
<p class="error">
{ts 1=$downloadMismatchRecordsUrl}You can <a href='%1'>Download Mismatched Activity records</a>. You may then correct them, and import the new file with the corrected data.{/ts}
</p>
{/if}
{if $invalidRowCount }
<p class="error">
{ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record have not been imported.{/ts}
</p>
<p class="error">
{ts 1=$downloadErrorRecordsUrl}You can <a href='%1'>Download Errors</a>. You may then correct them, and import the new file with the corrected data.{/ts}
</p>
{/if}
{if $conflictRowCount}
<p class="error">
{ts count=$conflictRowCount plural='CiviCRM has detected %count records with conflicting transaction IDs within this data file or relative to existing activity records. These records have not been imported.'}CiviCRM has detected one record with conflicting transaction ID within this data file or relative to existing activity records. This record have not been imported.{/ts}
</p>
<p class="error">
{ts 1=$downloadConflictRecordsUrl}You can <a href='%1'>Download Conflicts</a>. You may then review these records to determine if they are actually conflicts, and correct the transaction IDs for those that are not.{/ts}
</p>
{/if}
{if $duplicateRowCount}
<p {if $dupeError}class="error"{/if}>
{ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM activity records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM activity record.{/ts} {$dupeActionString}
</p>
<p {if $dupeError}class="error"{/if}>
{ts 1=$downloadDuplicateRecordsUrl}You can <a href='%1'>Download Duplicates</a>. You may then review these records to determine if they are actually duplicates, and correct the transaction IDs for those that are not.{/ts}
</p>
{/if}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Summary of Import Results (record counts) *}
<table id="summary-counts" class="report">
<tr><td class="label">{ts}Total Rows{/ts}</td>
<td class="data">{$totalRowCount}</td>
<td class="explanation">{ts}Total rows (activity records) in uploaded file.{/ts}</td>
</tr>
{if $invalidRowCount }
<tr class="error"><td class="label">{ts}Invalid Rows (skipped){/ts}</td>
<td class="data">{$invalidRowCount}</td>
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
{if $invalidRowCount}
<p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $unMatchCount }
<tr class="error"><td class="label">{ts}Mismatched Rows (skipped){/ts}</td>
<td class="data">{$unMatchCount}</td>
<td class="explanation">{ts}Rows with mismatched activity IDs (NOT updated).{/ts}
{if $unMatchCount}
<p><a href="{$downloadMismatchRecordsUrl}">{ts}Download Mismatched Activity records{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $conflictRowCount}
<tr class="error"><td class="label">{ts}Conflicting Rows (skipped){/ts}</td>
<td class="data">{$conflictRowCount}</td>
<td class="explanation">{ts}Rows with conflicting transaction IDs (NOT imported).{/ts}
{if $conflictRowCount}
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $duplicateRowCount}
<tr class="error"><td class="label">{ts}Duplicate Rows{/ts}</td>
<td class="data">{$duplicateRowCount}</td>
<td class="explanation">{ts}Rows which are duplicates of existing CiviCRM activity records.{/ts} {$dupeActionString}
{if $duplicateRowCount}
<p><a href="{$downloadDuplicateRecordsUrl}">{ts}Download Duplicates{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
<tr><td class="label">{ts}Records Imported{/ts}</td>
<td class="data">{$validRowCount}</td>
<td class="explanation">{ts}Rows imported successfully.{/ts}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,38 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Include links to enter Activities if session has 'edit' permission *}
{if $action EQ 16 and $permission EQ 'edit' and !$addAssigneeContact and !$addTargetContact}
<div class="action-link crm-activityLinks" style="text-align: left">{include file="CRM/Activity/Form/ActivityLinks.tpl" as_select=true}</div>
{/if}
{if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 4 or $action eq 32768} {* add, edit, delete or view or detach*}
{include file="CRM/Activity/Form/Activity.tpl"}
{else}
{*include file="CRM/Activity/Selector/Activity.tpl"*}
{include file="CRM/Activity/Selector/Selector.tpl"}
{/if}

View file

@ -0,0 +1,69 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $activity_rows}
{strip}
<div class="description">
{ts}Click on the activity subject for more information.{/ts}
</div>
<table class="selector">
<tr class="columnheader">
<th>{ts}Type{/ts}</th>
<th>{ts}Subject{/ts}</th>
<th>{ts}Added By{/ts}</th>
<th>{ts}With{/ts}</th>
<th>{ts}Date{/ts}</th>
<th>{ts}Status{/ts}</th>
</tr>
{counter start=0 skip=1 print=false}
{capture assign="no_subject"}{ts}(no subject){/ts}{/capture}
{foreach from=$activity_rows item=row}
<tr id='rowid{$row.activity_id}' class=" crm-activity-id_{$row.activity_id} {cycle values="odd-row,even-row"}">
<td class="crm-activity_type">{$row.activity_type}</td>
<td class="crm-activity_subject"><a href="{crmURL p='civicrm/activity'
q="action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`&context=dashboard"}">{$row.activity_subject|default:$no_subject}</a></td>
<td class="crm-source_contact_name">
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.source_contact_id`"}">{$row.source_contact_name}</a>;
</td>
<td class="crm-target_contact_name">
{foreach from=$row.target_contact_name item=name key=cid}
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$cid`"}">{$name}</a>;
{/foreach}
</td>
<td class="crm-activity_date_time">{$row.activity_date_time|crmDate}</td>
<td class="crm-activity_status">{$row.activity_status}</td>
</tr>
{/foreach}
</table>
{/strip}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;
{ts}There are no scheduled activities assigned to you.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,129 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays Activities. *}
<div>
{if empty($noFieldSet)}
<h3 class="crm-table-title">{ts}Activities{/ts}</h3>
{/if}
{if $rows}
<form title="activity_pager" action="{crmURL}" method="post">
{include file="CRM/common/pager.tpl" location="top"}
{strip}
<table class="selector row-highlight">
<tr class="columnheader">
{foreach from=$columnHeaders item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{counter start=0 skip=1 print=false}
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"} {$row.class} crm-activity crm-activity_status-{$row.activity_status_id} crm-activity-type_{$row.activity_type_id}" id="crm-activity_{$row.activity_id}">
<td class="crm-activity-type crm-activity-type_{$row.activity_type_id}">{$row.activity_type}</td>
<td class="crm-activity-subject">{$row.subject}</td>
<td class="crm-activity-source_contact_name">
{if $contactId == $row.source_contact_id}
{$row.source_contact_name}
{elseif $row.source_contact_id}
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a>
{else}
<em>n/a</em>
{/if}
</td>
<td class="crm-activity-target_contact_name">
{if $row.mailingId}
<a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
{elseif $row.recipients}
{$row.recipients}
{elseif !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{if count($row.target_contact_name) > 5} ({ts}more{/ts}){/if}
{/if}
</td>
<td class="crm-activity-assignee_contact_name">
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td class="crm-activity-date_time">{$row.activity_date_time|crmDate}</td>
<td class="crm-activity-status crm-activity-status_{$row.status_id}">{$row.status}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{include file="CRM/common/pager.tpl" location="bottom"}
{include file="CRM/Case/Form/ActivityToCase.tpl" contactID=$contactId}
</form>
{else}
<div class="messages status no-popup">
{if isset($caseview) and $caseview}
{ts}There are no Activities attached to this case record.{/ts}{if $permission EQ 'edit'} {ts}You can go to the Activities tab to create or attach activity records.{/ts}{/if}
{elseif $context eq 'home'}
{ts}There are no Activities to display.{/ts}
{else}
{ts}There are no Activities to display.{/ts}{if $permission EQ 'edit'} {ts}You can use the links above to schedule or record an activity.{/ts}{/if}
{/if}
</div>
{/if}
{if !$noFieldSet}
{/if}
</div>

View file

@ -0,0 +1,100 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-activity-selector-{$context}">
<div class="crm-accordion-wrapper crm-search_filters-accordion">
<div class="crm-accordion-header">
{ts}Filter by Activity{/ts}</a>
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<table class="no-border form-layout-compressed activity-search-options">
<tr>
<td class="crm-contact-form-block-activity_type_filter_id crm-inline-edit-field">
{$form.activity_type_filter_id.label}<br /> {$form.activity_type_filter_id.html|crmAddClass:medium}
</td>
<td class="crm-contact-form-block-activity_type_exclude_filter_id crm-inline-edit-field">
{$form.activity_type_exclude_filter_id.label}<br /> {$form.activity_type_exclude_filter_id.html|crmAddClass:medium}
</td>
{include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high' label='Date'}
<td class="crm-contact-form-block-activity_status_filter_id crm-inline-edit-field">
{ts}Status{/ts}<br /> {$form.status_id.html|crmAddClass:medium}
</td>
</tr>
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
<table class="contact-activity-selector-{$context} crm-ajax-table">
<thead>
<tr>
<th data-data="activity_type" class="crm-contact-activity-activity_type">{ts}Type{/ts}</th>
<th data-data="subject" cell-class="crmf-subject crm-editable" class="crm-contact-activity_subject">{ts}Subject{/ts}</th>
<th data-data="source_contact_name" class="crm-contact-activity-source_contact">{ts}Added By{/ts}</th>
<th data-data="target_contact_name" data-orderable="false" class="crm-contact-activity-target_contact">{ts}With{/ts}</th>
<th data-data="assignee_contact_name" data-orderable="false" class="crm-contact-activity-assignee_contact">{ts}Assigned{/ts}</th>
<th data-data="activity_date_time" class="crm-contact-activity-activity_date">{ts}Date{/ts}</th>
<th data-data="status_id" cell-class="crmf-status_id crm-editable" cell-data-type="select" cell-data-refresh="true" class="crm-contact-activity-activity_status">{ts}Status{/ts}</th>
<th data-data="links" data-orderable="false" class="crm-contact-activity-links">&nbsp;</th>
</tr>
</thead>
</table>
{literal}
<script type="text/javascript">
(function($) {
var context = {/literal}"{$context}"{literal};
CRM.$('table.contact-activity-selector-' + context).data({
"ajax": {
"url": {/literal}'{crmURL p="civicrm/ajax/contactactivity" h=0 q="snippet=4&context=$context&cid=$contactId"}'{literal},
"data": function (d) {
var status_id = $('.crm-activity-selector-' + context + ' select#status_id').val() || [];
d.activity_type_id = $('.crm-activity-selector-' + context + ' select#activity_type_filter_id').val(),
d.activity_type_exclude_id = $('.crm-activity-selector-' + context + ' select#activity_type_exclude_filter_id').val(),
d.activity_date_relative = $('select#activity_date_relative').val(),
d.activity_date_low = $('#activity_date_low').val(),
d.activity_date_high = $('#activity_date_high').val(),
d.activity_status_id = status_id.join(',')
}
}
});
$(function($) {
$('.activity-search-options :input').change(function(){
CRM.$('table.contact-activity-selector-' + context).DataTable().draw();
});
});
})(CRM.$);
</script>
{/literal}
<style type="text/css">
{crmAPI var='statuses' entity='OptionValue' action='get' return="color,value" option_limit=0 option_group_id="activity_status"}
{foreach from=$statuses.values item=status}
{if !empty($status.color)}
table.contact-activity-selector-{$context} tr.status-id-{$status.value} {ldelim}
border-left: 3px solid {$status.color};
{rdelim}
{/if}
{/foreach}
</style>
</div>
{include file="CRM/Case/Form/ActivityToCase.tpl" contactID=$contactId}

View file

@ -0,0 +1,38 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is for synchronizing CMS user*}
<div class="crm-block crm-form-block crm-cms-user-form-block">
<div class="help">
<p>{ts 1=$config->userFramework}Synchronize %1 Users{/ts}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
<span class="label">{ts}Synchronize Users to Contacts:{/ts}</span> {ts}CiviCRM will check each user record for a contact record. A new contact record will be created for each user where one does not already exist.{/ts} {ts}Do you want to continue?{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,73 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing Contact Type *}
<div class="crm-block crm-form-block crm-contact-type-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}{/ts}
</div>
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contact-type-form-block-label">
<td class="label">{$form.label.label}
{if $action eq 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id= $cid }
{/if}
</td>
<td>{$form.label.html}</td>
</tr>
<tr class="crm-contact-type-form-block-parent_id">
<td class="label">{$form.parent_id.label}</td>
{if $is_parent OR $action EQ 1}
<td>{$form.parent_id.html}</td>
{else}
<td>{ts}{$contactTypeName}{/ts} {ts}(built-in){/ts}</td>
{/if}
</tr>
<tr class="crm-contact-type-form-block-image_URL">
<td class="label">{$form.image_URL.label} {help id="id-image_URL"}</td>
<td>{$form.image_URL.html|crmAddClass:'huge40'}</td>
</tr>
<tr class="crm-contact-type-form-block-description">
<td class="label">{$form.description.label}
{if $action eq 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id= $cid}
{/if}
</td>
<td>{$form.description.html}</td>
</tr>
<tr class="crm-contact-type-form-block-is_active">
<td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for install /uninstall extensions *}
<h3>{$title}</h3>
<div class="crm-block crm-form-block crm-admin-optionvalue-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Uninstalling this extension might result in the loss of all records which use the extension.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone. Please review the extension information below before you make final decision.{/ts} {ts}Do you want to continue?{/ts}
</div>
{/if}
{if $action eq 1}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Installing this extension will provide you with new functionality. Please make sure that the extension you're installing comes from a trusted source.{/ts} {ts}Do you want to continue?{/ts}
</div>
{/if}
{if $action eq 2}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Downloading this extension will provide you with new functionality. Please make sure that the extension you're installing or upgrading comes from a trusted source.{/ts} {ts}Do you want to continue?{/ts}
</div>
{/if}
{if $action eq 8 or $action eq 1 or $action eq 2}
{include file="CRM/Admin/Page/ExtensionDetails.tpl"}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,123 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* This template is used for adding/configuring Scheduled Jobs. *}
<h3>{if $action eq 1}{ts}New Scheduled Job{/ts}{elseif $action eq 2}{ts}Edit Scheduled Job{/ts}{elseif $action eq 128}{ts}Execute Scheduled Job{/ts}{else}{ts}Delete Scheduled Job{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-job-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this Scheduled Job will cause some important site functionality to stop working.{/ts} {ts}Do you want to continue?{/ts}
</div>
{elseif $action eq 128}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Are you sure you would like to execute this job?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-job-form-block-name">
<td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
</tr>
<tr class="crm-job-form-block-description">
<td class="label">{$form.description.label}</td><td>{$form.description.html}</td>
</tr>
<tr class="crm-job-form-block-run_frequency">
<td class="label">{$form.run_frequency.label}</td><td>{$form.run_frequency.html}</td>
</tr>
<tr class="crm-job-form-block-api_action">
<td class="label">{ts}API call:{/ts}</td>
<td>
<div id="fname"><br/>
</div>
<select name="api_entity" type="text" id="api_entity" class="crm-form-select required">
{crmAPI entity="Entity" var="entities"}
{foreach from=$entities.values item=entity}
<option value="{$entity}"{if $entity eq $form.api_entity.value} selected="selected"{/if}>{$entity}</option>
{/foreach}
</select>
{$form.api_action.html}
<div class="description">{ts}Put in the API method name. You need to enter pieces of full API function name as described in the documentation.{/ts}</div>
<script>
{literal}
CRM.$(function($) {
function assembleName( ) {
// dunno yet
var apiName = "";
// building prefix
if( $('#api_action').val() == '' ) {
$('#fname').html( "<em>API name will start appearing here as you type in fields below.</em>" );
return;
}
var apiPrefix = 'api'
// building entity
var apiEntity = $('#api_entity').val().replace( /([A-Z])/g, function($1) {
return $1.toLowerCase();
});
// building action
var apiAction = $('#api_action').val().replace(/(\_[a-z])/g, function($1) {return $1.toUpperCase().replace('_','');});
apiName = apiPrefix + '.' + apiEntity + '.' + apiAction;
$('#fname').text( apiName );
}
// bind to different events to build API name live
$('#api_entity').change(assembleName)
$('#api_action').change(assembleName).keyup(assembleName);
assembleName();
});
{/literal}
</script>
</td>
</tr>
<tr class="crm-job-form-block-parameters">
<td class="label">{$form.parameters.label}<br />{docURL page="Managing Scheduled Jobs" resource="wiki"}</td>
<td>{$form.parameters.html}</td>
</tr>
<tr class="crm-job-form-block-scheduled-run-date">
<td class="label">{$form.scheduled_run_date.label}</td>
<td>{$form.scheduled_run_date.html}<br />
<div dlass="description">{ts}Do not run this job before this date / time. The run frequency selected above will apply thereafter.{/ts}<br />
{if $action eq 1}{ts}Leave blank to run as soon as possible.{/ts}{else}{ts}Leave blank to run at next run frequency.{/ts}{/if}
</div>
</td>
</tr>
<tr class="crm-job-form-block-is_active">
<td></td><td>{$form.is_active.html}&nbsp;{$form.is_active.label}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,204 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright (C) 2011 Marty Wright |
| Licensed to CiviCRM under the Academic Free License version 3.0. |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* This template is used for adding/configuring Label Formats. *}
<div class="crm-block crm-form-block crm-labelFormat-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$formatName}WARNING: You are about to delete the Label Format titled <strong>%1</strong>.{/ts} {ts}Do you want to continue?{/ts}
</div>
{elseif $action eq 16384}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$formatName}Are you sure you would like to make a copy of the Label Format titled <strong>%1</strong>?{/ts}
</div>
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-labelFormat-form-block-name">
<td class="right">{$form.label.label}</td>
<td colspan="3">{$form.label.html}</td>
</tr>
<tr class="crm-labelFormat-form-block-description">
<td class="right">{$form.description.label}</td>
<td colspan="3">{$form.description.html}</td>
</tr>
<tr class="crm-labelFormat-form-block-is_default">
<td>&nbsp;</td>
<td colspan="3">{$form.is_default.html}&nbsp;{$form.is_default.label}</td>
</tr>
<!--tr class="crm-labelFormat-form-block-label_type">
<td class="right">{$form.label_type.label}</td>
<td colspan="3">{$form.label_type.html}</td>
</tr-->
<tr>
<td class="right">{$form.paper_size.label}</td>
<td>{$form.paper_size.html}</td>
<td class="right">{$form.font_name.label}</td>
<td>{$form.font_name.html}</td>
</tr>
<tr>
<td class="right">{$form.orientation.label}</td>
<td>{$form.orientation.html}</td>
<td class="right">{$form.font_size.label}</td>
<td>{$form.font_size.html}</td>
</tr>
<tr>
<td class="right">{$form.metric.label}</td>
<td>{$form.metric.html}</td>
<td class="right">{$form.font_style.label}</td>
<td>{$form.bold.html}&nbsp;{$form.bold.label}&nbsp;&nbsp;{$form.italic.html}&nbsp;{$form.italic.label}</td>
</tr>
<tr>
<td class="right">{$form.paper_dimensions.html}</td>
<td colspan="3" id="paper_dimensions">&nbsp;</td>
</tr>
<tr>
<td class="right">{$form.NX.label}</td>
<td>{$form.NX.html}</td>
<td class="right">{$form.NY.label}</td>
<td>{$form.NY.html}</td>
</tr>
<tr>
<td class="right">{$form.lMargin.label}</td>
<td>{$form.lMargin.html}</td>
<td class="right">{$form.tMargin.label}</td>
<td>{$form.tMargin.html}</td>
</tr>
<tr>
<td class="right">{$form.width.label}</td>
<td>{$form.width.html}</td>
<td class="right">{$form.height.label}</td>
<td>{$form.height.html}</td>
</tr>
<tr>
<td class="right">{$form.SpaceX.label}</td>
<td>{$form.SpaceX.html}<br/><span class="description">{ts}Space between labels.{/ts}</span></td>
<td class="right">{$form.SpaceY.label}</td>
<td>{$form.SpaceY.html}<br/><span class="description">{ts}Space between labels.{/ts}</span></td>
</tr>
<tr>
<td class="right">{$form.lPadding.label}</td>
<td>{$form.lPadding.html}<br/><span class="description">{ts}Pad inside each label.{/ts}</span></td>
<td class="right">{$form.tPadding.label}</td>
<td>{$form.tPadding.html}<br/><span class="description">{ts}Pad inside each label.{/ts}</span></td>
</tr>
<tr class="crm-labelFormat-form-block-weight">
<td class="right">{$form.weight.label}</td>
<td colspan="3">{$form.weight.html}
<div class="description">{ts}Weight controls the order in which Label Formats are displayed in selection lists. Enter a positive or negative integer. Lower numbers are displayed ahead of higher numbers.{/ts}</div>
</tr>
</table>
{literal}
<script type="text/javascript">
var currentWidth;
var currentHeight;
var currentMetric = document.getElementById('metric').value;
selectPaper(document.getElementById('paper_size').value);
function selectPaper(val) {
dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0 }"{literal};
cj.post(dataUrl, {paperSizeName: val}, function (data) {
cj("#paper_size").val(data.name);
metric = document.getElementById('metric').value;
currentWidth = convertMetric(data.width, data.metric, metric);
currentHeight = convertMetric(data.height, data.metric, metric);
updatePaperDimensions();
}, 'json');
}
function selectMetric(metric) {
convertField('tMargin', currentMetric, metric);
convertField('lMargin', currentMetric, metric);
convertField('width', currentMetric, metric);
convertField('height', currentMetric, metric);
convertField('SpaceX', currentMetric, metric);
convertField('SpaceY', currentMetric, metric);
convertField('lPadding', currentMetric, metric);
convertField('tPadding', currentMetric, metric);
currentWidth = convertMetric(currentWidth, currentMetric, metric);
currentHeight = convertMetric(currentHeight, currentMetric, metric);
updatePaperDimensions();
}
function updatePaperDimensions() {
metric = document.getElementById('metric').value;
width = new String(currentWidth.toFixed(2));
height = new String(currentHeight.toFixed(2));
if (document.getElementById('orientation').value == 'landscape') {
width = new String(currentHeight.toFixed(2));
height = new String(currentWidth.toFixed(2));
}
document.getElementById('paper_dimensions').innerHTML = parseFloat(width) + ' ' + metric + ' x ' + parseFloat(height) + ' ' + metric;
currentMetric = metric;
}
function convertField(id, from, to) {
val = document.getElementById(id).value;
if (val == '' || isNaN(val)) {
return;
}
val = convertMetric(val, from, to);
val = new String(val.toFixed(3));
document.getElementById(id).value = parseFloat(val);
}
function convertMetric(value, from, to) {
switch (from + to) {
case 'incm':
return value * 2.54;
case 'inmm':
return value * 25.4;
case 'inpt':
return value * 72;
case 'cmin':
return value / 2.54;
case 'cmmm':
return value * 10;
case 'cmpt':
return value * 72 / 2.54;
case 'mmin':
return value / 25.4;
case 'mmcm':
return value / 10;
case 'mmpt':
return value * 72 / 25.4;
case 'ptin':
return value / 72;
case 'ptcm':
return value * 2.54 / 72;
case 'ptmm':
return value * 25.4 / 72;
}
return value;
}
</script>
{/literal}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,65 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing location type *}
<div class="crm-block crm-form-block crm-location-type-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option will result in the loss of all location type records which use the option.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-location-type-form-block-label">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}<br />
<span class="description">{ts}WARNING: Do NOT use spaces in the Location Name.{/ts}</span>
</td>
</tr>
<tr class="crm-location-type-form-block-display_name">
<td class="label">{$form.display_name.label}</td>
<td>{$form.display_name.html}</td>
</tr>
<tr class="crm-location-type-form-block-vcard_name">
<td class="label">{$form.vcard_name.label}</td>
<td>{$form.vcard_name.html}</td>
</tr>
<tr class="crm-location-type-form-block-description">
<td class="label">{$form.description.label}</td>
<td>{$form.description.html}</td>
</tr>
<tr class="crm-location-type-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
<tr class="crm-location-type-form-block-is_default">
<td class="label">{$form.is_default.label}</td>
<td>{$form.is_default.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,86 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing email settings. *}
<div class="crm-block crm-form-block crm-mail-settings-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option will result in the loss of mail settings data.{/ts} {ts}Do you want to continue?{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-mail-settings-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Name of this group of settings.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-server"><td class="label">{$form.server.label}</td><td>{$form.server.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Name or IP address of mail server machine.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-username"><td class="label">{$form.username.label}</td><td>{$form.username.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Username to use when polling (for IMAP and POP3).{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-password"><td class="label">{$form.password.label}</td><td>{$form.password.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Password to use when polling (for IMAP and POP3).{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-localpart"><td class="label">{$form.localpart.label}</td><td>{$form.localpart.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Optional local part (e.g., 'civimail+' for addresses like civimail+s.1.2@example.com).{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-domain"><td class="label">{$form.domain.label}</td><td>{$form.domain.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Email address domain (the part after @).{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-return_path"><td class="label">{$form.return_path.label}</td><td>{$form.return_path.html}</td><tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Contents of the Return-Path header.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-protocol"><td class="label">{$form.protocol.label}</td><td>{$form.protocol.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Name of the protocol to use for polling.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-source"><td class="label">{$form.source.label}</td><td>{$form.source.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Folder to poll from when using IMAP (will default to INBOX when empty), path to poll from when using Maildir, etc..{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-is_ssl"><td class="label">{$form.is_ssl.label}</td><td>{$form.is_ssl.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Whether to use SSL for IMAP and POP3 or not.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-is_default"><td class="label">{$form.is_default.label}</td><td>{$form.is_default.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}How this mail account will be used. Only one box may be used for bounce processing. It will also be used as the envelope email when sending mass mailings.{/ts}</td></tr>
<tr class="crm-mail-settings-form-block-activity_status"><td class="label">{$form.activity_status.label}</td><td>{$form.activity_status.html}</td></tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{/if}
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
function showActivityStatus() {
$('.crm-mail-settings-form-block-activity_status', $form).toggle($(this).val() === '0');
}
$('select[name=is_default]').each(showActivityStatus).change(showActivityStatus);
});
</script>
{/literal}

View file

@ -0,0 +1,53 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing a saved mapping *}
<div class="crm-block crm-form-block crm-mapping-form-block">
{if $action eq 1 or $action eq 2 }
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-mapping-form-block-name">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}</td>
</tr>
<tr class="crm-mapping-form-block-description">
<td class="label">{$form.description.label}</td>
<td>{$form.description.html}</td>
</tr>
<tr class="crm-mapping-form-block-mapping_type_id">
<td class="label">{$form.mapping_type_id.label}</td>
<td>{$form.mapping_type_id.html}</td>
</tr>
</table>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div> &nbsp;
{ts 1=$mappingName}WARNING: Are you sure you want to delete mapping '<b>%1</b>'?{/ts} {ts}This action cannot be undone.{/ts}
</div>
<br />
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" loaction="bottom"}</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,179 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing/deleting Message Templates *}
{capture assign=tokenDocsRepeated}{docURL page="user/common-workflows/tokens-and-mail-merge" text="token documentation"}{/capture}
<h3>{if $action eq 1}{ts}New Message Template{/ts}{elseif $action eq 2}{ts}Edit Message Template{/ts}{else}{ts}Delete Message Template{/ts}{/if}</h3>
{if $action neq 8}
<div class="help">
{ts}Use this form to add or edit re-usable message templates.{/ts} {help id="id-intro" file="CRM/Admin/Page/MessageTemplates.hlp"}
</div>
{/if}
<div class="crm-block crm-form-block">
<div class="form-item" id="message_templates">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Do you want to delete this message template?{/ts}
</div>
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr>
<td class="label-left">{$form.msg_title.label}</td>
<td>{$form.msg_title.html}
<br /><span class="description html-adjust">{ts}Descriptive title of message - used for template selection.{/ts}</span>
</td>
</tr>
<tr>
<td class="label-left">{$form.file_type.label}</td>
<td>{$form.file_type.html}
<br /><span class="description html-adjust">{ts}Compose a message on-screen for general use in emails or document output, or upload a pre-composed document for mail-merge.{/ts}</span>
</td>
</tr>
<tr>
<td class="label-left">{$form.msg_subject.label}</td>
<td>
{$form.msg_subject.html|crmAddClass:huge}
<input class="crm-token-selector big" data-field="msg_subject" />
{help id="id-token-subject" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"}
<br /><span class="description">{ts}Subject for email message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</span>
</td>
</tr>
<tr>
<td class="label-left">{$form.file_id.label}</td>
<td>{$form.file_id.html}
{if $attachment}
{foreach from=$attachment key=attKey item=attVal}
<div class="crm-attachment-wrapper crm-entity" id="file_{$attVal.fileID}">
<strong><a class="crm-attachment" href="{$attVal.url}">{$attVal.cleanName}</a></strong>
{if $attVal.description}&nbsp;-&nbsp;{$attVal.description}{/if}
{if $attVal.deleteURLArgs}
<a href="#" class="crm-hover-button delete-attachment" data-mimetype="{$attVal.mime_type}" data-filename="{$attVal.cleanName}" data-args="{$attVal.deleteURLArgs}" title="{ts}Delete File{/ts}"><span class="icon delete-icon"></span></a>
{/if}
{include file="CRM/Form/attachmentjs.tpl" context='MessageTemplate'}
{/foreach}
{/if}
<br /><span class="description html-adjust">{ts}Upload the document in .docx or .odt format.{/ts}</span>
</td>
</tr>
<tr>
</table>
<div id="msg_html_section" class="crm-accordion-wrapper crm-html_email-accordion ">
<div class="crm-accordion-header">
{ts}HTML Format{/ts}
{help id="id-message-text" file="CRM/Contact/Form/Task/Email.hlp"}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="helpIcon" id="helphtml">
<input class="crm-token-selector big" data-field="msg_html" />
{help id="id-token-html" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"}
</div>
<div class="clear"></div>
<div class='html'>
{$form.msg_html.html}
<div class="description">{ts}An HTML formatted version of this message will be sent to contacts whose Email Format preference is 'HTML' or 'Both'.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</div>
</div>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
<div id="msg_text_section" class="crm-accordion-wrapper crm-plaint_text_email-accordion ">
<div class="crm-accordion-header">
{ts}Plain-Text Format{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="helpIcon" id="helptext">
<input class="crm-token-selector big" data-field="msg_text" />
{help id="id-token-text" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"}
</div>
<div class="clear"></div>
<div class='text'>
{$form.msg_text.html|crmAddClass:huge}
<div class="description">{ts}Text formatted message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}</div>
</div>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
<div id="pdf_format" class="crm-accordion-wrapper crm-html_email-accordion ">
<div class="crm-accordion-header">
{$form.pdf_format_id.label}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="spacer"></div>
<div class='html'>
{$form.pdf_format_id.html}
{help id="id-msg-template" file="CRM/Contact/Form/Task/PDFLetterCommon.hlp"}
<div class="description">{ts}Page format to use when creating PDF files using this template.{/ts}</div>
</div>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
{if !$workflow_id}
<table class="form-layout-compressed">
<tr>
<td class="label-left">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<br clear="all" />
</div>
</div> <!-- end of crm-form-block -->
{include file="CRM/Mailing/Form/InsertTokens.tpl"}
{literal}
<script type='text/javascript'>
CRM.$(function($) {
var mimeType = null;
// if default file is selected then hide the file upload field
if ($('a.delete-attachment').length) {
$('#file_id').hide();
mimeType = $('a.delete-attachment').data('mimetype');
}
var selector = $("input[id$='_file_type']").attr('type') == 'radio' ? "input[id$='_file_type']:checked" : "input[id$='_file_type']";
showHideUpload($(selector).val());
$("input[id$='_file_type']").on('click', function(){
showHideUpload(this.value);
});
function showHideUpload(type) {
var show = (type == 1) ? false : true;
$("#msg_html_section, #msg_text_section, #pdf_format").toggle(show);
$("#file_id").parent().parent().toggle(!show);
// auto file type validation
if (type) {
var validType = 'application/vnd.oasis.opendocument.text, application/vnd.openxmlformats-officedocument.wordprocessingml.document';
$("#file_id").attr('accept', validType);
}
}
});
</script>
{/literal}

View file

@ -0,0 +1,66 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-menu_url-title"}
{ts}Destination{/ts}
{/htxt}
{htxt id="id-menu_url"}
{ts}Enter the destination URL. Generally you should use relative URLs for CiviCRM pages (e.g. links to profiles). Use complete URLs for external pages. Leave this field empty if you are creating a menu section that does not have a clickable destination.{/ts}
{/htxt}
{htxt id="id-menu_icon-title"}
{ts}Icon{/ts}
{/htxt}
{htxt id="id-menu_icon"}
{ts}Select an icon to appear to the left side of the navigation menu item.{/ts}
{/htxt}
{htxt id="id-parent-title"}
{ts}Parent Section{/ts}
{/htxt}
{htxt id="id-parent"}
{ts}Select the menu item corresponding to the section this item should be placed in. If this is a top-level menu, leave this field empty.{/ts}
{/htxt}
{htxt id="id-has_separator-title"}
{ts}Separators{/ts}
{/htxt}
{htxt id="id-has_separator"}
{ts}Check this box to add a separator line between this menu item and the one below it.{/ts}
{/htxt}
{htxt id="id-menu_permission-title"}
{ts}Permissions{/ts}
{/htxt}
{htxt id="id-menu_permission"}
{ts}You can assign one or more permissions to this menu item. Multiple permissions are additive by default. EXAMPLE: If you assign <em>access CiviContribute</em> and <em>administer CiviCRM</em> to a menu item, a user will need to have BOTH permissions to access it. You can change this behavior to "either / or" by changing the Operator below.{/ts}
{/htxt}
{htxt id="id-permission_operator-title"}
{ts}Permission Operator{/ts}
{/htxt}
{htxt id="id-permission_operator"}
{ts}Set the Operator to "OR" if you've assigned multiple permissions and want access to be granted for any one of them. EXAMPLE: If you assign <em>access CiviContribute</em> and <em>administer CiviCRM</em> to a menu item, and set the Operator to "OR", users who have either of those permissions will have access.{/ts}
{/htxt}

View file

@ -0,0 +1,77 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Template for adding/editing a CiviCRM Navigation Menu Item *}
<div class="crm-block crm-form-block crm-navigation-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-navigation-form-block-label">
<td class="label">{$form.label.label}</td><td>{$form.label.html}</td>
</tr>
<tr class="crm-navigation-form-block-url">
<td class="label">{$form.url.label} {help id="id-menu_url" file="CRM/Admin/Form/Navigation.hlp"}</td>
<td>{$form.url.html} </td>
</tr>
<tr class="crm-navigation-form-block-icon">
<td class="label">{$form.icon.label} {help id="id-menu_icon" file="CRM/Admin/Form/Navigation.hlp"}</td>
<td>{$form.icon.html} </td>
</tr>
{if $form.parent_id.html}
<tr class="crm-navigation-form-block-parent_id">
<td class="label">{$form.parent_id.label} {help id="id-parent" file="CRM/Admin/Form/Navigation.hlp"}</td>
<td>{$form.parent_id.html}</td>
</tr>
{/if}
<tr class="crm-navigation-form-block-has_separator">
<td class="label">{$form.has_separator.label} {help id="id-has_separator" file="CRM/Admin/Form/Navigation.hlp"}</td>
<td>{$form.has_separator.html} </td>
</tr>
<tr class="crm-navigation-form-block-permission">
<td class="label">{$form.permission.label} {help id="id-menu_permission" file="CRM/Admin/Form/Navigation.hlp"}</td>
<td>{$form.permission.html} <span class="permission_operator_wrapper">{$form.permission_operator.html} {help id="id-permission_operator" file="CRM/Admin/Form/Navigation.hlp"}</span></td>
</tr>
<tr class="crm-navigation-form-block-is_active">
<td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
$('input[name=permission]', $form)
.on('change', function() {
$('span.permission_operator_wrapper').toggle(CRM._.includes($(this).val(), ','));
})
.change()
.crmSelect2({
formatResult: CRM.utils.formatSelect2Result,
formatSelection: function(row) {return row.label},
multiple: true
});
});
</script>
{/literal}

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<h3>{if $action eq 1}{ts}New Option Group{/ts}{elseif $action eq 2}{ts}Edit Option Group{/ts}{else}{ts}Delete Option Group{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-admin-optiongroup-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option gruop will result in the loss of all records which use the option.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-admin-optiongroup-form-block-name">
<tr class="crm-admin-optiongroup-form-block-title">
<td class="label">{$form.title.label}
{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_group' field='title' id=$id}{/if}</td><td>{$form.title.html}</td>
</tr>
<tr class="crm-admin-optiongroup-form-block-description">
<td class="label">{$form.description.label}
{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_group' field='description' id=$id}{/if}</td><td>{$form.description.html}</td>
</tr>
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}</td></tr>
<tr class="crm-admin-optiongroup-form-block-data-type">
<td class="label">{$form.data_type.label}</td>
<td>{$form.data_type.html}</td>
</tr>
<tr class="crm-admin-optiongroup-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,176 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing options *}
<div class="crm-block crm-form-block crm-admin-options-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$gLabel}WARNING: Deleting this option will result in the loss of all %1 related records which use the option.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
{if $gName eq 'custom_search'}
<tr class="crm-admin-options-form-block-custom_search_path">
<td class="label">{ts}Custom Search Path{/ts}</td>
<td>{$form.label.html}<br />
<span class="description">{ts}Enter the "class path" for this custom search here.{/ts}
</td>
</tr>
{elseif $gName eq 'from_email_address'}
<tr class="crm-admin-options-form-block-from_email_address">
<td class="label">{ts}FROM Email Address{/ts} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td>
<td>{$form.label.html}<br />
<span class="description">{ts}Include double-quotes (&quot;) around the name and angle-brackets (&lt; &gt;) around the email address.<br />EXAMPLE: <em>&quot;Client Services&quot; &lt;clientservices@example.org&gt;</em>{/ts}<span>
</td>
</tr>
{elseif $gName eq 'redaction_rule'}
<tr class="crm-admin-options-form-block-expression">
<td class="label">{ts}Match Value or Expression{/ts} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td>
<td>{$form.label.html}<br />
<span class="description">{ts}A "string value" or regular expression to be redacted (replaced).{/ts}</span>
</td>
</tr>
{else}
<tr class="crm-admin-options-form-block-label">
<td class="label">{$form.label.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td>
<td class="html-adjust">{$form.label.html}<br />
<span class="description">{ts}The option label is displayed to users.{/ts}</span>
</td>
</tr>
{if $form.financial_account_id.html}
<tr class="crm-admin-options-form-block-grouping">
<td class="label">{$form.financial_account_id.label}</td>
<td>{$form.financial_account_id.html}</td>
</tr>
{/if}
{/if}
{if $form.value.html && $gName neq 'redaction_rule'}
<tr class="crm-admin-options-form-block-value">
<td class="label">{$form.value.label}</td>
<td>{$form.value.html}<br />
{if $action == 2}
<span class="description"><i class="crm-i fa-exclamation-triangle"></i> {ts}Changing the Value field will unlink records which have been marked with this option. This change can not be undone except by restoring the previous value.{/ts}</span>
{/if}
</td>
</tr>
{/if}
{if $gName eq 'custom_search'}
<tr class="crm-admin-options-form-block-search_title">
<td class="label">{ts}Search Title{/ts}</td>
<td>{$form.description.html}<br />
<span class="description">{ts}This title is displayed to users in the Custom Search listings.{/ts}</span>
</td>
</tr>
{else}
{if $gName eq 'redaction_rule'}
<tr class="crm-admin-options-form-block-replacement">
<td class="label">{ts}Replacement (prefix){/ts}</td>
<td>{$form.value.html}<br />
<span class="description">{ts}Matched values are replaced with this prefix plus a unique code. EX: If replacement prefix for &quot;Vancouver&quot; is <em>city_</em>, occurrences will be replaced with <em>city_39121</em>.{/ts}</span>
</td>
</tr>
{/if}
{if $form.name.html} {* Get the name value also *}
<tr class="crm-admin-options-form-block-name">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}<br />
<span class="description">{ts}The class name which implements this functionality.{/ts}</span>
</td>
</tr>
{/if}
{if $form.filter.html} {* Filter property is only exposed for some option groups. *}
<tr class="crm-admin-options-form-block-filter">
<td class="label">{$form.filter.label}</td>
<td>{$form.filter.html}</td>
</tr>
{/if}
<tr class="crm-admin-options-form-block-desciption">
<td class="label">{$form.description.label}</td>
<td>{$form.description.html}<br />
{if $gName eq 'activity_type'}
<span class="description">{ts}Description is included at the top of the activity edit and view pages for this type of activity.{/ts}</span>
</td>
</tr>
{/if}
{/if}
{if $gName eq 'participant_status'}
<tr class="crm-admin-options-form-block-visibility_id">
<td class="label">{$form.visibility_id.label}</td>
<td>{$form.visibility_id.html}</td>
</tr>
{/if}
{if $form.grouping.html}
<tr class="crm-admin-options-form-block-grouping">
<td class="label">{$form.grouping.label}</td>
<td>{$form.grouping.html}</td>
</tr>
{/if}
<tr class="crm-admin-options-form-block-weight">
<td class="label">{$form.weight.label}</td>
<td>{$form.weight.html}</td>
</tr>
{if $form.icon.html}
<tr class="crm-admin-options-form-block-icon">
<td class="label">{$form.icon.label}</td>
<td>{$form.icon.html}</td>
</tr>
{/if}
{if $form.color.html}
<tr class="crm-admin-options-form-block-color">
<td class="label">{$form.color.label}</td>
<td>{$form.color.html}</td>
</tr>
{/if}
{if $form.component_id.html} {* Component ID is exposed for activity types if CiviCase is enabled. *}
<tr class="crm-admin-options-form-block-component_id">
<td class="label">{$form.component_id.label}</td>
<td>{$form.component_id.html}</td>
</tr>
{/if}
<tr class="crm-admin-options-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
{if $showDefault}
<tr class="crm-admin-options-form-block-is_default">
<td class="label">{$form.is_default.label}</td>
<td>{$form.is_default.html}</td>
</tr>
{/if}
{if $showContactFilter}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *}
<tr class="crm-admin-options-form-block-contactOptions">
<td class="label">{$form.contactOptions.label}</td>
<td>{$form.contactOptions.html}</td>
</tr>
{/if}
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>

View file

@ -0,0 +1,88 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-participant-status-form-block">
<fieldset>
<legend>
{if $action eq 1}{ts}New Participant Status{/ts}{elseif $action eq 2}{ts}Edit Participant Status{/ts}{else}{ts}Delete Participant Status{/ts}{/if}
</legend>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this Participant Status will remove all of its settings.{/ts} {ts}Do you want to continue?{/ts}
</div>
<div>{include file="CRM/common/formButtons.tpl"}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-participant-status-form-block-name">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}<br />
<span class="description">{ts}Name of this status type, for use in the code.{/ts}</span></td>
</tr>
<tr class="crm-participant-status-form-block-label">
<td class="label">{$form.label.label}{if $action == 2} {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_participant_status_type' field='label' id=$id}{/if}</td>
<td>{$form.label.html}<br />
<span class="description">{ts}Display label for this status.{/ts}</span></td>
</tr>
<tr class="crm-participant-status-form-block-class">
<td class="label">{$form.class.label}</td>
<td>{$form.class.html}<br />
<span class="description">{ts}The general class of this status. Participant counts are grouped by class on the CiviEvent Dashboard. Participants with a 'Pending' class status will be moved to 'Expired' status if Pending Participant Hours has elapsed (when the ParticipantProcessor.php background processing script is run).{/ts}</span></td>
</tr>
<tr class="crm-participant-status-form-block-is_reserved">
<td class="label">{$form.is_reserved.label}</td>
<td>{$form.is_reserved.html}</td>
</tr>
<tr class="crm-participant-status-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
<tr class="crm-participant-status-form-block-is_counted">
<td class="label">{$form.is_counted.label}</td>
<td>{$form.is_counted.html}<br />
<span class="description">{ts}Should a person with this status be counted as a participant for the purpose of controlling the Maximum Number of Participants?{/ts}</td>
</tr>
<tr class="crm-participant-status-form-block-weight">
<td class="label">{$form.weight.label}</td>
<td>{$form.weight.html}</td>
</tr>
<tr class="crm-participant-status-form-block-visibility_id">
<td class="label">{$form.visibility_id.label}</td>
<td>{$form.visibility_id.html}<br />
<span class="description">{ts}If you allow users to select a Participant Status by including that field on a profile - only statuses with 'Public' visibility are listed.{/ts}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{/if}
<div class="spacer"></div>
</fieldset>
</div>

View file

@ -0,0 +1,171 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* This template is used for adding/configuring Payment Processors used by a particular site/domain. *}
<h3>{if $action eq 1}{ts}New Payment Processor{/ts}{elseif $action eq 2}{ts}Edit Payment Processor{/ts}{else}{ts}Delete Payment Processor{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-paymentProcessor-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this Payment Processor may result in some transaction pages being rendered inactive.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-paymentProcessor-form-block-payment_processor_type">
<td class="label">{$form.payment_processor_type_id.label}</td><td>{$form.payment_processor_type_id.html} {help id='proc-type'}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-name">
<td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-description">
<td class="label">{$form.description.label}</td><td>{$form.description.html}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-financial_account">
<td class="label">{$form.financial_account_id.label}</td>
<td>
{if $financialAccount}
{$form.financial_account_id.html}
{else}
{capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialAccount' q="reset=1"}{/capture}
{ts 1=$ftUrl}There are no financial accounts configured with Financial Account Type 'Asset' Type. <a href='%1'>Click here</a> if you want to configure financial accounts for your site.{/ts}
{/if}
</td>
</tr>
<tr class="crm-paymentProcessor-form-block-payment-instrument-id">
<td class="label">{$form.payment_instrument_id.label}</td><td>{$form.payment_instrument_id.html}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-is_active">
<td></td><td>{$form.is_active.html}&nbsp;{$form.is_active.label}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-is_default">
<td></td><td>{$form.is_default.html}&nbsp;{$form.is_default.label}</td>
</tr>
<tr class="crm-paymentProcessor-form-block-accept_credit_cards">
<td class="label">{$form.accept_credit_cards.label}</td><td>{$form.accept_credit_cards.html}<br />
<span class="description">{ts}Select Credit Card Types that this payment processor can accept{/ts}</span></td>
</tr>
</table>
<fieldset>
<legend>{ts}Processor Details for Live Payments{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-paymentProcessor-form-block-user_name">
<td class="label">{$form.user_name.label}</td><td>{$form.user_name.html} {help id=$ppTypeName|cat:'-live-user-name' title=$form.user_name.label}</td>
</tr>
{if $form.password}
<tr class="crm-paymentProcessor-form-block-password">
<td class="label">{$form.password.label}</td><td>{$form.password.html} {help id=$ppTypeName|cat:'-live-password' title=$form.password.label}</td>
</tr>
{/if}
{if $form.signature}
<tr class="crm-paymentProcessor-form-block-signature">
<td class="label">{$form.signature.label}</td><td>{$form.signature.html} {help id=$ppTypeName|cat:'-live-signature' title=$form.signature.label}</td>
</tr>
{/if}
{if $form.subject}
<tr class="crm-paymentProcessor-form-block-subject">
<td class="label">{$form.subject.label}</td><td>{$form.subject.html}</td>
</tr>
{/if}
<tr class="crm-paymentProcessor-form-block-url_site">
<td class="label">{$form.url_site.label}</td><td>{$form.url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-site' title=$form.url_site.label}</td>
</tr>
{if $form.url_api}
<tr class="crm-paymentProcessor-form-block-url_api">
<td class="label">{$form.url_api.label}</td><td>{$form.url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-api' title=$form.url_api.label}</td>
</tr>
{/if}
{if $is_recur}
<tr class="crm-paymentProcessor-form-block-url_recur">
<td class="label">{$form.url_recur.label}</td><td>{$form.url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-recur' title=$form.url_recur.label}</td>
</tr>
{/if}
{if $form.url_button}
<tr class="crm-paymentProcessor-form-block-url_button">
<td class="label">{$form.url_button.label}</td><td>{$form.url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-button' title=$form.url_button.label}</td>
</tr>
{/if}
</table>
</fieldset>
<fieldset>
<legend>{ts}Processor Details for Test Payments{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-paymentProcessor-form-block-test_user_name">
<td class="label">{$form.test_user_name.label}</td><td>{$form.test_user_name.html} {help id=$ppTypeName|cat:'-test-user-name' title=$form.test_user_name.label}</td></tr>
{if $form.test_password}
<tr class="crm-paymentProcessor-form-block-test_password">
<td class="label">{$form.test_password.label}</td><td>{$form.test_password.html} {help id=$ppTypeName|cat:'-test-password' title=$form.test_password.label}</td>
</tr>
{/if}
{if $form.test_signature}
<tr class="crm-paymentProcessor-form-block-test_signature">
<td class="label">{$form.test_signature.label}</td><td>{$form.test_signature.html} {help id=$ppTypeName|cat:'-test-signature' title=$form.test_signature.label}</td>
</tr>
{/if}
{if $form.test_subject}
<tr class="crm-paymentProcessor-form-block-test_subject">
<td class="label">{$form.test_subject.label}</td><td>{$form.test_subject.html}</td>
</tr>
{/if}
<tr class="crm-paymentProcessor-form-block-test_url_site">
<td class="label">{$form.test_url_site.label}</td><td>{$form.test_url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-site' title=$form.test_url_site.label}</td>
</tr>
{if $form.test_url_api}
<tr class="crm-paymentProcessor-form-block-test_url_api">
<td class="label">{$form.test_url_api.label}</td><td>{$form.test_url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-api' title=$form.test_url_api.label}</td>
</tr>
{/if}
{if $is_recur}
<tr class="crm-paymentProcessor-form-block-test_url_recur">
<td class="label">{$form.test_url_recur.label}</td><td>{$form.test_url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-recur' title=$form.test_url_recur.label}</td>
</tr>
{/if}
{if $form.test_url_button}
<tr class="crm-paymentProcessor-form-block-test_url_button">
<td class="label">{$form.test_url_button.label}</td><td>{$form.test_url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-button' title=$form.test_url_button.label}</td>
</tr>
{/if}
{/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>
{if $action eq 1 or $action eq 2}
<script type="text/javascript">
{literal}
function reload(refresh) {
var paymentProcessorType = cj("#payment_processor_type_id");
var url = {/literal}"{$refreshURL}"{literal} + "&pp=" + paymentProcessorType.val();
paymentProcessorType.closest('form').attr('data-warn-changes', 'false');
window.location.href = url;
}
{/literal}
</script>
{/if}

View file

@ -0,0 +1,119 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing available Payment Processors *}
<div class="crm-block crm-form-block crm-paymentProcessor-type-form-block">
<fieldset><legend>{if $action eq 1}{ts}New Payment Procesor Type{/ts}{elseif $action eq 2}{ts}Edit Payment Procesor Type{/ts}{else}{ts}Delete Payment Procesor Type{/ts}{/if}</legend>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-paymentProcessor-type-form-block-title">
<td class="label">{$form.title.label}</td>
<td>{$form.title.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-name">
<td class="label">{$form.name.label}</td>
<td>{$form.name.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-description">
<td class="label">{$form.description.label}</td>
<td>{$form.description.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-billing_mode">
<td class="label">{$form.billing_mode.label}</td>
<td>{$form.billing_mode.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-class_name">
<td class="label">{$form.class_name.label}</td>
<td>{$form.class_name.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-is_active">
<td class="label"></td><td>{$form.is_active.html} {$form.is_active.label}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-is_default">
<td class="label"></td><td>{$form.is_default.html} {$form.is_default.label}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-is_recur">
<td class="label"></td><td>{$form.is_recur.html} {$form.is_recur.label}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-user_name_label">
<td class="label">{$form.user_name_label.label}</td>
<td>{$form.user_name_label.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-password_label">
<td class="label">{$form.password_label.label}</td>
<td>{$form.password_label.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-signature_label">
<td class="label">{$form.signature_label.label}</td>
<td>{$form.signature_label.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-subject_label">
<td class="label">{$form.subject_label.label}</td>
<td>{$form.subject_label.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_site_default">
<td class="label">{$form.url_site_default.label}</td>
<td>{$form.url_site_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_api_default">
<td class="label">{$form.url_api_default.label}</td>
<td>{$form.url_api_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_recur_default">
<td class="label">{$form.url_recur_default.label}</td>
<td>{$form.url_recur_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_button_default">
<td class="label">{$form.url_button_default.label}</td>
<td>{$form.url_button_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_site_test_default">
<td class="label">{$form.url_site_test_default.label}</td>
<td>{$form.url_site_test_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_api_test_default">
<td class="label">{$form.url_api_test_default.label}</td>
<td>{$form.url_api_test_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_recur_test_default">
<td class="label">{$form.url_recur_test_default.label}</td>
<td>{$form.url_recur_test_default.html}</td>
</tr>
<tr class="crm-paymentProcessor-type-form-block-url_button_test_default">
<td class="label">{$form.url_button_test_default.label}</td>
<td>{$form.url_button_test_default.html}</td>
</tr>
</table>
{/if}
</fieldset>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,145 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright (C) 2011 Marty Wright |
| Licensed to CiviCRM under the Academic Free License version 3.0. |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* This template is used for adding/configuring PDF Page Formats. *}
<div class="crm-block crm-form-block crm-pdfFormat-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$formatName}WARNING: You are about to delete the PDF Page Format titled <strong>%1</strong>.{/ts}<p>{ts}This will remove the format from all Message Templates that use it. Do you want to continue?{/ts}</p>
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-pdfFormat-form-block-name">
<td class="right">{$form.name.label}</td><td colspan="3">{$form.name.html}</td>
</tr>
<tr class="crm-pdfFormat-form-block-description">
<td class="right">{$form.description.label}</td><td colspan="3">{$form.description.html}</td>
</tr>
<tr class="crm-pdfFormat-form-block-is_default">
<td></td><td colspan="3">{$form.is_default.html}&nbsp;{$form.is_default.label}</td>
</tr>
<tr>
<td class="right">{$form.paper_size.label}</td><td>{$form.paper_size.html}</td>
<td class="right">{$form.orientation.label}</td><td>{$form.orientation.html}</td>
</tr>
<tr>
<td class="right">{$form.paper_dimensions.html}</td><td id="paper_dimensions">&nbsp;</td>
<td class="right">{$form.metric.label}</td><td>{$form.metric.html}</td>
</tr>
<tr>
<td class="right">{$form.margin_top.label}</td><td>{$form.margin_top.html}</td>
<td class="right">{$form.margin_bottom.label}</td><td>{$form.margin_bottom.html}</td>
</tr>
<tr>
<td class="right">{$form.margin_left.label}</td><td>{$form.margin_left.html}</td>
<td class="right">{$form.margin_right.label}</td><td>{$form.margin_right.html}</td>
</tr>
<tr class="crm-pdfFormat-form-block-weight">
<td class="right">{$form.weight.label}</td><td colspan="3">{$form.weight.html}<br />
<span class="description">{ts}Weight controls the order in which PDF Page Formats are displayed <br />in selection lists. Enter a positive or negative integer. Lower numbers <br />are displayed ahead of higher numbers.{/ts}</span>
</td>
</tr>
</table>
{literal}
<script type="text/javascript" >
var currentWidth;
var currentHeight;
var currentMetric = document.getElementById('metric').value;
selectPaper( document.getElementById('paper_size').value );
function selectPaper( val )
{
dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0 }"{literal};
cj.post( dataUrl, {paperSizeName: val}, function( data ) {
cj("#paper_size").val( data.name );
metric = document.getElementById('metric').value;
currentWidth = convertMetric( data.width, data.metric, metric );
currentHeight = convertMetric( data.height, data.metric, metric );
updatePaperDimensions( );
}, 'json');
}
function selectMetric( metric )
{
convertField( 'margin_top', currentMetric, metric );
convertField( 'margin_bottom', currentMetric, metric );
convertField( 'margin_left', currentMetric, metric );
convertField( 'margin_right', currentMetric, metric );
currentWidth = convertMetric( currentWidth, currentMetric, metric );
currentHeight = convertMetric( currentHeight, currentMetric, metric );
updatePaperDimensions( );
}
function updatePaperDimensions( )
{
metric = document.getElementById('metric').value;
width = new String( currentWidth.toFixed( 2 ) );
height = new String( currentHeight.toFixed( 2 ) );
if ( document.getElementById('orientation').value == 'landscape' ) {
width = new String( currentHeight.toFixed( 2 ) );
height = new String( currentWidth.toFixed( 2 ) );
}
document.getElementById('paper_dimensions').innerHTML = parseFloat( width ) + ' ' + metric + ' x ' + parseFloat( height ) + ' ' + metric;
currentMetric = metric;
}
function convertField( id, from, to )
{
val = document.getElementById( id ).value;
if ( val == '' || isNaN( val ) ) return;
val = convertMetric( val, from, to );
val = new String( val.toFixed( 3 ) );
document.getElementById( id ).value = parseFloat( val );
}
function convertMetric( value, from, to ) {
switch( from + to ) {
case 'incm': return value * 2.54;
case 'inmm': return value * 25.4;
case 'inpt': return value * 72;
case 'cmin': return value / 2.54;
case 'cmmm': return value * 10;
case 'cmpt': return value * 72 / 2.54;
case 'mmin': return value / 25.4;
case 'mmcm': return value / 10;
case 'mmpt': return value * 72 / 25.4;
case 'ptin': return value / 72;
case 'ptcm': return value * 2.54 / 72;
case 'ptmm': return value * 25.4 / 72;
}
return value;
}
</script>
{/literal}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,20 @@
<div class="form-item">
<legend>DB Template Strings Information</legend>
<div class="crm-block crm-form-block crm-admin-options-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr>
<td class="label ">{$form.context.label}</td>
<td>{$form.context.html|crmAddClass:huge}</dd>
</tr>
<tr>
<td class="label ">{$form.name.label}</td>
<td>{$form.name.html|crmAddClass:huge}</dd>
</tr>
<tr>
<td class="label ">{$form.data.label}</td>
<td>{$form.data.html}</dd>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,77 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="label-tokens-title"}
{ts}Mailing Label Tokens{/ts}
{/htxt}
{htxt id="label-tokens"}
{capture assign="example"}{ldelim}contact.custom_12{rdelim}{/capture}
<p>{ts}Configure mailing labels for your site using tokens, which are replaced by contact field values when the labels are generated. Place your cursor within the Mailing Labels box where you want to the token to be inserted. Then click the "Insert Tokens" link to see a list of available tokens (including custom fields). Insert the token by clicking the desired token name.{/ts}</p>
<ul>
<li>{ts}Address field values are taken from the contact's <strong>primary</strong> location.{/ts}</li>
<li>{ts 1=&#123;contact.state_province&#125; 2=&#123;contact.state_province_name&#125;}Use the %1 token for state/province abbreviation or %2 for full state/province name.{/ts}</li>
<li>{ts}Add spaces or punctuation to layout by surrounding them with brackets.{/ts}
<ul><li>{ts}EXAMPLE:{/ts} {literal}{, }{/literal}</li></ul></li>
<li>{ts}If you want to include the county in your mailing labels, the <strong>County</strong> checkbox must be checked in the Address Editing section on this screen, and county names must be added to the civicrm_county table in your database.{/ts}</li>
<li>{ts 1=$example}Custom tokens (based on custom data) can be added for organizations as well. These tokens will not be displayed in the list of available tokens, but can be added manually. The format is %1 where 12 is the ID of the custom data field. To find the custom data field ID, go Administer > Customize Data & Screens > Custom Fields and click edit on the field you want to use. Look at the URL. The last part of the URL will be an equal sign and a number (=12). The number (12 in this example) is the id of that custom field.{/ts}</li>
</ul>
{/htxt}
{htxt id="address-tokens-title"}
{ts}Address Tokens{/ts}
{/htxt}
{htxt id="address-tokens"}
<p>{ts}The following tokens are available to format Address display on Contact and Event screens.{/ts}</p>
<table>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.address_name}{/literal}</td><td>{ts}Descriptive name assigned to a contact or event address. EXAMPLES: 'College address' for a person. 'Johnson Pavilion' for an event.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.street_address}{/literal}</td><td>{ts}Full street address (e.g. 110 Main Street).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.supplemental_address_1}{/literal}</td><td>{ts}Supplemental address 1 (line is skipped if empty).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.supplemental_address_2}{/literal}</td><td>{ts}Supplemental address 2 (line is skipped if empty).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.supplemental_address_3}{/literal}</td><td>{ts}Supplemental address 3 (line is skipped if empty).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.city}{/literal}</td><td>{ts}City.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.county}{/literal}</td><td>{ts}County name. If you want to include the county in your screen displays, the <strong>County</strong> checkbox should be set under <strong>Address Editing &raquo; Address Fields</strong> on this screen, and county names must be added to the civicrm_county table in your database.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.state_province}{/literal}</td><td>{ts}State or province <strong>abbreviation</strong>.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.state_province_name}{/literal}</td><td>{ts}State or province <strong>full name</strong>.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.postal_code}{/literal}</td><td>{ts}Postal code.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.country}{/literal}</td><td>{ts}Country name (e.g. Canada).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{, }{/literal}</td><td>{ts}Add spaces or punctuation to layout by surrounding them with brackets.{/ts}</td>
</table>
{/htxt}
{htxt id="name-tokens-title"}
{ts}Name Tokens{/ts}
{/htxt}
{htxt id="name-tokens"}
<p>{ts}The following tokens are available to control the format of individuals' contact names when they are included in <strong>mailing labels</strong>.{/ts}</p>
<table>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.individual_prefix}{/literal}</td><td>{ts}Assigned name prefix, if any (e.g. 'Ms.', 'Dr.', 'Hon.' etc.).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.individual_suffix}{/literal}</td><td>{ts}Assigned name suffix, if any (e.g. 'II', 'Jr.', 'Sr.' etc.).{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.first_name}{/literal}</td><td>{ts}Contact's first name.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.middle_name}{/literal}</td><td>{ts}Contact's middle name.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.last_name}{/literal}</td><td>{ts}Contact's last name.{/ts}</td>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{contact.current_employer}{/literal}</td><td>{ts}Current employer name as configured in the individual contact edit form. You will probably want this on a separate line, so use the Enter key to create a line-break after the name fields.{/ts}</td></tr>
<tr style="vertical-align:top;"><td style="padding-right:1em;">{literal}{, }{/literal}</td><td>{ts}Add spaces or punctuation to layout by surrounding them with brackets.{/ts}</td>
</table>
{/htxt}

View file

@ -0,0 +1,105 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-preferences-address-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<h3>{ts}Mailing Labels{/ts}</h3>
<table class="form-layout">
<tr class="crm-preferences-address-form-block-mailing_format">
<td class="label">{$form.mailing_format.label}<br />{help id='label-tokens'}</td>
<td>
<div class="helpIcon" id="helphtml">
<input class="crm-token-selector big" data-field="mailing_format" />
{help id="id-token-text" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"}
</div>
{$form.mailing_format.html|crmAddClass:huge12}<br />
<span class="description">{ts}Content and format for mailing labels.{/ts}</span>
</td>
</tr>
<tr class="crm-preferences-address-form-block-hideCountryMailingLabels">
<td class="label">{$form.hideCountryMailingLabels.label}
<td>{$form.hideCountryMailingLabels.html}
</td>
</tr>
</table>
<h3>{ts}Address Display{/ts}</h3>
<table class="form-layout">
<tr class="crm-preferences-address-form-block-address_format">
<td class="label">{$form.address_format.label}<br />{help id='address-tokens'}</td>
<td>
<div class="helpIcon" id="helphtml">
<input class="crm-token-selector big" data-field="address_format" />
{help id="id-token-text" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"}
</div>
{$form.address_format.html|crmAddClass:huge12}<br />
<span class="description">{ts}Format for displaying addresses in the Contact Summary and Event Information screens.{/ts}<br />{ts 1=&#123;contact.state_province&#125; 2=&#123;contact.state_province_name&#125;}Use %1 for state/province abbreviation or %2 for state province name.{/ts}</span>
</td>
</tr>
</table>
<h3>{ts}Address Editing{/ts}</h3>
<table class="form-layout">
<tr class="crm-preferences-address-form-block-address_options">
<td class="label">{$form.address_options.label}
<td>{$form.address_options.html}<br />
<span class="description">{ts}Select the fields to be included when editing a contact or event address.{/ts}</span>
</td>
</tr>
</table>
<h3>{ts}Address Standardization{/ts}</h3>
<table class="form-layout">
<tr class="crm-preferences-address-form-block-description">
<td colspan="2">
<span class="description">
{ts 1=https://www.usps.com/business/web-tools-apis/welcome.htm}CiviCRM includes an optional plugin for interfacing with the United States Postal Services (USPS) Address Standardization web service. You must register to use the USPS service at <a href='%1' target='_blank'>%1</a>. If you are approved, they will provide you with a User ID and the URL for the service.{/ts}
{ts}Plugins for other address standardization services may be available from 3rd party developers. If installed, they will be included in the drop-down below.{/ts}
</span>
</td>
</tr>
<tr class="crm-preferences-address-form-block-address_standardization_provider">
<td class="label">{$form.address_standardization_provider.label}</td>
<td>{$form.address_standardization_provider.html}<br />
<span class="description">{ts}Address Standardization Provider.{/ts}</span>
</td>
</tr>
<tr class="crm-preferences-address-form-block-address_standardization_userid">
<td class="label">{$form.address_standardization_userid.label}
<td>{$form.address_standardization_userid.html}<br />
<span class="description">{ts}Web service user ID.{/ts}</span>
</td>
</tr>
<tr class="crm-preferences-address-form-block-address_standardization_url">
<td class="label">{$form.address_standardization_url.label}
<td>{$form.address_standardization_url.html}<br />
<span class="description">{ts}Web Service URL{/ts}</span>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{include file="CRM/Mailing/Form/InsertTokens.tpl"}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,33 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="acl_financial_type-title"}
{ts}Access Control by Financial Type{/ts}
{/htxt}
{htxt id="acl_financial_type"}
<p>{ts}Enabling Access Control by Financial Types is only required if you need users in one role to access some financial transactions but not ones with certain financial types.</p>
<p>For example, Planned Giving bequests may be highly confidential and not appropriate for staff organizing events to see, even though they need to be able to administer the payments for ticket purchases.</p>
<p>After enabling, you will be able to set create, view, edit, and delete permissions separately for each financial type by navigating to Administer > Users and Permissions > Permissions (Access Control), and clicking on the Access Control link for your CMS.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,46 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="editor_id-title"}
{ts}WYSIWYG Editor{/ts}
{/htxt}
{htxt id="editor_id"}
<p>
{ts}A "WYSIWYG" (What You See Is What You Get) is a rich-text editor, like a mini word-processor, for editing HTML content in CiviCRM.{/ts}
</p>
<ul>
<li>{ts}Select 'CKEditor' for the built-in WYSIWYG option. You can customize the toolbar buttons and other settings by clicking "Configure CKEditor."{/ts}</li>
<li>{ts}Select 'Textarea' if you want users to type text and/or HTML code into plain text fields.{/ts}</li>
<li>{ts 1='target="_blank" href="https://civicrm.org/extensions/home?body_value=wysiwyg&field_extension_cms_tid=127"'}Other WYSIWYG editors are available for download from the <a %1>CiviCRM Extension Directory</a>.{/ts}</li>
</ul>
{/htxt}
{htxt id="id-invoices_id-title"}
{ts}Invoices / Credit Notes{/ts}
{/htxt}
{htxt id="id-invoices_id"}
{capture assign=invoiceURL}{crmURL p='civicrm/admin/setting/preferences/contribute' q="reset=1"}{/capture}
{ts 1=$invoiceURL}In order to enable logged in users to download invoices and credit notes from the dashboard. Please first enable CiviCRM invoicing functionality <a href='%1'>Administer > CiviContribute > CiviContribute Component Settings</a>{/ts}
{/htxt}

View file

@ -0,0 +1,250 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for editing Site Preferences *}
<div class="crm-block crm-form-block crm-preferences-display-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-preferences-display-form-block-contact_view_options">
<td class="label">{$form.contact_view_options.label}</td>
<td>{$form.contact_view_options.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{capture assign=crmURL}{crmURL p='civicrm/admin/setting/component' q='action=add&reset=1'}{/capture}
{ts 1=$crmURL}Select the <strong>tabs</strong>
that should be displayed when viewing a contact record. EXAMPLE: If your organization does not keep track of
'Relationships', then un-check this option to simplify the screen display. Tabs for Contributions, Pledges,
Memberships, Events, Grants and Cases are also hidden if the corresponding component is not enabled. Go to
<a href="%1">Administer > System Settings > Enable Components</a>
to modify the components which are available for your site.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-contact_smart_group_display">
<td class="label">{$form.contact_smart_group_display.label}</td>
<td>{$form.contact_smart_group_display.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}Controls display of the smart groups that a contact is part of in each contact's "Groups" tab. "Show on Demand" provides the best performance, and is recommended for most sites.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-contact_edit_options">
<td class="label">{$form.contact_edit_options.label}</td>
<td>
<table style="width:90%">
<tr>
<td style="width:30%">
<span class="label"><strong>{ts}Individual Name Fields{/ts}</strong></span>
<ul id="contactEditNameFields">
{foreach from=$nameFields item="title" key="opId"}
<li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
style="padding-left:1px;">
<span>{$form.contact_edit_options.$opId.html}</span>
</li>
{/foreach}
</ul>
</td>
<td style="width:30%">
<span class="label"><strong>{ts}Contact Details{/ts}</strong></span>
<ul id="contactEditBlocks">
{foreach from=$contactBlocks item="title" key="opId"}
<li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
style="padding-left:1px;">
<i class='crm-i fa-arrows crm-grip' style="float:left;"></i>
<span>{$form.contact_edit_options.$opId.html}</span>
</li>
{/foreach}
</ul>
</td>
<td>
<span class="label"><strong>{ts}Other Panes{/ts}</strong></span>
<ul id="contactEditOptions">
{foreach from=$editOptions item="title" key="opId"}
<li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
style="padding-left:1px;">
<i class='crm-i fa-arrows crm-grip' style="float:left;"></i>
<span>{$form.contact_edit_options.$opId.html}</span>
</li>
{/foreach}
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}Select the sections that should be included when adding or editing a contact record. EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact add/edit screen.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-advanced_search_options">
<td class="label">{$form.advanced_search_options.label}</td>
<td>{$form.advanced_search_options.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}Select the sections that should be included in the Basic and Advanced Search forms. EXAMPLE: If you don't track Relationships - then you do not need this section included in the advanced search form. Simplify the form by un-checking this option.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-contact_ajax_check_similar">
<td class="label"></td>
<td>{$form.contact_ajax_check_similar.html} {$form.contact_ajax_check_similar.label}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">{ts}When enabled, checks for contacts with similar names as the user types values into the contact form name fields.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-activity_assignee_notification">
<td class="label"></td>
<td>{$form.activity_assignee_notification.html} {$form.activity_assignee_notification.label}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}When enabled, contacts who are assigned activities will automatically receive an email notification with a copy of the activity.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-activity_assignee_notification_ics">
<td class="label"></td>
<td>{$form.activity_assignee_notification_ics.html} {$form.activity_assignee_notification_ics.label}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">{ts}When enabled, the assignee notification sent out above will also include an ical meeting invite.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-preserve_activity_tab_filter">
<td class="label"></td>
<td>{$form.preserve_activity_tab_filter.html} {$form.preserve_activity_tab_filter.label}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">{ts}When enabled, any filter settings a user selects on the contact's Activity tab will be remembered as they visit other contacts.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-user_dashboard_options">
<td class="label">{$form.user_dashboard_options.label}</td>
<td>{$form.user_dashboard_options.html}<span id="invoice_help"> {help id="id-invoices_id"}</span></td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don't want constituents to view their own contribution history, un-check that option.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-editor_id">
<td class="label">{$form.editor_id.label} {help id="editor_id"}</td>
<td>
{$form.editor_id.html}
&nbsp;
<span class="crm-button crm-icon-button" style="display:inline-block;vertical-align:middle;float:none!important;">
<i class="crm-i fa-wrench" style="margin: 0 -18px 0 2px;"></i>
{$form.ckeditor_config.html}
</span>
</td>
</tr>
<tr class="crm-preferences-display-form-block-ajaxPopupsEnabled">
<td class="label">{$form.ajaxPopupsEnabled.label}</td>
<td>{$form.ajaxPopupsEnabled.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">
{ts}If you disable this option, the CiviCRM interface will be limited to traditional browsing. Opening a form will refresh the page rather than opening a popup dialog.{/ts}
</td>
</tr>
<tr class="crm-preferences-display-form-block-display_name_format">
<td class="label">{$form.display_name_format.label}</td>
<td>{$form.display_name_format.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
</tr>
<tr class="crm-preferences-display-form-block-sort_name_format">
<td class="label">{$form.sort_name_format.label}</td>
<td>{$form.sort_name_format.html}</td>
</tr>
<tr class="crm-preferences-display-form-block-description">
<td>&nbsp;</td>
<td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{if $form.contact_edit_options.html}
{literal}
<script type="text/javascript">
CRM.$(function($) {
function getSorting(e, ui) {
var params = [];
var y = 0;
var items = $("#contactEditBlocks li");
if (items.length > 0) {
for (var y = 0; y < items.length; y++) {
var idState = items[y].id.split('-');
params[y + 1] = idState[1];
}
}
items = $("#contactEditOptions li");
if (items.length > 0) {
for (var x = 0; x < items.length; x++) {
var idState = items[x].id.split('-');
params[x + y + 1] = idState[1];
}
}
$('#contact_edit_preferences').val(params.toString());
}
var invoicesKey = '{/literal}{$invoicesKey}{literal}';
var invoicing = '{/literal}{$invoicing}{literal}';
if (!invoicing) {
$('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
}
$("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
$("#contactEditBlocks, #contactEditOptions").sortable({
placeholder: 'ui-state-highlight',
update: getSorting
});
function showCKEditorConfig() {
$('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
}
$('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
});
</script>
{/literal}
{/if}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/Form/basicForm.tpl"}

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing location type *}
<div class="crm-block crm-form-block crm-preferences-date-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class='form-layout-compressed'>
<tr class="crm-preferences-date-form-block-name">
<td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
</tr>
<tr class="crm-preferences-date-form-block-description">
<td class="label">{$form.description.label}</td><td>{$form.description.html}</td>
</tr>
<tr class="crm-preferences-date-form-block-date_format">
<td class="label">{$form.date_format.label}</td><td>{$form.date_format.html}</td>
</tr>
{if $form.time_format.label}
<tr class="crm-preferences-date-form-block-time_format">
<td class="label">{$form.time_format.label}</td><td>{$form.time_format.html}</td>
</tr>
{/if}
<tr class="crm-preferences-date-form-block-start">
<td class="label">{$form.start.label}</td><td>{$form.start.html}</td>
</tr>
<tr class="crm-preferences-date-form-block-end">
<td class="label">{$form.end.label}</td><td>{$form.end.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,67 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing relationship types *}
<div class="crm-block crm-form-block crm-relationship-type-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option will result in the loss of all Relationship records of this type.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-relationship-type-form-block-label_a_b">
<td class="label">{$form.label_a_b.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='label_a_b' id=$relationship_type_id}{/if}</td>
<td>{$form.label_a_b.html}<br />
<span class="description">{ts}Label for the relationship from Contact A to Contact B. EXAMPLE: Contact A is 'Parent of' Contact B.{/ts}</span></td>
</tr>
<tr class="crm-relationship-type-form-block-label_b_a">
<td class="label">{$form.label_b_a.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='label_b_a' id=$relationship_type_id}{/if}</td>
<td>{$form.label_b_a.html}<br />
<span class="description">{ts}Label for the relationship from Contact B to Contact A. EXAMPLE: Contact B is 'Child of' Contact A. You may leave this blank for relationships where the name is the same in both directions (e.g. Spouse).{/ts}</span></td>
</tr>
<tr class="crm-relationship-type-form-block-contact_types_a">
<td class="label">{$form.contact_types_a.label}</td>
<td>{$form.contact_types_a.html}</td>
</tr>
<tr class="crm-relationship-type-form-block-contact_types_b">
<td class="label">{$form.contact_types_b.label}</td>
<td>{$form.contact_types_b.html}</td>
</tr>
<tr class="crm-relationship-type-form-block-description">
<td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='description' id=$relationship_type_id}{/if}</td>
<td>{$form.description.html}</td>
</tr>
<tr class="crm-relationship-type-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,291 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* This template is used for adding/scheduling reminders. *}
<div class="crm-block crm-form-block crm-scheduleReminder-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$reminderName}WARNING: You are about to delete the Reminder titled <strong>%1</strong>.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-scheduleReminder-form-block-title">
<td class="right">{$form.title.label}</td><td colspan="3">{$form.title.html}</td>
</tr>
<tr>
<td class="label">{$form.entity.label}</td>
<td>{$form.entity.html}</td>
</tr>
<tr class="crm-scheduleReminder-form-block-when">
<td class="right">{$form.start_action_offset.label}</td>
<td colspan="3">{include file="CRM/common/jcalendar.tpl" elementName=absolute_date} <strong id='OR'>OR</strong><br /></td>
</tr>
<tr id="relativeDate" class="crm-scheduleReminder-form-block-description">
<td class="right"></td>
<td colspan="3">{$form.start_action_offset.html}&nbsp;&nbsp;&nbsp;{$form.start_action_unit.html}&nbsp;&nbsp;&nbsp;{$form.start_action_condition.html}&nbsp;&nbsp;&nbsp;{$form.start_action_date.html}</td>
</tr>
<tr id="recordActivity" class="crm-scheduleReminder-form-block-record_activity"><td class="label" width="20%">{$form.record_activity.label}</td>
<td>{$form.record_activity.html}</td>
</tr>
<tr id="relativeDateRepeat" class="crm-scheduleReminder-form-block-is_repeat"><td class="label" width="20%">{$form.is_repeat.label}</td>
<td>{$form.is_repeat.html}&nbsp;&nbsp;<span class="description">{ts}Enable repetition.{/ts}</span></td>
</tr>
<tr id="repeatFields" class="crm-scheduleReminder-form-block-repeatFields"><td></td><td>
<table class="form-layout-compressed">
<tr class="crm-scheduleReminder-form-block-repetition_frequency_interval">
<td class="label">{$form.repetition_frequency_interval.label}&nbsp;&nbsp;&nbsp;{$form.repetition_frequency_interval.html}</td>
<td>{$form.repetition_frequency_unit.html}</td>
</tr>
<tr class="crm-scheduleReminder-form-block-repetition_frequency_interval">
<td class="label">{$form.end_frequency_interval.label}&nbsp;&nbsp;&nbsp;{$form.end_frequency_interval.html}
<td>{$form.end_frequency_unit.html}&nbsp;&nbsp;&nbsp;{$form.end_action.html}&nbsp;&nbsp;&nbsp;{$form.end_date.html}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="label" width="20%">{$form.from_name.label}</td>
<td>{$form.from_name.html}&nbsp;&nbsp;{help id="id-from_name_email"}</td>
</tr>
<tr>
<td class="label" width="20%">{$form.from_email.label}</td>
<td>{$form.from_email.html}&nbsp;&nbsp;</td>
</tr>
<tr class="crm-scheduleReminder-form-block-recipient">
<td id="recipientLabel" class="right">{$form.recipient.label}</td><td colspan="3">{$form.limit_to.html}&nbsp;{help id="limit_to" class="limit_to" title=$form.recipient.label}{$form.recipient.html}&nbsp;{help id="recipient" class="recipient" title=$recipientLabels.activity}</td>
</tr>
<tr id="recipientList" class="crm-scheduleReminder-form-block-recipientListing recipient">
<td class="right">{$form.recipient_listing.label}</td><td colspan="3">{$form.recipient_listing.html}</td>
</tr>
<tr id="recipientManual" class="crm-scheduleReminder-form-block-recipient_manual_id recipient">
<td class="label">{$form.recipient_manual_id.label}</td>
<td>{$form.recipient_manual_id.html}{edit}<div class="description">{ts}You can manually send out the reminders to these recipients.{/ts}</div>{/edit}</td>
</tr>
<tr id="recipientGroup" class="crm-scheduleReminder-form-block-recipient_group_id recipient">
<td class="label">{$form.group_id.label}</td>
<td>{$form.group_id.html}</td>
</tr>
<tr id="msgMode" class="crm-scheduleReminder-form-block-mode">
<td class="label">{$form.mode.label}</td>
<td>{$form.mode.html}</td>
</tr>
{if $multilingual}
<tr class="crm-scheduleReminder-form-block-filter-contact-language">
<td class="label">{$form.filter_contact_language.label}</td>
<td>{$form.filter_contact_language.html} {help id="filter_contact_language"}</td>
</tr>
<tr class="crm-scheduleReminder-form-block-communication-language">
<td class="label">{$form.communication_language.label}</td>
<td>{$form.communication_language.html} {help id="communication_language"}</td>
</tr>
{/if}
<tr class="crm-scheduleReminder-form-block-active">
<td class="label"></td>
<td>{$form.is_active.html}&nbsp;{$form.is_active.label}</td>
</tr>
</table>
<fieldset id="email" class="crm-collapsible" style="display: block;">
<legend class="collapsible-title">{ts}Email Screen{/ts}</legend>
<div>
<table id="email-field-table" class="form-layout-compressed">
<tr class="crm-scheduleReminder-form-block-template">
<td class="label">{$form.template.label}</td>
<td>{$form.template.html}</td>
</tr>
<tr class="crm-scheduleReminder-form-block-subject">
<td class="label">{$form.subject.label}</td>
<td>{$form.subject.html}</td>
</tr>
</table>
{include file="CRM/Contact/Form/Task/EmailCommon.tpl" upload=1 noAttach=1}
</div>
</fieldset>
{if $sms}
<fieldset id="sms" class="crm-collapsible"><legend class="collapsible-title">{ts}SMS Screen{/ts}</legend>
<div>
<table id="sms-field-table" class="form-layout-compressed">
<tr id="smsProvider" class="crm-scheduleReminder-form-block-sms_provider_id">
<td class="label">{$form.sms_provider_id.label}</td>
<td>{$form.sms_provider_id.html}</td>
</tr>
<tr class="crm-scheduleReminder-form-block-sms-template">
<td class="label">{$form.SMStemplate.label}</td>
<td>{$form.SMStemplate.html}</td>
</tr>
</table>
{include file="CRM/Contact/Form/Task/SMSCommon.tpl" upload=1 noAttach=1}
<div>
</fieldset>
{/if}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id = "is_repeat"
trigger_value = "true"
target_element_id = "repeatFields"
target_element_type = "table-row"
field_type = "radio"
invert = "false"
}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="recipient"
trigger_value = 'manual'
target_element_id ="recipientManual"
target_element_type ="table-row"
field_type ="select"
invert = 0
}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="recipient"
trigger_value = 'group'
target_element_id ="recipientGroup"
target_element_type ="table-row"
field_type ="select"
invert = 0
}
{literal}
<script type='text/javascript'>
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}'),
recipientMapping = eval({/literal}{$recipientMapping}{literal});
$('#absolute_date_display', $form).change(function() {
if($(this).val()) {
$('#relativeDate, #relativeDateRepeat, #repeatFields, #OR', $form).hide();
} else {
$('#relativeDate, #relativeDateRepeat, #OR', $form).show();
}
});
if ($('#absolute_date_display', $form).val()) {
$('#relativeDate, #relativeDateRepeat, #repeatFields, #OR', $form).hide();
}
loadMsgBox();
$('#mode', $form).change(loadMsgBox);
function populateRecipient() {
var mappingID = $('#entity_0', $form).val() || $('[name^=mappingID]', $form).val();
var recipient = $("#recipient", $form).val();
$("#recipientList", $form).hide();
if ($('#limit_to').val() != '' ) {
$.getJSON(CRM.url('civicrm/ajax/recipientListing'), {mappingID: mappingID, recipientType: recipient},
function (result) {
if (!CRM._.isEmpty(result.recipients)) {
CRM.utils.setOptions($('#recipient_listing', $form), result.recipients);
$("#recipientList", $form).show();
}
}
);
}
showHideLimitTo();
}
// CRM-14070 Hide limit-to when entity is activity
function showHideLimitTo() {
$('#limit_to', $form).toggle(!($('#entity_0', $form).val() == '1'));
if ($('#entity_0', $form).val() != '1' || !($('#entity_0').length)) {
if ($('#limit_to', $form).val() == '') {
$('tr.recipient:visible, #recipientList, #recipient, a.recipient').hide();
$('a.limit_to').show();
}
else {
$('a.limit_to, a.recipient').show();
$('#recipient').css("margin-left", "12px");
}
$("label[for='recipient']").text('{/literal}{$recipientLabels.other}{literal}');
}
else {
$('#recipient, a.recipient').show()
$('#recipient').css("margin-left", "-2px");
$('a.limit_to').hide();
$("label[for='recipient']").text('{/literal}{$recipientLabels.activity}{literal}');
}
}
$('#recipient', $form).change(populateRecipient);
{/literal}{if !$context}{literal}
var entity = $('#entity_0', $form).val();
if (!(entity === '2' || entity === '3')) {
$('#recipientList', $form).hide();
}
$('#entity_0, #limit_to', $form).change(buildSelects);
buildSelects();
function buildSelects() {
var mappingID = $('#entity_0', $form).val();
var isLimit = $('#limit_to', $form).val();
$.getJSON(CRM.url('civicrm/ajax/mapping'), {mappingID: mappingID, isLimit: isLimit},
function (result) {
CRM.utils.setOptions($('#start_action_date', $form), result.sel4);
CRM.utils.setOptions($('#end_date', $form), result.sel4);
CRM.utils.setOptions($('#recipient', $form), result.sel5);
recipientMapping = result.recipientMapping;
populateRecipient();
}
);
}
{/literal}{else}{literal}
populateRecipient();
$('#limit_to', $form).change(populateRecipient);
{/literal}{/if}{literal}
function loadMsgBox() {
if (cj('#mode').val() == 'Email' || cj('#mode').val() == 0){
cj('#sms').hide();
cj('#email').show();
}
else if (cj('#mode').val() == 'SMS'){
cj('#email').hide();
cj('#sms').show();
showSaveUpdateChkBox('SMS');
}
else if (cj('#mode').val() == 'User_Preference'){
cj('#email').show();
cj('#sms').show();
showSaveUpdateChkBox('SMS');
}
}
});
</script>
{/literal}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-case-form-block">
{*<div class="help">*}
{*{ts}...{/ts} {docURL page="Debugging for developers" resource="wiki"}*}
{*</div>*}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-case-form-block-civicaseRedactActivityEmail">
<td class="label">{$form.civicaseRedactActivityEmail.label}</td>
<td>{$form.civicaseRedactActivityEmail.html}<br />
<span class="description">{ts}Should activity emails be redacted?{/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
</td>
</tr>
<tr class="crm-case-form-block-civicaseAllowMultipleClients">
<td class="label">{$form.civicaseAllowMultipleClients.label}</td>
<td>{$form.civicaseAllowMultipleClients.html}<br />
<span class="description">{ts}How many clients may be associated with a given case?{/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
</td>
</tr>
<tr class="crm-case-form-block-civicaseNaturalActivityTypeSort">
<td class="label">{$form.civicaseNaturalActivityTypeSort.label}</td>
<td>{$form.civicaseNaturalActivityTypeSort.html}<br />
<span class="description">{ts}How to sort activity-types on the "Manage Case" screen? {/ts} {ts}(Set "Default" to load setting from the legacy "Settings.xml" file.){/ts}</span>
</td>
</tr>
<tr class="crm-case-form-block-civicaseActivityRevisions">
<td class="label">{$form.civicaseActivityRevisions.label}</td>
<td>{$form.civicaseActivityRevisions.html}<br />
<span class="description">{ts}Enable embedded tracking to activity revisions within the "civicrm_activity" table. Alternatively, see "Administer => System Settings => Misc => Logging".{/ts}</span>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,39 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="components-title"}
{ts}Components{/ts}
{/htxt}
{htxt id="components"}
<p>{ts}These optional components give you more tools to connect with and engage your supporters.{/ts}</p>
<p>{ts}<strong>CiviContribute</strong> - An online fundraising and donor management component which enables you to track and manage contributions to your organization. It also allows you to quickly and easily create customized web pages to accept online donations.{/ts} {docURL page="user/contributions/what-is-civicontribute"}</p>
<p>{ts}<strong>CiviPledge</strong> - Record and track pledges received from contributors. Send pledge acknowledgements and payment reminders. Configure online contribution pages to support self-service pledging and pledge payments.{/ts} {docURL page="user/pledges/what-is-civipledge"}</p>
<p>{ts}<strong>CiviMail</strong> - A robust mass-mailing component which allows you to engage your constituents with personalized email blasts and newsletters.{/ts} {docURL page="user/email/what-is-civimail"}</p>
<p>{ts}<strong>CiviMember</strong> - A flexible membership management component which includes convenient online signup and renewal.{/ts} {docURL page="user/membership/introduction-to-memberships/"}</p>
<p>{ts}<strong>CiviEvent</strong> - Provides integrated online event registration and management for paid and free events. It allows you to quickly and easily create customized web pages to for event registration, and then track participants.{/ts} {docURL page="user/events/what-is-civievent"}</p>
<p>{ts}<strong>CiviCampaign</strong> - Lets you link together events, mailings, activities, and contributions under one "umbrella" so that you can track the progress of all your efforts towards one programmatic goal or campaign.{/ts} {docURL page="user/campaign/what-is-civicampaign"}</p>
<p>{ts}<strong>CiviCase</strong> - Integrated case management component, including a dashboard with "my cases", automated case timelines and configurable audit reports.{/ts} {docURL page="user/case-management/what-is-civicase"}</p>
<p>{ts}<strong>CiviGrant</strong> - Designed to be used by organizations that distribute funds to others, for example foundations, grant givers, etc.{/ts} {docURL page="user/grants/what-is-civigrant"}</p>
{/htxt}

View file

@ -0,0 +1,37 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-component-form-block">
<div class="help">
{ts}CiviCRM includes several optional components which give you more tools to connect with and engage your constituents.{/ts}{help id="components"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{$form.enableComponents.html}
<p class="description">
{ts}Enabled components are listed in the right-hand box. Disabled components are listed in the left-hand box. Highlight a component and click the Enable or Disable button to move it from one box to the other. Then click <strong>Save</strong>.{/ts}
</p>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
<div class="spacer"></div>

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id='date-format-title'}
{ts}Date Display Formats{/ts}
{/htxt}
{htxt id='date-format'}
<p>{ts}Use this screen to configure formats for date display and date input fields. Defaults are provided for standard United States formats. Settings use standard POSIX specifiers. Available specifiers and the values produced will vary based on your operating system and locale.{/ts}</p>
<p><strong>{ts}Commonly Used Specifiers{/ts}</strong></p>
<ul>
<li>%b - {ts}abbreviated month name ('Jan'..'Dec'){/ts}</li>
<li>%B - {ts}full month name ('January'..'December'){/ts}</li>
<li>%d - {ts}day of the month as a decimal number, 0-padded ('01'..'31'){/ts}</li>
<li>%e - {ts}day of the month as a decimal number, blank-padded (' 1'..'31'){/ts}</li>
<li>%E - {ts}day of the month as a decimal number ('1'..'31'){/ts}</li>
<li>%f - {ts}English ordinal suffix for the day of the month ('st', 'nd', 'rd', 'th'){/ts}</li>
<li>%H - {ts}hour in 24-hour format, 0-padded ('00'..'23'){/ts}</li>
<li>%I - {ts}hour in 12-hour format, 0-padded ('01'..'12'){/ts}</li>
<li>%k - {ts}hour in 24-hour format, blank-padded (' 0'..'23'){/ts}</li>
<li>%l - {ts}hour in 12-hour format, blank-padded (' 1'..'12'){/ts}</li>
<li>%m - {ts}month as a decimal number, 0-padded ('01'..'12'){/ts}</li>
<li>%M - {ts}minute, 0-padded ('00'..'60'){/ts}</li>
<li>%p - {ts}lowercase ante/post meridiem ('am', 'pm'){/ts}</li>
<li>%P - {ts}uppercase ante/post meridiem ('AM', 'PM'){/ts}</li>
<li>%Y - {ts}year as a decimal number including the century ('2015'){/ts}</li>
</ul>
{/htxt}

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-date-form-block">
<div class="help">
{capture assign=crmURL}{crmURL p='civicrm/admin/setting/preferences/date' q='action=reset=1'}{/capture}
{ts 1=$crmURL}Use this screen to configure default formats for date display and date input fields throughout your site. Settings use standard POSIX specifiers. New installations are preconfigured with standard United States formats. You can override this default setting and define the range of allowed dates for specific field types at <a href="%1">Administer > Customize Data and Screens > Date Preferences</a>{/ts} {help id='date-format'}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<fieldset><legend>{ts}Date Display{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-date-form-block-dateformatDatetime">
<td class="label">{$form.dateformatDatetime.label}</td>
<td>{$form.dateformatDatetime.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatFull">
<td class="label">{$form.dateformatFull.label}</td>
<td>{$form.dateformatFull.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatPartial">
<td class="label">{$form.dateformatPartial.label}</td>
<td>{$form.dateformatPartial.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatYear">
<td class="label">{$form.dateformatYear.label}</td>
<td>{$form.dateformatYear.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatTime">
<td class="label">{$form.dateformatTime.label}</td>
<td>{$form.dateformatTime.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatTime">
<td class="label">{$form.dateformatFinancialBatch.label}</td>
<td>{$form.dateformatFinancialBatch.html}</td>
</tr>
<tr class="crm-date-form-block-dateformatTime">
<td class="label">{$form.dateformatshortdate.label}</td>
<td>{$form.dateformatshortdate.html}</td>
</tr>
</table>
</fieldset>
<fieldset><legend>{ts}Date Input Fields{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-date-form-block-dateInputFormat">
<td class="label">{$form.dateInputFormat.label}</td>
<td>{$form.dateInputFormat.html}</td>
</tr>
<tr class="crm-date-form-block-timeInputFormat">
<td class="label">{$form.timeInputFormat.label}</td>
<td>{$form.timeInputFormat.html}</td>
</tr>
</table>
</fieldset>
<fieldset><legend>{ts}Calendar{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-date-form-block-weekBegins">
<td class="label">{$form.weekBegins.label}</td>
<td>{$form.weekBegins.html}</td>
</tr>
<tr class="crm-date-form-block-fiscalYearStart">
<td class="label">{$form.fiscalYearStart.label}</td>
<td>{$form.fiscalYearStart.html}</td>
</tr>
</table>
</fieldset>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="debug-title"}
{ts}Debugging{/ts}
{/htxt}
{htxt id="debug"}
<p>{ts}Set this value to <strong>Yes</strong> if you want to use one of CiviCRM's debugging tools.{/ts} <strong>{ts}This feature should NOT be enabled for production sites.{/ts}</strong></p>
<p>{ts}Debug output is triggered by adding specific name-value pairs to the CiviCRM query string:{/ts}<br />
<ul>
<li><strong>{ts}Smarty Debug Window{/ts}</strong> - {ts}Loads all variables available to the current page template into a pop-up window. To trigger, add <em>&smartyDebug=1</em> to any CiviCRM URL query string. Make sure you have pop-up blocking disabled in your browser for the CiviCRM site URL.{/ts}</li>
<li><strong>{ts}Session Reset{/ts}</strong> - {ts 1='&sessionReset=2'}Resets all values in your client session. To trigger, add <em>%1</em>{/ts}</li>
<li><strong>{ts}Directory Cleanup{/ts}</strong> -{ts}Empties template cache and/or temporary upload file folders.{/ts}
<ul>
<li>{ts 1='&directoryCleanup=1'}To empty template cache (civicrm/templates_c folder), add <em>%1</em>{/ts}</li>
<li>{ts 1='&directoryCleanup=2'}To remove temporary upload files (civicrm/upload folder), add <em>%1</em>{/ts}</li>
<li>{ts 1='&directoryCleanup=3'}To cleanup both, add <em>%1</em>{/ts}</li>
</ul></li>
<li><strong>{ts}Stack Trace{/ts}</strong> - {ts 1='&backtrace=1'}To display a stack trace listing at the top of a page, add <em>%1</em>{/ts}</li>
</ul>
</p>
{/htxt}
{htxt id="userFrameworkLogging-title"}
{ts}Logging{/ts}
{/htxt}
{htxt id="userFrameworkLogging"}
<p>{ts}Set this value to <strong>Yes</strong> if you want CiviCRM error/debugging messages the appear in your CMS' error log.{/ts}</strong></p>
<p>{ts}In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled){/ts}</p>
{/htxt}

View file

@ -0,0 +1,67 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-debugging-form-block">
<div class="help">
{ts}In addition to the settings on this screen, there are a number of settings you can add to your sites's settings file (civicrm.settings.php) to provide additional debugging information.{/ts} {docURL page="Debugging for developers" resource="wiki"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
{if $form.userFrameworkLogging}
<tr class="crm-debugging-form-block-userFrameworkLogging">
<td class="label">{$form.userFrameworkLogging.label}</td>
<td>{$form.userFrameworkLogging.html}<br />
<span class="description">{ts}Set this value to <strong>Yes</strong> if you want CiviCRM error/debugging messages to appear in the Drupal error logs{/ts} {help id='userFrameworkLogging'}</span></td>
</tr>
{/if}
<tr class="crm-debugging-form-block-debug">
<td class="label">{$form.debug_enabled.label}</td>
<td>{$form.debug_enabled.html}<br />
<span class="description">{ts}<strong>This feature should NOT be enabled for production sites.</strong><br />Set this value to <strong>Yes</strong> if you want to use one of CiviCRM's debugging tools.{/ts} {help id='debug'}</span></td>
</tr>
<tr class="crm-debugging-form-block-backtrace">
<td class="label">{$form.backtrace.label}</td>
<td>{$form.backtrace.html}<br />
<span class="description">{ts}<strong>This feature should NOT be enabled for production sites.</strong><br />Set this value to <strong>Yes</strong> if you want to display a backtrace listing when a fatal error is encountered.{/ts}</span></td>
</tr>
<tr class="crm-debugging-form-block-environment">
<td class="label">{$form.environment.label}</td>
<td>{$form.environment.html}<br />
<span class="description">{ts}Set this value to <strong>Staging/Development</strong> to prevent cron jobs & mailings from being executed.{/ts}</span></td>
</tr>
<tr class="crm-debugging-form-block-fatalErrorHandler">
<td class="label">{$form.fatalErrorHandler.label}</td>
<td>{$form.fatalErrorHandler.html}<br />
<span class="description">{ts}Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.{/ts}</span></td>
</tr>
<tr class="crm-debugging-form-block-assetCache">
<td class="label">{$form.assetCache.label}</td>
<td>{$form.assetCache.html}<br />
<span class="description">{ts}Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.){/ts}</span></td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=docLink}{docURL page="CiviEvent Cart Checkout" text="CiviEvent Cart Checkout" resource="wiki"}{/capture}
<div class="crm-block crm-form-block">
<div class="help">
{ts 1=$docLink}These settings are used to configure properties for the CiviEvent component. Please read the %1 documentation, and make sure you understand it before modifying default values.{/ts}
</div>
<div class="crm-block crm-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-mail-form-block-enable_cart">
<td class="label">{$form.enable_cart.label}</td><td>{$form.enable_cart.html}<br />
<span class="description">{ts}Check to enable the Event Cart checkout workflow.{/ts}</span></td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,88 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign="money_format_help"}
{ts}Special symbols include:{/ts}
<ul>
<li><strong>%c</strong> {ts}currency symbol (e.g. '$'){/ts}</li>
<li><strong>%C</strong> {ts}currency ISO code (e.g. 'USD'){/ts}</li>
<li><strong>%a</strong> {ts}monetary amount, formatted according to selected Monetary Locale{/ts}</li>
</ul>
{ts 1='href="http://php.net/manual/en/function.money-format.php"'}For a full list of options see the php <a %1>money_format documentation</a>.{/ts}
{/capture}
{htxt id="inheritLocale"}
<p>
{ts}If checked, CiviCRM will follow CMS language changes.{/ts}
</p>
{/htxt}
{htxt id="defaultCurrency"}
<p>
{ts}Default currency assigned to contributions and other monetary transactions.{/ts}
</p>
{/htxt}
{htxt id="moneyformat"}
<p>
{ts}Format for displaying monetary amounts with currency symbol.{/ts}
</p><p>
{$money_format_help}
</p>
{/htxt}
{htxt id="moneyvalueformat"}
<p>
{ts}Format for displaying monetary values without the currency symbol.{/ts}
</p><p>
{$money_format_help}
</p>
{/htxt}
{htxt id="customTranslateFunction"}
<p>
{ts}You may override the ts() function in CiviCRM by defining your own translation function.{/ts}
</p>
{/htxt}
{htxt id="legacyEncoding"}
<p>
{ts}If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of <strong>Windows-1252</strong> will work for Excel-created .CSV files on many computers.{/ts}
</p>
{/htxt}
{htxt id="fieldSeparator"}
<p>
{ts}Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: ',' ';' ':' '|' ).{/ts}
</p>
{/htxt}
{htxt id="defaultContactCountry"}
<p>
{ts}This value is selected by default when adding a new contact address.{/ts}
</p>
{/htxt}
{htxt id="countryLimit"}
<p>
{ts}Which countries are available in the Country selection field when adding or editing contact addresses. Profile and Custom 'Country' fields also use this setting. To include ALL countries, leave the right-hand box empty.{/ts}
</p>
{/htxt}
{htxt id="provinceLimit"}
<p>
{ts}State/province listings are populated dynamically based on the selected Country for all standard contact address editing forms, as well as for <strong>Profile forms which include both a Country and a State/Province field</strong>. This setting controls which countries' states and/or provinces are available in the State/Province selection field <strong>for Custom Fields</strong> or for Profile forms which do NOT include a Country field.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,146 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-localization-form-block">
<div class="help">
{ts}Configure CiviCRM for your country and language.{/ts}
{docURL page="i18n Administrator's Guide: Using CiviCRM in your own language" resource="wiki"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"} </div>
<h3>{ts}Language and Currency{/ts}</h3>
<table class="form-layout-compressed">
<tr class="crm-localization-form-block-lcMessages">
<td class="label">{$form.lcMessages.label}</td>
<td>{$form.lcMessages.html}</td>
</tr>
{if $form.languageLimit}
<tr class="crm-localization-form-block-languageLimit">
<td class="label">{$form.languageLimit.label}</td>
<td>{$form.languageLimit.html}<br />
<span class="description">{ts}Languages available to users of this installation.{/ts}</span></td>
</tr>
<tr class="crm-localization-form-block-addLanguage">
<td class="label">{$form.addLanguage.label}</td>
<td>{$form.addLanguage.html}<br />
<span class="description">{ts}Add a new language to this installation.{/ts}</span></td>
</tr>
{/if}
<tr class="crm-localization-form-block-inheritLocale">
<td class="label">{$form.inheritLocale.label} {help id='inheritLocale' title=$form.inheritLocale.label}</td>
<td>{$form.inheritLocale.html}</td>
</tr>
<tr class="crm-localization-form-contact_default_language">
<td class="label">{$form.contact_default_language.label}</td>
<td>{$form.contact_default_language.html}<br />
<span class="description">{ts}Default language (if any) for contact records.{/ts}</span></td>
</tr>
<tr class="crm-localization-form-block-defaultCurrency">
<td class="label">{$form.defaultCurrency.label} {help id='defaultCurrency' title=$form.defaultCurrency.label}</td>
<td>{$form.defaultCurrency.html}</td>
</tr>
<tr class="crm-localization-form-block-monetaryThousandSeparator">
<td class="label">{$form.monetaryThousandSeparator.label}</td>
<td>{$form.monetaryThousandSeparator.html}</td>
</tr>
<tr class="crm-localization-form-block-monetaryDecimalPoint">
<td class="label">{$form.monetaryDecimalPoint.label}</td>
<td>{$form.monetaryDecimalPoint.html}</td>
</tr>
<tr class="crm-localization-form-block-currencyLimit">
<td class="label">{$form.currencyLimit.label}</td>
<td>{$form.currencyLimit.html}</td>
</tr>
<tr class="crm-localization-form-block-moneyformat">
<td class="label">{$form.moneyformat.label} {help id='moneyformat' title=$form.moneyformat.label}</td>
<td>{$form.moneyformat.html}</td>
</tr>
<tr class="crm-localization-form-block-moneyvalueformat">
<td class="label">{$form.moneyvalueformat.label} {help id='moneyvalueformat' title=$form.moneyvalueformat.label}</td>
<td>{$form.moneyvalueformat.html}</td>
</tr>
<tr class="crm-localization-form-block-customTranslateFunction">
<td class="label">{$form.customTranslateFunction.label} {help id='customTranslateFunction' title=$form.customTranslateFunction.label}</td>
<td>{$form.customTranslateFunction.html}</td>
</tr>
<tr class="crm-localization-form-block-legacyEncoding">
<td class="label">{$form.legacyEncoding.label} {help id='legacyEncoding' title=$form.legacyEncoding.label}</td>
<td>{$form.legacyEncoding.html}</td>
</tr>
<tr class="crm-localization-form-block-fieldSeparator">
<td class="label">{$form.fieldSeparator.label} {help id='fieldSeparator' title=$form.fieldSeparator.label}</td>
<td>{$form.fieldSeparator.html}</td>
</tr>
</table>
<h3>{ts}Contact Address Fields - Selection Values{/ts}</h3>
<table class="form-layout-compressed">
<tr class="crm-localization-form-block-defaultContactCountry">
<td class="label">{$form.defaultContactCountry.label} {help id='defaultContactCountry' title=$form.defaultContactCountry.label}</td>
<td>{$form.defaultContactCountry.html}</td>
</tr>
<tr class="crm-localization-form-block-defaultContactStateProvince">
<td class="label">{$form.defaultContactStateProvince.label} {help id='defaultContactCountry' title=$form.defaultContactStateProvince.label}</td>
<td>{$form.defaultContactStateProvince.html}</td>
</tr>
<tr class="crm-localization-form-block-countryLimit">
<td class="label">{$form.countryLimit.label} {help id='countryLimit' title=$form.countryLimit.label}</td>
<td>{$form.countryLimit.html}</td>
</tr>
<tr class="crm-localization-form-block-provinceLimit">
<td class="label">{$form.provinceLimit.label} {help id='provinceLimit' title=$form.provinceLimit.label}</td>
<td>{$form.provinceLimit.html}</td>
</tr>
</table>
<h3>{ts}Multiple Languages Support{/ts}</h3>
<table class="form-layout-compressed">
{if $form.languageLimit}
<tr class="crm-localization-form-block-makeSinglelingual_description">
<td></td>
<td><span class="description">{ts 1="http://documentation.civicrm.org"}This is a multilingual installation. It contains certain schema differences compared to regular installations of CiviCRM. Please <a href="%1">refer to the documentation</a> for details.{/ts}</span></td>
</tr>
<tr class="crm-localization-form-block-makeSinglelingual">
<td class="label">{$form.makeSinglelingual.label}</td>
<td>{$form.makeSinglelingual.html}<br />
<span class="description">{ts}Check this box and click 'Save' to switch this installation from multi- to single-language.{/ts}</span><br /><br />
<span class="description" style="color:red">{$warning}</span></td>
</tr>
{elseif $form.makeMultilingual}
<tr class="crm-localization-form-block-makeMultilingual">
<td class="label">{$form.makeMultilingual.label}</td>
<td>{$form.makeMultilingual.html}<br />
<span class="description">{ts}Check this box and click 'Save' to switch this installation from single- to multi-language, then add further languages.{/ts}</span><br /><br />
<span class="description" style="color:red">{$warning}</span></td>
{else}
<tr class="crm-localization-form-block-description">
<td>
<span class="description">{ts}In order to use this functionality, the installation's database user must have privileges to create triggers and views (in MySQL 5.0 and in MySQL 5.1 if binary logging is enabled this means the SUPER privilege). This install either does not seem to have the required privilege enabled.{/ts} {ts}(Multilingual support currently cannot be enabled on installations with enabled logging.){/ts}</span><br /><br />
<span class="description" style="color:red">{$warning}</span></td>
</tr>
{/if}
</table>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,32 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=docLink}{docURL page="CiviMail Mailer Settings" text="CiviMail Mailer Settings and Optimization" resource="wiki"}{/capture}
<div class="crm-block crm-form-block crm-mail-form-block">
<div class="help">
{ts 1=$docLink}These settings are used to configure mailer properties for the optional CiviMail component and may allow you to significantly optimize performance. Please read the %1 documentation, and make sure you understand it before modifying default values. (These settings are NOT used for the built-in 'Email - send now' feature).{/ts}
</div>
{include file='CRM/Admin/Form/Setting/SettingForm.tpl'}
</div>

View file

@ -0,0 +1,31 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="map-intro-id-title"}
{ts}Mapping Provider{/ts}
{/htxt}
{htxt id="map-intro-id"}
<p>{ts}Accuracy and coverage, as well as terms of service for both geocoding and mapping may vary by provider and location. Some providers may offer or require paid subscriptions depending on volume of requests and type of organization using the service. You should investigate each provider and select the best option for your requirements and usage patterns.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,70 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-map-form-block">
<div class="help">
{ts}CiviCRM includes plugins for several mapping and geocoding web services. When your users save a contact or event location address, a geocoding service will convert the address into geographical coordinates, which are required for mapping. Yahoo&rsquo;s geocoder will also automatically populate the postal code field. Mapping services allow your users to display addresses on a map.{/ts} {help id='map-intro-id'}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-map-form-block-mapProvider">
<td>{$form.mapProvider.label}</td>
<td>{$form.mapProvider.html}<br />
<span class="description">{ts}Choose the mapping provider that has the best coverage for the majority of your contact addresses.{/ts}</span></td>
</tr>
<tr class="crm-map-form-block-mapAPIKey">
<td>{$form.mapAPIKey.label}</td>
<td>{$form.mapAPIKey.html|crmAddClass:huge}<br />
<span class="description">{ts}Enter your API Key or Application ID. An API Key is currently optional for Google Maps API, but may be helpful diagnosing any problems and required for higher volumes of requests. Refer to developers.google.com for the latest information.{/ts}</span></td>
</tr>
<tr class="crm-map-form-block-geoProvider">
<td>{$form.geoProvider.label}</td>
<td>{$form.geoProvider.html}<br />
<span class="description">{ts}You may choose a different webservice for geocoding. This is required if there is no geo-coding plugin for your selected mapping provider. You can leave the Geocoding fields blank if you are using Google as your mapping provider.{/ts}</span></td>
</tr>
<tr class="crm-map-form-block-geoAPIKey">
<td>{$form.geoAPIKey.label}</td>
<td>{$form.geoAPIKey.html|crmAddClass:huge}<br />
<span class="description">{ts}Enter the API key or Application ID associated with your geocoding provider (not required for Yahoo).{/ts}</span></td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
function showHideMapAPIkey() {
var mapProvider = $(this).val();
if ( !mapProvider || ( mapProvider === 'OpenStreetMaps' ) ) {
$('tr.crm-map-form-block-mapAPIKey', $form).hide( );
} else {
$('tr.crm-map-form-block-mapAPIKey', $form).show( );
}
}
$('#mapProvider').each(showHideMapAPIkey).change(showHideMapAPIkey);
});
</script>
{/literal}

View file

@ -0,0 +1,116 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-miscellaneous-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-miscellaneous-form-block-checksum_timeout">
<td class="label">{$form.checksum_timeout.label}</td>
<td>{$form.checksum_timeout.html}<br />
<span class="description">{ts}The number of days before a personalized (hashed) link will expire.{/ts}</span></td>
</tr>
</table>
<table class="form-layout">
<tr class="crm-miscellaneous-form-block-contact_undelete">
<td class="label">{$form.contact_undelete.label}</td>
<td>
{$form.contact_undelete.html}<br />
<p class="description">{ts}{$contact_undelete_description}{/ts}</p>
</td>
</tr>
<tr class="crm-miscellaneous-form-block-logging">
<td class="label">{$form.logging.label}</td>
<td>
{$form.logging.html}<br />
{if $validTriggerPermission}
<p class="description">{ts}If enabled, all actions will be logged with a complete record of changes.{/ts}</p>
{else}
<p class="description">{ts}In order to use this functionality, the installation's database user must have privileges to create triggers (in MySQL 5.0 and in MySQL 5.1 if binary logging is enabled this means the SUPER privilege). This install either does not seem to have the required privilege enabled.{/ts}&nbsp;{ts}This functionality cannot be enabled on multilingual installations.{/ts}</p>
{/if}
</td>
</tr>
<tr class="crm-miscellaneous-form-block-doNotAttachPDFReceipt">
<td class="label">{$form.doNotAttachPDFReceipt.label}</td>
<td>{$form.doNotAttachPDFReceipt.html}<br />
<p class="description">{ts}If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution.{/ts}</p>
</td>
</tr>
<tr class="crm-miscellaneous-form-block-recordGeneratedLetters">
<td class="label">{$form.recordGeneratedLetters.label}</td>
<td>{$form.recordGeneratedLetters.html}<br />
<p class="description">{ts}When generating a letter (PDF/Word) via mail-merge, how should the letter be recorded?{/ts}</p>
</td>
</tr>
<tr class="crm-miscellaneous-form-block-wkhtmltopdfPath">
<td class="label">{$form.wkhtmltopdfPath.label}</td>
<td>{$form.wkhtmltopdfPath.html}<br />
<p class="description">{ts 1="http://wkhtmltopdf.org/"}<a href="%1">wkhtmltopdf is an alternative utility for generating PDF's</a> which may provide better performance especially if you are generating a large number of PDF letters or receipts. Your system administrator will need to download and install this utility, and enter the executable path here.{/ts}</p>
</td>
</tr>
{foreach from=$pure_config_settings item=setting_name}
<tr class="crm-miscellaneous-form-block-{$setting_name}">
<td class="label">{$form.$setting_name.label}</td>
<td>{$form.$setting_name.html}<br />
<span class="description">{$setting_descriptions.$setting_name}</span>
</td>
</tr>
{/foreach}
<tr class="crm-miscellaneous-form-block-remote_profile_submissions_allowed">
<td class="label">{$form.remote_profile_submissions.label}</td>
<td>{$form.remote_profile_submissions.html}<br />
<p class="description">{ts}If enabled, CiviCRM will allow users to submit profiles from external sites. This is disabled by default to limit abuse.{/ts}</p>
</td>
</tr>
</table>
<h3>{ts}reCAPTCHA Keys{/ts}</h3>
<div class="description">
{ts 1="https://www.google.com/recaptcha"}reCAPTCHA is a free service that helps prevent automated abuse of your site. To use reCAPTCHA on public-facing CiviCRM forms: sign up at <a href="%1" "target=_blank">Google's reCaptcha site</a>; enter the provided public and private reCAPTCHA keys here; then enable reCAPTCHA under Advanced Settings in any Profile.{/ts}
</div>
<table class="form-layout">
<tr class="crm-miscellaneous-form-block-recaptchaPublicKey">
<td class="label">{$form.recaptchaPublicKey.label}</td>
<td>{$form.recaptchaPublicKey.html}</td>
</tr>
<tr class="crm-miscellaneous-form-block-recaptchaPrivateKey">
<td class="label">{$form.recaptchaPrivateKey.label}</td>
<td>{$form.recaptchaPrivateKey.html}</td>
</tr>
<tr class="crm-miscellaneous-form-block-recaptchaOptions">
<td class="label">{$form.recaptchaOptions.label}</td>
<td>{$form.recaptchaOptions.html}<br />
<span class="description">
{ts}You can specify the reCAPTCHA theme options as comma separated data.(eg: theme:'blackglass', lang : 'fr' ).{/ts}
<br />
{ts 1='href="https://developers.google.com/recaptcha/docs/display#config" target="_blank"'}Check the available options at <a %1>Customizing the Look and Feel of reCAPTCHA</a>.{/ts}
</span>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,22 @@
{htxt id='id-path_vars'}
{ts}Path Variables{/ts}
<table>
<tbody>
<tr>
<td><tt>[cms.root]</tt></td>
<td><tt>{crmResPath ext='cms.root'}</tt></td>
</tr>
<tr>
<td><tt>[civicrm.root]</tt></td>
<td><tt>{crmResPath ext='civicrm.root'}</tt></td>
</tr>
<tr>
<td><tt>[civicrm.files]</tt></td>
<td><tt>{crmResPath ext='civicrm.files'}</tt></td>
</tr>
</tbody>
</table>
<p>
{ts}These variables are computed automatically using <tt>civicrm.settings.php</tt> and its options, such as <tt>CIVICRM_TEMPLATE_COMPILEDIR</tt>.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,78 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-path-form-block">
<div class="help">
<p>
{ts}You may configure these upload directories using absolute paths or path variables.{/ts}
{help id='id-path_vars'}
</p>
<p>
{ts}If you modify the defaults, make sure that your web server has write access to the directories.{/ts}
</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-path-form-block-uploadDir">
<td class="label">{$form.uploadDir.label}</td>
<td>{$form.uploadDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}File system path where temporary CiviCRM files - such as import data files - are uploaded.{/ts}</span>
</td>
</tr>
<tr class="crm-path-form-block-imageUploadDir">
<td class="label">{$form.imageUploadDir.label}</td>
<td>{$form.imageUploadDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}File system path where image files are uploaded. Currently, this path is used for images associated with premiums (CiviContribute thank-you gifts).{/ts}</span>
</td>
</tr>
<tr class="crm-path-form-block-customFileUploadDir">
<td class="label">{$form.customFileUploadDir.label}</td>
<td>{$form.customFileUploadDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}Path where documents and images which are attachments to contact records are stored (e.g. contact photos, resumes, contracts, etc.). These attachments are defined using 'file' type custom fields.{/ts}</span>
</td>
</tr>
<tr class="crm-path-form-block-customTemplateDir">
<td class="label">{$form.customTemplateDir.label}</td>
<td>{$form.customTemplateDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}Path where site specific templates are stored if any. This directory is searched first if set. Custom JavaScript code can be added to templates by creating files named <em>templateFile.extra.tpl</em>.{/ts} {docURL page="Customize Built-in Screens" resource="wiki"}</span><br />
<span class="description">{ts}CiviCase configuration files can also be stored in this custom path.{/ts} {docURL page="user/case-management/set-up"}</span>
</td>
</tr>
<tr class="crm-path-form-block-customPHPPathDir">
<td class="label">{$form.customPHPPathDir.label}</td>
<td>{$form.customPHPPathDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}Path where site specific PHP code files are stored if any. This directory is searched first if set.{/ts}</span>
</td>
</tr>
<tr class="crm-path-form-block-extensionsDir">
<td class="label">{$form.extensionsDir.label}</td>
<td>{$form.extensionsDir.html|crmAddClass:'huge40'}<br />
<span class="description">{ts}Path where CiviCRM extensions are stored.{/ts}</span>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,97 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-search-setting-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-search-setting-form-block-includeWildCardInName">
<td class="label">{$form.includeWildCardInName.label}</td>
<td>{$form.includeWildCardInName.html}<br />
<span class="description">{ts}If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'.{/ts}</span>
</td>
</tr>
<tr class="crm-search-setting-form-block-includeEmailInName">
<td class="label">{$form.includeEmailInName.label}</td>
<td>{$form.includeEmailInName.html}<br />
<span class="description">{ts}If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-searchPrimaryDetailsOnly">
<td class="label">{$form.searchPrimaryDetailsOnly.label}</td>
<td>{$form.searchPrimaryDetailsOnly.html}<br />
<span class="description">{ts}If enabled, only primary details (eg contact's primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.{/ts}</span>
</td>
</tr>
<tr class="crm-search-setting-form-block-includeNickNameInName">
<td class="label">{$form.includeNickNameInName.label}</td>
<td>{$form.includeNickNameInName.html}<br />
<span class="description">{ts}If enabled, nicknames are automatically included when users search by Name.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-includeAlphabeticalPager">
<td class="label">{$form.includeAlphabeticalPager.label}</td>
<td>{$form.includeAlphabeticalPager.html}<br />
<span class="description">{ts}If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-includeOrderByClause">
<td class="label">{$form.includeOrderByClause.label}</td>
<td>{$form.includeOrderByClause.html}<br />
<span class="description">{ts}If disabled, the search results will not be ordered. This will improve response time on search results on large datasets significantly.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-defaultSearchProfileID">
<td class="label">{$form.defaultSearchProfileID.label}</td>
<td>{$form.defaultSearchProfileID.html}<br />
<span class="description">{ts}If set, this will be the default profile used for contact search. This is experimental functionality.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-smartGroupCacheTimeout">
<td class="label">{$form.smartGroupCacheTimeout.label}</td>
<td>{$form.smartGroupCacheTimeout.html}<br />
<span class="description">{ts}The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-autocompleteContactSearch">
<td class="label">{$form.contact_autocomplete_options.label}</td>
<td>{$form.contact_autocomplete_options.html}<br/>
<span class="description">{ts}Selected fields will be displayed in back-office autocomplete dropdown search results (Quick Search, etc.). Contact Name is always included.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-autocompleteContactReference">
<td class="label">{$form.contact_reference_options.label}</td>
<td>{$form.contact_reference_options.html}<br/>
<span class="description">{ts}Selected fields will be displayed in autocomplete dropdown search results for 'Contact Reference' custom fields. Contact Name is always included. NOTE: You must assign 'access contact reference fields' permission to the anonymous role if you want to use custom contact reference fields in profiles on public pages. For most situations, you should use the 'Limit List to Group' setting when configuring a contact reference field which will be used in public forms to prevent exposing your entire contact list.{/ts}</span></td>
</tr>
<tr class="crm-search-setting-form-block-search_autocomplete_count">
<td class="label">{$form.search_autocomplete_count.label}</td>
<td>{$form.search_autocomplete_count.html}<br />
<span class="description">{ts}The maximum number of contacts to show at a time when typing in an autocomplete field.{/ts}</span></td>
</tr>
<tr class="crm-miscellaneous-form-block-enable_innodb_fts">
<td class="label">{$form.enable_innodb_fts.label}</td>
<td>{$form.enable_innodb_fts.html}<br />
<p class="description">{$enable_innodb_fts_description}</p>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,42 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
{foreach from=$settings_fields key="setting_name" item="setting_detail"}
<tr class="crm-mail-form-block-{$setting_name}">
<td class="label">{$form.$setting_name.label}</td><td>{$form.$setting_name.html}<br />
<span class="description">
{ts}{$setting_detail.description}{/ts}
</span>
{if $setting_detail.help_text}
{assign var='tplhelp_id' value = $setting_name|cat:'-id'|replace:'_':'-'}{help id="$tplhelp_id"}
{/if}
</td>
</tr>
{/foreach}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>

View file

@ -0,0 +1,144 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-smtp-form-block">
<div class="help">
<p>{ts}CiviCRM offers several options to send emails. The default option should work fine on linux systems. If you are using windows, you probably need to enter settings for your SMTP/Sendmail server. You can send a test email to check your settings by clicking "Save and Send Test Email". If you're unsure of the correct values, check with your system administrator, ISP or hosting provider.{/ts}</p>
<p>{ts}If you do not want users to send outbound mail from CiviCRM, select "Disable Outbound Email". NOTE: If you disable outbound email, and you are using Online Contribution pages or online Event Registration - you will need to disable automated receipts and registration confirmations.{/ts}</p>
<p>{ts}If you choose Redirect to Database, all emails will be recorded as archived mailings instead of being sent out. They can be found in the civicrm_mailing_spool table in the CiviCRM database.{/ts}</p>
</div>
<table class="form-layout-compressed">
<tr class="crm-smtp-form-block-outBound_option">
<td class="label">{$form.outBound_option.label}</td>
<td>{$form.outBound_option.html}</td>
</tr>
</table>
<div id="bySMTP" class="mailoption">
<fieldset>
<legend>{ts}SMTP Configuration{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-smtp-form-block-smtpServer">
<td class="label">{$form.smtpServer.label}</td>
<td>{$form.smtpServer.html}<br />
<span class="description">{ts}Enter the SMTP server (machine) name, such as "smtp.example.com". If the server uses SSL, add "ssl://" to the beginning of the server name, such as "ssl://smtp.example.com".{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-smtpPort">
<td class="label">{$form.smtpPort.label}</td>
<td>{$form.smtpPort.html}<br />
<span class="description">{ts}The most common SMTP port possibilities are 25, 465, and 587. Check with your mail provider for the appropriate one.{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-smtpAuth">
<td class="label">{$form.smtpAuth.label}</td>
<td>{$form.smtpAuth.html}<br />
<span class="description">{ts}Does your SMTP server require authentication (user name + password)?{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-smtpUsername">
<td class="label">{$form.smtpUsername.label}</td>
<td>{$form.smtpUsername.html}</td>
</tr>
<tr class="crm-smtp-form-block-smtpPassword">
<td class="label">{$form.smtpPassword.label}</td>
<td>{$form.smtpPassword.html}<br />
<span class="description">{ts}If your SMTP server requires authentication, enter your Username and Password here.{/ts}</span>
</td>
</tr>
</table>
</fieldset>
</div>
<div id="bySendmail" class="mailoption">
<fieldset>
<legend>{ts}Sendmail Configuration{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-smtp-form-block-sendmail_path">
<td class="label">{$form.sendmail_path.label}</td>
<td>{$form.sendmail_path.html}<br />
<span class="description">{ts}Enter the Sendmail Path. EXAMPLE: /usr/sbin/sendmail{/ts}</span>
</td>
</tr>
<tr class="crm-smtp-form-block-sendmail_args">
<td class="label">{$form.sendmail_args.label}</td>
<td>{$form.sendmail_args.html}</td>
</tr>
</table>
</fieldset>
</div>
<div class="spacer"></div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
</div>
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var mailSetting = $("input[name='outBound_option']:checked").val( );
var archiveWarning = "{/literal}{ts escape='js'}WARNING: You are switching from a testing mode (Redirect to Database) to a live mode. Check Mailings > Archived Mailings, and delete any test mailings that are not in Completed status prior to running the mailing cron job for the first time. This will ensure that test mailings are not actually sent out.{/ts}{literal}"
showHideMailOptions( $("input[name='outBound_option']:checked").val( ) ) ;
function showHideMailOptions( value ) {
switch( value ) {
case "0":
$("#bySMTP").show( );
$("#bySendmail").hide( );
$("#_qf_Smtp_refresh_test").prop('disabled', false);
if (mailSetting == '5') {
alert(archiveWarning);
}
break;
case "1":
$("#bySMTP").hide( );
$("#bySendmail").show( );
$("#_qf_Smtp_refresh_test").prop('disabled', false);
if (mailSetting == '5') {
alert(archiveWarning);
}
break;
case "3":
$('.mailoption').hide();
$("#_qf_Smtp_refresh_test").prop('disabled', false);
if (mailSetting == '5') {
alert(archiveWarning);
}
break;
default:
$("#bySMTP").hide( );
$("#bySendmail").hide( );
$("#_qf_Smtp_refresh_test").prop('disabled', true);
}
}
$("input[name='outBound_option']").click( function( ) {
showHideMailOptions( $(this).val( ) );
});
});
</script>
{/literal}

View file

@ -0,0 +1,60 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-uf-form-block">
<div class="help">
{ts}These settings define the CMS variables that are used with CiviCRM.{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-uf-form-block-userFrameworkUsersTableName">
<td class="label">{$form.userFrameworkUsersTableName.label}</td>
<td>{$form.userFrameworkUsersTableName.html}</td>
</tr>
{if $form.wpBasePage}
<tr class="crm-uf-form-block-wpBasePage">
<td class="label">{$form.wpBasePage.label}</td>
<td>{$config->userFrameworkBaseURL}{$form.wpBasePage.html}
<p class="description">{ts 1=$config->userFrameworkBaseURL}By default, CiviCRM will generate front-facing pages using the home page at %1 as its base. If you want to use a different template for CiviCRM pages, set the path here.{/ts}</p>
</td>
</tr>
{/if}
<tr class="crm-uf-form-block-syncCMSEmail">
<td class="label">{$form.syncCMSEmail.label}</td>
<td>{$form.syncCMSEmail.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
{if $tablePrefixes}
<div class="form-item">
<fieldset>
<legend>{ts}Views integration settings{/ts}</legend>
<div>{ts}To enable CiviCRM Views integration, add the following to the site <code>settings.php</code> file:{/ts}</div>
<pre>{$tablePrefixes}</pre>
</fieldset>
</div>
{/if}
</div>

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-config-backend-form-block">
<div class="help">
<p>
{ts}When migrating a site to a new server, the paths and URLs of your CiviCRM installation may change. {/ts}
</p>
<p>
{capture assign="pathsURL"}{crmURL p="civicrm/admin/setting/path" q="reset=1"}{/capture}
{capture assign="urlsURL"}{crmURL p="civicrm/admin/setting/url" q="reset=1"}{/capture}
{ts 1=$pathsURL 2=$urlsURL}The old paths and URLs may be retained in some database records. Use this form to clear caches or to reset paths to their defaults. If you need further customizations, then update the <a href="%1">Directories</a> and <a href="%2">Resource URLs</a>.{/ts}
</p>
</div>
<div>
<span class="crm-button crm-i-button">
<i class="crm-i fa-undo"></i>
{$form._qf_UpdateConfigBackend_next_cleanup.html}
</span>
<span class="crm-button crm-i-button">
<i class="crm-i fa-terminal"></i>
{$form._qf_UpdateConfigBackend_next_resetpaths.html}
</span>
</div>
<div>{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
</div>

View file

@ -0,0 +1,110 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id='id-enable_ssl-title'}
{ts}Force SSL{/ts}
{/htxt}
{htxt id='id-enable_ssl'}
<p>{ts}This setting forces a redirect of all online contribution / member / event and CiviCRM administrator page requests to SSL secured URLs (https).{/ts}</p>
<p>{ts}If you use a payment processor service where credit card and billing information is collected <strong>on your site</strong> it is strongly recommended that you create or obtain an <strong>SSL certificate</strong> and configure your webserver to support SSL connections. Consult your hosting provider or web-server documentation for more information on obtaining and installing SSL certificates.{/ts}</p>
<p>{ts}Once you have your certificate installed, test that is working by navigating to one of your online contribution pages and changing the URL prefix from 'http://' to 'https://'. If your browser loads the page and indicates a valid security certificate - then you can change this setting to <strong>Yes</strong> and CiviCRM will automatically redirect requests for all online contribution / member / event / admin pages to the corresponding SSL secured URLs.{/ts}</p>
{/htxt}
{htxt id='id-verify_ssl-title'}
{ts}Verify SSL Certificates{/ts}
{/htxt}
{htxt id='id-verify_ssl'}
<p>{ts}This setting will verify the SSL certificates received when making secure HTTPS connections to payment processors.{/ts}</p>
<p>{ts}For example, in order to process a payment through Authorize.net, CiviCRM must make a request to https://secure2.authorize.net/gateway/transact.dll. Using https to connect to secure2.authorize.net insures that the connection is encrypted, but it's possible that CiviCRM is actually connecting to an attacker and the attacker is connecting to secure2.authorize.net.{/ts}</p>
<p>{ts}Verifying the SSL certificate helps confirm that CiviCRM is securely communicating directly to payment processors.{/ts}</p>
{/htxt}
{htxt id='id-resource_url-title'}
{ts}Resource URL{/ts}
{/htxt}
{htxt id='id-resource_url'}
{ts}Absolute URL of the location where the civicrm module or component has been installed.{/ts}
<table class="form-layout-compressed">
<tr><td>
<strong>{ts}Example{/ts}</strong><br />
{ts 1=http://www.example.com/}If your site's home url is %1 ... then your CiviCRM Resource URL would be:{/ts}
<div class="font-italic description">
{if $config->userSystem->is_drupal EQ '1'}
&nbsp;&nbsp; http://www.example.com/sites/all/modules/civicrm/
{elseif $config->userFramework EQ 'Joomla'}
&nbsp;&nbsp; http://www.example.com/administrator/components/com_civicrm/civicrm/
{else}
&nbsp;&nbsp; http://www.example.com/
{/if}
</div>
</td></tr>
</table>
{/htxt}
{htxt id='id-image_url-title'}
{ts}Image URL{/ts}
{/htxt}
{htxt id='id-image_url'}
{ts}URL of the location for uploaded image files.{/ts}
{/htxt}
{htxt id='id-extensions_url-title'}
{ts}Extensions URL{/ts}
{/htxt}
{htxt id='id-extensions_url'}
{ts}Base URL for extension resources (images, stylesheets, etc).{/ts}<br/>
{capture assign=civicrmAdminSettingPath}{crmURL p="civicrm/admin/setting/path" q="reset=1"}{/capture}
{ts 1=$civicrmAdminSettingPath 2=`$config->extensionsDir`}This should match the <a href="%1">"CiviCRM Extensions Directory"</a> ("%2").{/ts}
{/htxt}
{htxt id='id-css_url-title'}
{ts}Customizing CSS{/ts}
{/htxt}
{htxt id='id-css_url'}
<p>{ts}You can modify the look and feel of CiviCRM by adding your own stylesheet. For small to medium sized modifications, use your css file to override some of the styles in civicrm.css. Or if you need to make drastic changes, you can choose to disable civicrm.css completely.{/ts}</p>
{/htxt}
{htxt id='id-url_vars'}
{ts}URL Variables{/ts}
<table>
<tbody>
<tr>
<td><tt>[cms.root]</tt></td>
<td><tt>{crmResURL ext='cms.root'}</tt></td>
</tr>
<tr>
<td><tt>[civicrm.root]</tt></td>
<td><tt>{crmResURL ext='civicrm.root'}</tt></td>
</tr>
<tr>
<td><tt>[civicrm.files]</tt></td>
<td><tt>{crmResURL ext='civicrm.files'}</tt></td>
</tr>
</tbody>
</table>
<p>
{ts}These variables are computed automatically using <tt>civicrm.settings.php</tt> and its options, such as <tt>CIVICRM_TEMPLATE_COMPILEDIR</tt>.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,99 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-url-form-block">
<div class="help">
<p>
{ts}These settings define the URLs used to access CiviCRM resources (CSS files, Javascript files, images, etc.).{/ts}
</p>
<p>
{ts}You may configure these settings using absolute URLs or URL variables.{/ts}
{help id='id-url_vars'}
</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-url-form-block-userFrameworkResourceURL">
<td class="label">
{$form.userFrameworkResourceURL.label} {help id='id-resource_url'}
</td>
<td>
{$form.userFrameworkResourceURL.html|crmAddClass:'huge40'}
</td>
</tr>
<tr class="crm-url-form-block-imageUploadURL">
<td class="label">
{$form.imageUploadURL.label} {help id='id-image_url'}
</td>
<td>
{$form.imageUploadURL.html|crmAddClass:'huge40'}
</td>
</tr>
<tr class="crm-url-form-block-customCSSURL">
<td class="label">
{$form.customCSSURL.label} {help id='id-css_url'}
</td>
<td>
{$form.customCSSURL.html|crmAddClass:'huge40'}
</td>
</tr>
<tr class="crm-url-form-block-disable_core_css">
<td class="label">
{$form.disable_core_css.label} {help id='id-css_url'}
</td>
<td>
{$form.disable_core_css.html}<br />
<p class="description">{ts}{$disable_core_css_description}{/ts}</p>
</td>
</tr>
<tr class="crm-url-form-block-extensionsURL">
<td class="label">
{$form.extensionsURL.label} {help id='id-extensions_url'}
</td>
<td>
{$form.extensionsURL.html|crmAddClass:'huge40'}
</td>
</tr>
<tr class="crm-url-form-block-enableSSL">
<td class="label">
{$form.enableSSL.label} {help id='id-enable_ssl'}
</td>
<td>
{$form.enableSSL.html}
</td>
</tr>
<tr class="crm-url-form-block-verifySSL">
<td class="label">
{$form.verifySSL.label} {help id='id-verify_ssl'}
</td>
<td>
{$form.verifySSL.html}<br/>
<p class="description font-red">{ts}{$verifySSL_description}{/ts}</p>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,34 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-word_replace-title"}
{ts}Word Replacements{/ts}
{/htxt}
{htxt id="id-word_replace"}
<p>{ts}Change all occurrences of a word or phrase in CiviCRM screens (e.g. replace all occurrences of 'Contribution' with 'Donation').{/ts}
{ts}Partial matches will be replaced unless you click "Exact Match". EXAMPLE: replacing 'Contribution' with 'Donation' will also replace 'Contributions' with 'Donations' unless 'Exact Match' is checked.{/ts}
<p>{ts}Use 'Exact Match' if you don't want partial matches to be replaced OR you are replacing a complete phrase (e.g. replace 'Create Printable Letters (PDF)' with 'Write Letters').{/ts}</p>
<p>{ts}IMPORTANT: Replacements are case-sensitive whether 'Exact Match' is checked or not.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,129 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* template for a single row *}
{if $soInstance}
<tr class="string-override-row {if $soInstance % 2}odd{else}even{/if}-row" data-row="{$soInstance}"
xmlns="http://www.w3.org/1999/html">
<td>{$form.enabled.$soInstance.html}</td>
<td>{$form.old.$soInstance.html}</td>
<td>{$form.new.$soInstance.html}</td>
<td>{$form.cb.$soInstance.html}</td>
</tr>
{else}
{* this template is used for adding/editing string overrides *}
<div class="crm-form crm-form-block crm-string_override-form-block">
<div class="help">
{ts}Use <strong>Word Replacements</strong> to change all occurrences of a word or phrase in CiviCRM screens (e.g. replace all occurrences of 'Contribution' with 'Donation').{/ts} {help id="id-word_replace"}
</div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location='top'}
</div>
<table class="form-layout-compressed">
<tr>
<td>
<table class="string-override-table row-highlight">
<thead>
<tr class="columnheader">
<th>{ts}Enabled{/ts}</th>
<th>{ts}Original{/ts}</th>
<th>{ts}Replacement{/ts}</th>
<th>{ts}Exact Match{/ts}</th>
</tr>
</thead>
<tbody>
{section name="numStrings" start=1 step=1 loop=$numStrings+1}
{include file="CRM/Admin/Form/WordReplacements.tpl" soInstance=$smarty.section.numStrings.index}
{/section}
</tbody>
</table>
&nbsp;&nbsp;&nbsp;<a class="action-item crm-hover-button buildStringOverrideRow" href="#"><i class="crm-i fa-plus-circle"></i> {ts}Add row{/ts}</a>
</td>
</tr>
</table>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location='bottom'}
</div>
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
{/literal}
{if $stringOverrideInstances}
{* Rebuild necessary rows in case of form error *}
{foreach from=$stringOverrideInstances key="index" item="instance"}
buildStringOverrideRow( {$instance} );
{/foreach}
{/if}
{literal}
function buildStringOverrideRow( curInstance ) {
var newRowNum;
if (curInstance) {
// Don't fetch if already present
if ($('tr.string-override-row[data-row=' + curInstance + ']').length) {
return;
}
newRowNum = curInstance;
} else {
newRowNum = 1 + $('tr.string-override-row:last').data('row');
}
var dataUrl = {/literal}"{crmURL q='snippet=4' h=0}"{literal};
dataUrl += "&instance="+newRowNum;
$.ajax({
url: dataUrl,
async: false,
success: function(html) {
$('.string-override-table tbody').append(html);
$('tr.string-override-row:last').trigger('crmLoad');
}
});
}
$('.buildStringOverrideRow').click(function(e) {
buildStringOverrideRow(false);
e.preventDefault();
});
// Auto-check new items
$('.string-override-table').on('keyup', 'textarea', function() {
if (!$(this).data('crm-initial-value')) {
var otherValue = $(this).closest('tr').find('textarea').not(this).val();
if ($(this).val() && otherValue) {
$(this).closest('tr').find('input[type=checkbox]').first().prop('checked', true);
}
}
});
});
</script>
{/literal}
{/if}

View file

@ -0,0 +1,80 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="param-name-title"}
{ts}Parameter Name{/ts}
{/htxt}
{htxt id="param-name"}
<p>
{ts}Choose a parameter from the list, or select "other" for manual entry.{/ts}
</p>
{/htxt}
{htxt id="param-op-title"}
{ts}Operator{/ts}
{/htxt}
{htxt id="param-op"}
<p>
{ts}The default operator is equals (=), and is the only operator supported for "create" or "delete" actions.{/ts}
</p>
<p>
{ts}Some apis support a special syntax to allow other operators for "get" type actions. Choosing a different operator will automatically use this syntax, although it may not work with every api.{/ts}
</p>
{/htxt}
{htxt id="param-value-title"}
{ts}Parameter Value{/ts}
{/htxt}
{htxt id="param-value"}
<p>
{ts}The following formats are accepted:{/ts}
<ul>
<li>{ts}Simple values such as numbers, true, false and null.{/ts}</li>
<li>{ts}Strings. You may include quotes around the string to ensure it's not interpreted otherwise, e.g. "false".{/ts}</li>
<li>{ts}Arrays in js format, e.g. [1, 2, 3, 'foo', 'bar', 'baz'].{/ts}</li>
<li>{ts}Associative arrays in js object format, e.g. {ldelim}first: "one", second: "two", third: 3{rdelim}.{/ts}</li>
<li>{ts}A comma-separated list will automatically be turned into an array for multivalue operations, or you can explicitly use the js array format above.{/ts}</li>
</ul>
</p>
{/htxt}
{htxt id="api-chain-title"}
{ts}Api Chaining{/ts}
{/htxt}
{htxt id="api-chain"}
<p>{ts}Chains allow you to execute api calls on the results of this one.{/ts}</p>
<p>{ts}Example: When creating a contact, you can chain the Email.create api to add email addresses for them.{/ts}</p>
<p>{ts}Disambiguation: api chains are different from joins in that chaining executes a separate api call for every result returned from the main call.{/ts}</p>
{/htxt}
{htxt id="api-join-title"}
{ts}Api Joins{/ts}
{/htxt}
{htxt id="api-join"}
<p>{ts}Join this api call to return values from or filter on a related entity.{/ts}</p>
<p>{ts}The new fields will be selectable from the "Params" and "Fields to return" lists.{/ts}</p>
<p>{ts}Example: If the api entity is Email, you can also fetch the display name of the contact this email belongs to.{/ts}</p>
<p>{ts}Disambiguation: Joins are different from api chaining in that joins execute as a single SELECT query, and only work for api "get" operations.{/ts}</p>
{/htxt}

File diff suppressed because it is too large Load diff

Some files were not shown because too many files have changed in this diff Show more