Skip to content
Snippets Groups Projects
Commit cb1e065c authored by jaapjansma's avatar jaapjansma
Browse files

fixed notices

parent 5763cfda
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,13 @@
<div class="content">{$form.type.html}</div>
<div class="clear"></div>
</div>
{if isset($form.dashlet)}
<div class="crm-section">
<div class="label">{$form.dashlet.label}</div>
<div class="content">{$form.dashlet.html}</div>
<div class="clear"></div>
</div>
{/if}
<div id="type_configuration">
......@@ -42,14 +44,13 @@
<script type="text/javascript">
{literal}
CRM.$(function($) {
var id = {/literal}{if ($output)}{$output.id}{else}false{/if}{literal};
var id = {/literal}{if isset($output.id)}{$output.id}{else}false{/if}{literal};
var data_processor_id = {/literal}{$data_processor_id}{literal};
$('#dashlet').on('change', function() {
var type = $('#type').val();
var dashlet_check = $('#dashlet').val();
if(dashlet_check){
console.log(dashlet_check);
var dataUrl = CRM.url('civicrm/dataprocessor/form/output', {type: type, 'data_processor_id': data_processor_id, 'id': id,'dashlet':dashlet_check});
CRM.loadPage(dataUrl, {'target': '#type_configuration'});
}
......
......@@ -14,9 +14,9 @@
<div class="crm-content-block">
<div class="crm-results-block">
{* This section handles form elements for action task select and submit *}
{if ($taskMetaData || (isset($other_outputs) && !empty($other_outputs)))}
{if (!empty($taskMetaData) || (isset($other_outputs) && !empty($other_outputs)))}
<div class="crm-search-tasks">
{if ($taskMetaData)}
{if (!empty($taskMetaData))}
{include file="CRM/common/searchResultTasks.tpl" qill=""}
{else}
<div id="search-status">
......@@ -34,11 +34,11 @@
{include file="CRM/common/pager.tpl" location="top"}
<div class="crm-search-results">
{if $id_field && $taskMetaData}<a href="#" class="crm-selection-reset crm-hover-button"><i class="crm-i fa-times-circle-o"></i> {ts}Reset all selections{/ts}</a>{/if}
{if $id_field && !empty($taskMetaData)}<a href="#" class="crm-selection-reset crm-hover-button"><i class="crm-i fa-times-circle-o"></i> {ts}Reset all selections{/ts}</a>{/if}
<table class="selector row-highlight">
<thead class="{if $sticky_header}sticky{/if}">
<tr>
{if $id_field && $taskMetaData}<th scope="col" title="Select Rows" style="{if $sticky_header}position: sticky; top: 35px;{/if}">{$form.toggleSelect.html}</th>{/if}
{if $id_field && !empty($taskMetaData)}<th scope="col" title="Select Rows" style="{if $sticky_header}position: sticky; top: 35px;{/if}">{$form.toggleSelect.html}</th>{/if}
{foreach from=$columnHeaders key=headerName item=headerTitle}
<th scope="col" style="{if $sticky_header}position: sticky; top: 35px;{/if}">
{if ($sort->_response.$headerName)}
......@@ -57,7 +57,7 @@
{assign var=cbName value=$row.checkbox}
{assign var=id value=$row.id}
{assign var=record value=$row.record}
{if $id_field && $taskMetaData}<td>{$form.$cbName.html}</td>{/if}
{if $id_field && !empty($taskMetaData)}<td>{$form.$cbName.html}</td>{/if}
{foreach from=$columnHeaders key=headerName item=headerTitle}
{assign var=columnValue value=$record.$headerName}
<td>{$columnValue}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment