First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
98
sites/all/modules/civicrm/templates/CRM/UF/Page/Field.tpl
Normal file
98
sites/all/modules/civicrm/templates/CRM/UF/Page/Field.tpl
Normal file
|
@ -0,0 +1,98 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 4 or $action eq 8 }
|
||||
{include file="CRM/UF/Form/Field.tpl"}
|
||||
{elseif $action eq 1024 }
|
||||
{include file="CRM/UF/Form/Preview.tpl"}
|
||||
{else}
|
||||
<div class="crm-content-block">
|
||||
{if $ufField}
|
||||
<div id="field_page">
|
||||
{if not ($action eq 2 or $action eq 1)}
|
||||
<div class="action-link">
|
||||
{crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group/update" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
{strip}
|
||||
{* handle enable/disable actions*}
|
||||
{include file="CRM/common/enableDisableApi.tpl"}
|
||||
<table id="options" class="row-highlight">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{ts}Field Name{/ts}</th>
|
||||
{if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) }
|
||||
<th>{ts}Visibility{/ts}</th>
|
||||
<th>{ts}Searchable?{/ts}</th>
|
||||
<th>{ts}Results Column?{/ts}</th>
|
||||
{/if}
|
||||
<th>{ts}Order{/ts}</th>
|
||||
<th>{ts}Required{/ts}</th>
|
||||
<th>{ts}View Only{/ts}</th>
|
||||
<th>{ts}Reserved{/ts}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$ufField item=row}
|
||||
<tr id="UFField-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
|
||||
<td><span class="crmf-label crm-editable">{$row.label}</span>({$row.field_type})</td>
|
||||
{if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) }
|
||||
<td class="crm-editable crmf-visibility" data-type="select">{$row.visibility_display}</td>
|
||||
<td class="crm-editable crmf-is_searchable" data-type="boolean">{if $row.is_searchable eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td class="crm-editable crmf-in_selector" data-type="boolean">{if $row.in_selector eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
{/if}
|
||||
<td class="nowrap">{$row.weight}</td>
|
||||
<td class="crm-editable crmf-is_required" data-type="boolean">{if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td class="crm-editable crmf-is_view" data-type="boolean">{if $row.is_view eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td>{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td>{$row.action|replace:'xx':$row.id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{if not ($action eq 2 or $action eq 1)}
|
||||
<div class="action-link">
|
||||
{crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{else}
|
||||
{if $action eq 16}
|
||||
{capture assign=crmURL}{crmURL p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid"}{/capture}
|
||||
<div class="messages status no-popup crm-empty-table">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}None found.{/ts}
|
||||
</div>
|
||||
<div class="action-link">
|
||||
{crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
59
sites/all/modules/civicrm/templates/CRM/UF/Page/Group.hlp
Normal file
59
sites/all/modules/civicrm/templates/CRM/UF/Page/Group.hlp
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id='profile_overview-title'}
|
||||
{ts}About Profiles{/ts}
|
||||
{/htxt}
|
||||
{htxt id='profile_overview'}
|
||||
<p>{ts}Profiles may be linked to specific modules, accessed via built-in CiviCRM URLs, or embedded into any web page using the HTML Form Snippet feature. Examples include:{/ts}</p>
|
||||
<ul class="indented">
|
||||
{if $config->userSystem->supports_form_extensions EQ '1'}
|
||||
<li>{ts}<strong>User Screens</strong> - One or several profiles can be linked to either the <strong>new user registration</strong> and/or view and edit screens for <strong>existing user accounts</strong>.{/ts}</li>
|
||||
{/if}
|
||||
{capture assign=configContribURL}{crmURL p='civicrm/admin/contribute' q='reset=1'}{/capture}
|
||||
<li>{ts 1=$configContribURL}<strong>CiviContribute</strong> - When you want to collect information from Contributors via online contribution pages, you can create a profile and link it to to your contribution page as a 'custom page element' (<a href='%1'>Configure Online Contribution Pages</a>).{/ts}</li>
|
||||
{capture assign=siteRoot}<{ts}site root{/ts}>{/capture}
|
||||
<li>{ts 1=$siteRoot 2='civicrm/profile?reset=1'}<strong>Contact Search and Listings</strong> - When you want to provide a search form and search result listings for some or all of your contacts you can create a profile with the desired search fields and link users to the path for that search form. When creating a link to search and listings profiles, add the corresponding profile ID to the end of your query string using the 'gid' parameter. For example, the link to display a search and listings page for a Profile with ID = 3 would be:{/ts} <em>{$siteRoot}/civicrm/profile?reset=1&gid=3</em>
|
||||
You can limit the search results to a specific group of contacts. EXAMPLE: You only want your organization's staff members to be searchable. You would do this by limiting your profile to only contacts in your 'Staff' group under the profile's Advanced Settings.
|
||||
</li>
|
||||
<li>{ts 1=$siteRoot 2='civicrm/profile/create?reset=1&gid=3'}<strong>Contact Signup Forms</strong> - Create link(s) to 'new contact' input form(s) for your Profiles using the following path: <em>%1/%2</em>. (This example links to an input form for Profile ID 3.){/ts}</li>
|
||||
<li>{ts 1=$siteRoot 2='civicrm/profile/edit?reset=1&gid=3'}<strong>Contact Edit Forms</strong> - Allow <strong>authenticated users</strong> to edit their own contact info with a Profile using the following path: <em>%1/%2</em>. (This example links to an edit form for Profile ID 3.){/ts}</li>
|
||||
<li>{ts}<strong>HTML Form Snippet</strong> - If you want more control over form layout, or want to add Profile input forms to non-CiviCRM blocks, pages and/or sites...click the HTML Form Snippet action link for a Profile below - and copy and paste the HTML form code into any web page.{/ts}</li>
|
||||
</ul>
|
||||
<p>{docURL page="user/the-user-interface/profiles"}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id='standalone-title'}
|
||||
{ts}Form Snippet{/ts}
|
||||
{/htxt}
|
||||
{htxt id='standalone'}
|
||||
<p>{ts}The HTML Form Snippet code will display a form consisting of the active fields in this Profile. You can copy this HTML code and paste it into any block or page on your website where you want to collect contact information.{/ts}</p>
|
||||
<p>{ts}By changing the relative URLs included in the snippet to absolute URLs (e.g. change "/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=dXCgD" to "https://yourdomain.com/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=dXCgD") you will be able to use the snippet on any website.{/ts}</p>
|
||||
<p><strong>{ts}If the web page you are pasting the snippet code to is hosted in a different domain from your CiviCRM site, you may NOT be able to include Country and State fields in the form (the script which dynamically loads the states based on selected country may not be able to execute across domains).{/ts}</strong></p>
|
||||
<p>{ts}You can control the web page that someone is directed to AFTER completing the form by modifying the contents of the hidden <strong>postURL</strong> input field. Replace the default value with any valid complete URL prior to saving the form code to the desired page(s).{/ts}</p>
|
||||
<p>{ts}EXAMPLE:{/ts} <strong><input type="hidden" name="postURL" value="{ts}http://www.example.com/thank_you.html{/ts}"></strong></p>
|
||||
<p>{ts}If the form is submitted with errors (i.e. required field not completed...) - the default behavior is to display the errors within the 'built-in' profile form. You can override this behavior - specifying your own error page - by adding a hidden <strong>errorURL</strong> input field.{/ts}</p> {docURL page="user/organising-your-data/profiles/"}
|
||||
<p><strong>{ts}Make sure the CAPTCHA feature is NOT enabled for this profile when you are grabbing the HTML code. CAPTCHA requires dynamic page generation. Submitting an HTML Snippet profile form with CAPTCHA included will ALWAYS result in a CAPTCHA validation error - which means that the information entered by the user can not be saved.{/ts}</strong></p>
|
||||
{/htxt}
|
175
sites/all/modules/civicrm/templates/CRM/UF/Page/Group.tpl
Normal file
175
sites/all/modules/civicrm/templates/CRM/UF/Page/Group.tpl
Normal file
|
@ -0,0 +1,175 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 4 or $action eq 8 or $action eq 64 or $action eq 16384}
|
||||
{* Add or edit Profile Group form *}
|
||||
{include file="CRM/UF/Form/Group.tpl"}
|
||||
{elseif $action eq 1024}
|
||||
{* Preview Profile Group form *}
|
||||
{include file="CRM/UF/Form/Preview.tpl"}
|
||||
{elseif $action eq 8192}
|
||||
{* Display HTML Form Snippet Code *}
|
||||
<div class="help">
|
||||
{ts}The HTML code below will display a form consisting of the active fields in this Profile. You can copy this HTML code and paste it into any block or page on your website where you want to collect contact information.{/ts} {help id='standalone'}
|
||||
</div>
|
||||
<br />
|
||||
<form name="html_code" action="{crmURL p='civicrm/admin/uf/group' q="action=profile&gid=$gid"}">
|
||||
<div id="standalone-form">
|
||||
<textarea rows="20" cols="80" name="profile" id="profile">{$profile}</textarea>
|
||||
<div class="spacer"></div>
|
||||
<a href="#" onclick="html_code.profile.select(); return false;" class="button"><span>Select HTML Code</span></a>
|
||||
</div>
|
||||
<div class="action-link">
|
||||
<a href="{crmURL p='civicrm/admin/uf/group' q="reset=1"}">» {ts}Back to Profile Listings{/ts}</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{else}
|
||||
<div class="help">
|
||||
{ts}CiviCRM Profile(s) allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features. They provide a powerful set of tools for you to collect information from constituents and selectively share contact information.{/ts} {help id='profile_overview'}
|
||||
</div>
|
||||
|
||||
{if NOT ($action eq 1 or $action eq 2)}
|
||||
<div class="crm-submit-buttons">
|
||||
<a href="{crmURL p='civicrm/admin/uf/group/add' q="action=add&reset=1"}" id="newCiviCRMProfile-top" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Profile{/ts}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
{if $rows}
|
||||
<div id='mainTabContainer'>
|
||||
<ul>
|
||||
<li id='tab_user-profiles'> <a href='#user-profiles' title='{ts}User-defined Profile{/ts}'>{ts}User-defined Profiles{/ts}</a></li>
|
||||
<li id='tab_reserved-profiles'><a href='#reserved-profiles' title='{ts}Reserved Profiles{/ts}'>{ts}Reserved Profiles{/ts}</a></li>
|
||||
</ul>
|
||||
|
||||
{* handle enable/disable actions*}
|
||||
{include file="CRM/common/enableDisableApi.tpl"}
|
||||
{include file="CRM/common/jsortable.tpl"}
|
||||
<div id="user-profiles">
|
||||
<div class="crm-content-block">
|
||||
<table class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="sortable">{ts}Profile Title{/ts}</th>
|
||||
<th>{ts}Created By{/ts}</th>
|
||||
<th>{ts}Description{/ts}</th>
|
||||
<th>{ts}Type{/ts}</th>
|
||||
<th>{ts}ID{/ts}</th>
|
||||
<th id="nosort">{ts}Used For{/ts}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$rows item=row}
|
||||
{if !$row.is_reserved }
|
||||
<tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
|
||||
<td class="crmf-title crm-editable">{$row.title}</td>
|
||||
<td>
|
||||
{if $row.created_id && $row.created_by}
|
||||
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.created_id`"}">{ts}{$row.created_by}{/ts}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="crmf-description crm-editable" data-type="textarea">{$row.description}</td>
|
||||
<td>{$row.group_type}</td>
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.module}</td>
|
||||
<td>{$row.action|replace:'xx':$row.id}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{if NOT ($action eq 1 or $action eq 2)}
|
||||
<div class="crm-submit-buttons">
|
||||
<a href="{crmURL p='civicrm/admin/uf/group/add' q='action=add&reset=1'}" id="newCiviCRMProfile-bottom" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Profile{/ts}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>{* user profile*}
|
||||
|
||||
<div id="reserved-profiles">
|
||||
<div class="crm-content-block">
|
||||
<table class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="sortable">{ts}Profile Title{/ts}</th>
|
||||
<th>{ts}Created By{/ts}</th>
|
||||
<th>{ts}Description{/ts}</th>
|
||||
<th>{ts}Type{/ts}</th>
|
||||
<th>{ts}ID{/ts}</th>
|
||||
<th id="nosort">{ts}Used For{/ts}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$rows item=row}
|
||||
{if $row.is_reserved}
|
||||
<tr id="UFGroup-{$row.id}" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
|
||||
<td>{$row.title}</td>
|
||||
<td>
|
||||
{if $row.created_id && $row.created_by}
|
||||
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.created_id`"}">{ts}{$row.created_by}{/ts}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$row.description}</td>
|
||||
<td>{$row.group_type}</td>
|
||||
<td>{$row.id}</td>
|
||||
<td>{$row.module}</td>
|
||||
<td>{$row.action|replace:'xx':$row.id}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{if NOT ($action eq 1 or $action eq 2)}
|
||||
<div class="crm-submit-buttons">
|
||||
<a href="{crmURL p='civicrm/admin/uf/group/add' q='action=add&reset=1'}" id="newCiviCRMProfile-bottom" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Profile{/ts}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>{* reserved profile*}
|
||||
|
||||
</div> {* maincontainer*}
|
||||
<script type='text/javascript'>
|
||||
var selectedTab = 'user-profiles';
|
||||
{if $selectedChild}selectedTab = '{$selectedChild}';{/if}
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
var tabIndex = $('#tab_' + selectedTab).prevAll().length
|
||||
$("#mainTabContainer").tabs( {active: tabIndex} );
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
{else}
|
||||
{if $action ne 1} {* When we are adding an item, we should not display this message *}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{capture assign=crmURL}{crmURL p='civicrm/admin/uf/group/add' q='action=add&reset=1'}{/capture}{ts 1=$crmURL}No CiviCRM Profiles have been created yet. You can <a href='%1'>add one now</a>.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
|
@ -0,0 +1,145 @@
|
|||
{**
|
||||
* Outer Region
|
||||
*}
|
||||
<script type="text/template" id="designer_template">
|
||||
<div class="crm-designer-toolbar full-height">
|
||||
<div class="crm-designer-buttonset-region ui-dialog-buttonset">
|
||||
</div>
|
||||
<hr />
|
||||
<div class="crm-designer-palette-region full-height">
|
||||
</div>
|
||||
</div>
|
||||
<div class="crm-designer-canvas full-height scroll">
|
||||
<div class="crm-designer-preview-canvas"></div>
|
||||
<div class="crm-designer-form-region">
|
||||
</div>
|
||||
<hr />
|
||||
<div class="crm-designer-fields-region">
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Render the field-palette container
|
||||
*}
|
||||
<script type="text/template" id="palette_template">
|
||||
<div class="crm-designer-palette">
|
||||
<div class="crm-designer-palette-search">
|
||||
<div class="crm-filter-objects">
|
||||
<span>{ts}Contact Type{/ts}:
|
||||
<select class="crm-form-select crm-contact-types">
|
||||
<option value="IndividualModel">{ts}Individual{/ts}</option>
|
||||
<option value="OrganizationModel">{ts}Organization{/ts}</option>
|
||||
<option value="HouseholdModel">{ts}Household{/ts}</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
<hr>
|
||||
<input type="text" class="crm-form-text" placeholder="{ts}Search Fields{/ts}" />
|
||||
<a class="crm-designer-palette-clear-search crm-hover-button" href="#" style="visibility:hidden" title="{ts}Clear search{/ts}"><i class="crm-i fa-times"></i></a>
|
||||
<div class="crm-designer-palette-controls">
|
||||
<a href="#" class="crm-designer-palette-toggle" rel="open_all">{ts}Open All{/ts}</a> |
|
||||
<a href="#" class="crm-designer-palette-toggle" rel="close_all">{ts}Close All{/ts}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="crm-designer-palette-tree scroll">
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Template for CRM.UF.UFFieldModel, CRM.Designer.UFFieldView
|
||||
* @see extendedSerializeData()
|
||||
*}
|
||||
<script type="text/template" id="field_row_template">
|
||||
<div class="crm-designer-row" data-field-cid="<%= _model.cid %>">
|
||||
<div class="crm-designer-field-summary"></div>
|
||||
<div class="crm-designer-field-detail"></div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Template for CRM.UF.UFFieldModel, CRM.Designer.UFFieldSummaryView
|
||||
* @see extendedSerializeData()
|
||||
*}
|
||||
<script type="text/template" id="field_summary_template">
|
||||
<span class="crm-designer-buttons">
|
||||
<a class="crm-i fa-pencil crm-designer-action-settings" title="{ts}Settings{/ts}"></a>
|
||||
<a class="crm-i fa-trash crm-designer-action-remove" title="{ts}Remove{/ts}"></a>
|
||||
</span>
|
||||
<div class="description"><%= help_pre %></div>
|
||||
<div class="crm-designer-row-label">
|
||||
<span class="crm-designer-label"><%= label %></span>
|
||||
<%= _view.getRequiredMarker() %>
|
||||
<span class="crm-designer-field-binding"><%= _view.getBindingLabel() %></span>
|
||||
</div>
|
||||
<div class="description"><%= help_post %></div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* @param CRM.UF.UFGroupModel form
|
||||
*}
|
||||
<script type="text/template" id="form_row_template">
|
||||
<div class="crm-designer-row">
|
||||
<div class="crm-designer-form-summary"></div>
|
||||
<div class="crm-designer-form-detail"></div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Variables correspond to properties of CRM.UF.UFGroupModel
|
||||
*}
|
||||
<script type="text/template" id="form_summary_template">
|
||||
<h3><%= title %></h3>
|
||||
<div class="crm-designer-buttons">
|
||||
<a class="crm-designer-action-settings crm-i fa-pencil" title="{ts}Settings{/ts}"></a>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/template" id="designer_buttons_template">
|
||||
<button class="crm-designer-save">{ts}Save{/ts}</button>
|
||||
<button class="crm-designer-preview">{ts}Preview{/ts}</button>
|
||||
</script>
|
||||
|
||||
<script type="text/template" id="field_canvas_view_template">
|
||||
<div class="crm-designer-fields">
|
||||
<div class="crm-designer-row placeholder">{ts}To add a field to this form, drag or double-click an item from the list to the right.{/ts}</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Variables correspond to properties of CRM.ProfileSelector.DummyModel
|
||||
*}
|
||||
<script type="text/template" id="profile_selector_template">
|
||||
<div>
|
||||
<span class="crm-profile-selector-select"></span>
|
||||
<button type="button" class="crm-profile-selector-preview" title="{ts}Preview{/ts}"><i class="crm-i fa-television"></i> {ts}Preview{/ts}</button>
|
||||
{if $perm}
|
||||
<button class="crm-profile-selector-edit">{ts}Edit{/ts}</button>
|
||||
<button class="crm-profile-selector-copy">{ts}Copy{/ts}</button>
|
||||
<button class="crm-profile-selector-create">{ts}Create{/ts}</button>
|
||||
{/if}
|
||||
</div>
|
||||
<form>
|
||||
<div class="crm-profile-selector-preview-pane">
|
||||
{ts}(Preview Area){/ts}
|
||||
</div>
|
||||
</form>
|
||||
</script>
|
||||
|
||||
<script type="text/template" id="profile_selector_empty_preview_template">
|
||||
{ts}(Preview Area){/ts}
|
||||
</script>
|
||||
|
||||
<script type="text/template" id="profile_selector_option_template">
|
||||
<%= title %>
|
||||
</script>
|
||||
|
||||
{**
|
||||
* Variables correspond to properties of CRM.ProfileSelector.DummyModel
|
||||
*}
|
||||
<script type="text/template" id="designer_dialog_template">
|
||||
<div class="crm-designer crm-container full-height">
|
||||
</div>
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue