First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
151
sites/all/modules/civicrm/templates/CRM/Form/attachment.tpl
Normal file
151
sites/all/modules/civicrm/templates/CRM/Form/attachment.tpl
Normal file
|
@ -0,0 +1,151 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $form.attachFile_1 OR $currentAttachmentInfo}
|
||||
{if $action EQ 4 AND $currentAttachmentInfo} {* For View action we exclude the form fields and just show any current attachments. *}
|
||||
<tr>
|
||||
<td class="label"><label>{ts}Current Attachment(s){/ts}</label></td>
|
||||
<td class="view-value">
|
||||
{foreach from=$currentAttachmentInfo key=attKey item=attVal}
|
||||
<div id="attachStatusMesg" class="status hiddenElement"></div>
|
||||
<div id="attachFileRecord_{$attVal.fileID}">
|
||||
<strong><a href="{$attVal.url}"><i class="crm-i {$attVal.icon}"></i> {$attVal.cleanName}</a></strong>
|
||||
{if $attVal.description} - {$attVal.description}{/if}
|
||||
{if !empty($attVal.tag)}
|
||||
<br />
|
||||
{ts}Tags{/ts}: {$attVal.tag}
|
||||
<br />
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{elseif $action NEQ 4}
|
||||
{if $context EQ 'pcpCampaign'}
|
||||
{capture assign=attachTitle}{ts}Include a Picture or an Image{/ts}{/capture}
|
||||
{else}
|
||||
{capture assign=attachTitle}{ts}Attachment(s){/ts}{/capture}
|
||||
{/if}
|
||||
{if !$noexpand}
|
||||
<div class="crm-accordion-wrapper {if $context NEQ 'pcpCampaign' AND !$currentAttachmentInfo}collapsed{/if}">
|
||||
<div class="crm-accordion-header">
|
||||
{$attachTitle}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
{/if}
|
||||
<div id="attachments">
|
||||
<table class="form-layout-compressed">
|
||||
{if $form.attachFile_1}
|
||||
{if $context EQ 'pcpCampaign'}
|
||||
<div class="description">{ts}You can upload a picture or image to include on your page. Your file should be in .jpg, .gif, or .png format. Recommended image size is 250 x 250 pixels. Images over 360 pixels wide will be automatically resized to fit.{/ts}</div>
|
||||
{/if}
|
||||
<tr>
|
||||
<td class="label">{$form.attachFile_1.label}</td>
|
||||
<td>{$form.attachFile_1.html} {$form.attachDesc_1.html}<a href="#" class="crm-hover-button crm-clear-attachment" style="visibility: hidden;" title="{ts}Clear{/ts}"><i class="crm-i fa-times"></i></a>
|
||||
<div class="description">{ts}Browse to the <strong>file</strong> you want to upload.{/ts}{if $maxAttachments GT 1} {ts 1=$maxAttachments}You can have a maximum of %1 attachment(s).{/ts}{/if} {ts 1=$config->maxFileSize}Each file must be less than %1M in size. You can also add a short description.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
{if $form.tag_1.html}
|
||||
<tr>
|
||||
<td class="label">{$form.tag_1.label}</td>
|
||||
<td><div class="crm-select-container crm-attachment-tags">{$form.tag_1.html}</div></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $tagsetInfo.file}
|
||||
<tr>{include file="CRM/common/Tagset.tpl" tagsetType='file' tableLayout=true tagsetElementName="file_taglist_1"}</tr>
|
||||
{/if}
|
||||
{section name=attachLoop start=2 loop=$numAttachments+1}
|
||||
{assign var=index value=$smarty.section.attachLoop.index}
|
||||
{assign var=attachName value="attachFile_"|cat:$index}
|
||||
{assign var=attachDesc value="attachDesc_"|cat:$index}
|
||||
{assign var=tagElement value="tag_"|cat:$index}
|
||||
<tr class="attachment-fieldset solid-border-top"><td colspan="2"></td></tr>
|
||||
<tr>
|
||||
<td class="label">{$form.attachFile_1.label}</td>
|
||||
<td>{$form.$attachName.html} {$form.$attachDesc.html}<a href="#" class="crm-hover-button crm-clear-attachment" style="visibility: hidden;" title="{ts}Clear{/ts}"><i class="crm-i fa-times"></i></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">{$form.$tagElement.label}</td>
|
||||
<td><div class="crm-select-container crm-attachment-tags">{$form.$tagElement.html}</div></td>
|
||||
</tr>
|
||||
{if $tagsetInfo.file}
|
||||
<tr>{include file="CRM/common/Tagset.tpl" tagsetType='file' tableLayout=true tagsetElementName="file_taglist_$index"}</tr>
|
||||
{/if}
|
||||
{/section}
|
||||
|
||||
{/if}
|
||||
{if $currentAttachmentInfo}
|
||||
<tr class="attachment-fieldset solid-border-top"><td colspan="2"></td></tr>
|
||||
<tr>
|
||||
<td class="label">{ts}Current Attachment(s){/ts}</td>
|
||||
<td class="view-value">
|
||||
{foreach from=$currentAttachmentInfo 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} - {$attVal.description}{/if}
|
||||
{if $attVal.deleteURLArgs}
|
||||
<a href="#" class="crm-hover-button delete-attachment" data-filename="{$attVal.cleanName}" data-args="{$attVal.deleteURLArgs}" title="{ts}Delete File{/ts}"><span class="icon delete-icon"></span></a>
|
||||
{/if}
|
||||
{if !empty($attVal.tag)}
|
||||
<br/>
|
||||
{ts}Tags{/ts}: {$attVal.tag}
|
||||
<br/>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> </td>
|
||||
<td>{$form.is_delete_attachment.html} {$form.is_delete_attachment.label}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var $form = $("form.{/literal}{$form.formClass}{literal}");
|
||||
$form
|
||||
.on('click', '.crm-clear-attachment', function(e) {
|
||||
e.preventDefault();
|
||||
$(this).css('visibility', 'hidden').closest('td').find(':input').val('');
|
||||
})
|
||||
.on('change', '#attachments :input', function() {
|
||||
$(this).closest('td').find('.crm-clear-attachment').css('visibility', 'visible');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if} {* edit/add if*}
|
||||
|
||||
{if $currentAttachmentInfo}
|
||||
{include file="CRM/Form/attachmentjs.tpl"}
|
||||
{/if}
|
||||
|
||||
{/if} {* top level if *}
|
|
@ -0,0 +1,27 @@
|
|||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
$('a.delete-attachment').off('.crmAttachments').on('click.crmAttachments', function(e) {
|
||||
var $el = $(this),
|
||||
$row = $el.closest('.crm-attachment-wrapper'),
|
||||
msg = '{/literal}{ts escape="js" 1="%1"}This will immediately delete the file %1. This action cannot be undone.{/ts}{literal}';
|
||||
CRM.confirm({
|
||||
title: $el.attr('title'),
|
||||
message: ts(msg, {1: '<em>' + $el.data('filename') + '</em>'})
|
||||
}).on('crmConfirm:yes', function() {
|
||||
var postUrl = {/literal}"{crmURL p='civicrm/file/delete' h=0 }"{literal};
|
||||
var request = $.post(postUrl, $el.data('args'));
|
||||
CRM.status({success: '{/literal}{ts escape="js"}Removed{/ts}{literal}'}, request);
|
||||
request.done(function() {
|
||||
$el.trigger('crmPopupFormSuccess');
|
||||
$row.remove();
|
||||
{/literal}{if $context EQ 'MessageTemplate'}{literal}
|
||||
$('#file_id').show();
|
||||
{/literal}{/if}{literal}
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
108
sites/all/modules/civicrm/templates/CRM/Form/basicForm.tpl
Normal file
108
sites/all/modules/civicrm/templates/CRM/Form/basicForm.tpl
Normal file
|
@ -0,0 +1,108 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-{$formName}-block">
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
{if $formName == "Contribute_Preferences"}
|
||||
<table class = "form-layout">
|
||||
{foreach from=$htmlFields item=desc key=htmlField}
|
||||
{if $form.$htmlField}
|
||||
{assign var=n value=$htmlField|cat:'_description'}
|
||||
<tr class="crm-preferences-form-block-{$htmlField}">
|
||||
{if $form.$htmlField.html_type EQ 'checkbox'|| $form.$htmlField.html_type EQ 'checkboxes'}
|
||||
<td class="label"></td>
|
||||
<td>
|
||||
{$form.$htmlField.html} {$form.$htmlField.label}
|
||||
{if $desc}
|
||||
<br /><span class="description">{$desc}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
<td class="label">{$form.$htmlField.label} {if $htmlField eq 'acl_financial_type'}{help id="$htmlField"}{/if}</td>
|
||||
<td>
|
||||
{$form.$htmlField.html}
|
||||
{if $desc}
|
||||
<br /><span class="description">{$desc}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<table class="form-layout" id="invoicing_blocks">
|
||||
{foreach from=$fields item=field key=fieldName}
|
||||
{assign var=n value=$fieldName}
|
||||
{if $form.$n}
|
||||
<tr class="crm-preferences-form-block-{$fieldName}">
|
||||
{if $field.html_type EQ 'checkbox'|| $field.html_type EQ 'checkboxes'}
|
||||
<td class="label"></td>
|
||||
<td>
|
||||
{$form.$n.html} {$form.$n.label}
|
||||
{if $field.description}
|
||||
<br /><span class="description">{$field.description}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
<td class="label">{$form.$n.label}</td>
|
||||
<td>
|
||||
{$form.$n.html}
|
||||
{if $field.description}
|
||||
<br /><span class="description">{$field.description}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
{if $formName == "Contribute_Preferences"}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
cj(document).ready(function() {
|
||||
if (document.getElementById("invoicing").checked) {
|
||||
cj("#invoicing_blocks").show();
|
||||
}
|
||||
else {
|
||||
cj("#invoicing_blocks").hide();
|
||||
}
|
||||
});
|
||||
cj(function () {
|
||||
cj("input[type=checkbox]").click(function() {
|
||||
if (cj("#invoicing").is(":checked")) {
|
||||
cj("#invoicing_blocks").show();
|
||||
}
|
||||
else {
|
||||
cj("#invoicing_blocks").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
57
sites/all/modules/civicrm/templates/CRM/Form/body.tpl
Normal file
57
sites/all/modules/civicrm/templates/CRM/Form/body.tpl
Normal file
|
@ -0,0 +1,57 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $form.javascript}
|
||||
{$form.javascript}
|
||||
{/if}
|
||||
|
||||
{if $form.hidden}
|
||||
<div>{$form.hidden}</div>
|
||||
{/if}
|
||||
|
||||
{if ($snippet !== 'json') and !$suppressForm and count($form.errors) gt 0}
|
||||
<div class="messages crm-error">
|
||||
<i class="crm-i fa-exclamation-triangle crm-i-red"></i>
|
||||
{ts}Please correct the following errors in the form fields below:{/ts}
|
||||
<ul id="errorList">
|
||||
{foreach from=$form.errors key=errorName item=error}
|
||||
{if is_array($error)}
|
||||
<li>{$error.label} {$error.message}</li>
|
||||
{else}
|
||||
<li>{$error}</li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Add all the form elements sent in by the hook *}
|
||||
{if $beginHookFormElements}
|
||||
<table class="form-layout-compressed">
|
||||
{foreach from=$beginHookFormElements key=dontCare item=hookFormElement}
|
||||
<tr><td class="label nowrap">{$form.$hookFormElement.label}</td><td>{$form.$hookFormElement.html}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
40
sites/all/modules/civicrm/templates/CRM/Form/default.tpl
Normal file
40
sites/all/modules/civicrm/templates/CRM/Form/default.tpl
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if ! $suppressForm}
|
||||
<form {$form.attributes} >
|
||||
{crmRegion name='form-top'}{/crmRegion}
|
||||
{/if}
|
||||
|
||||
{crmRegion name='form-body'}
|
||||
{include file="CRM/Form/body.tpl"}
|
||||
|
||||
{include file=$tplFile}
|
||||
{/crmRegion}
|
||||
|
||||
{if ! $suppressForm}
|
||||
{crmRegion name='form-bottom'}{/crmRegion}
|
||||
</form>
|
||||
{/if}
|
31
sites/all/modules/civicrm/templates/CRM/Form/element.tpl
Normal file
31
sites/all/modules/civicrm/templates/CRM/Form/element.tpl
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="form-item">
|
||||
{$element.label}{$element.required}{$element.html}
|
||||
{if $element.description}
|
||||
<div class="description">{$element.description}</div>
|
||||
{/if}
|
||||
</div>
|
30
sites/all/modules/civicrm/templates/CRM/Form/error.tpl
Normal file
30
sites/all/modules/civicrm/templates/CRM/Form/error.tpl
Normal file
|
@ -0,0 +1,30 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{$html}
|
||||
{if $error}
|
||||
<span class="crm-error">{$error}</span>
|
||||
{/if}
|
||||
|
39
sites/all/modules/civicrm/templates/CRM/Form/label.tpl
Normal file
39
sites/all/modules/civicrm/templates/CRM/Form/label.tpl
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $error}
|
||||
<span class="crm-error crm-error-label">
|
||||
{$label}
|
||||
{if $required}
|
||||
<span class="crm-marker" title="{ts}This field is required.{/ts}">*</span>
|
||||
{/if}
|
||||
</span>
|
||||
{else}
|
||||
{$label}
|
||||
{if $required}
|
||||
<span class="crm-marker" title="{ts}This field is required.{/ts}">*</span>
|
||||
{/if}
|
||||
{/if}
|
||||
|
37
sites/all/modules/civicrm/templates/CRM/Form/validate.tpl
Normal file
37
sites/all/modules/civicrm/templates/CRM/Form/validate.tpl
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Initialize jQuery validate on a form *}
|
||||
{* Extra params and functions may be added to the CRM.validate object before this template is loaded *}
|
||||
{if !$crm_form_validate_included and $smarty.get.snippet neq 'json' and $form and $form.formClass}
|
||||
{assign var=crm_form_validate_included value=1}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$("form.{/literal}{$form.formClass}{literal}").crmValidate();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue