summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%7A/7A2/7A24E297%%Search.tpl.php
blob: 7cb51ba74e28311dc682a61e8ca6a8b99b23c99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?php /* Smarty version 2.6.31, created on 2019-08-30 20:22:11
         compiled from CRM/Group/Form/Search.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Group/Form/Search.tpl', 1, false),array('block', 'ts', 'CRM/Group/Form/Search.tpl', 29, false),array('function', 'crmURL', 'CRM/Group/Form/Search.tpl', 79, false),array('function', 'help', 'CRM/Group/Form/Search.tpl', 79, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><div class="crm-block crm-form-block crm-group-search-form-block">
  <div class="crm-accordion-wrapper crm-search_builder-accordion <?php if ($this->_tpl_vars['rows'] && ! $this->_tpl_vars['showSearchForm']): ?>collapsed<?php endif; ?>">
    <div class="crm-accordion-header crm-master-accordion-header">
      <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Find Groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
    </div>
    <div class="crm-accordion-body">
      <div id="searchForm">
        <table class="form-layout">
          <tr>
            <td>
              <?php echo $this->_tpl_vars['form']['title']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['title']['html']; ?>
<br />
              <span class="description font-italic">
          <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Complete OR partial group name.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      </span>
            </td>
            <td>
              <?php echo $this->_tpl_vars['form']['created_by']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['created_by']['html']; ?>
<br />
              <span class="description font-italic">
          <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Complete OR partial creator name.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      </span>
            </td>
            <td>
              <?php echo $this->_tpl_vars['form']['visibility']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['visibility']['html']; ?>
<br />
              <span class="description font-italic">
          <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Filter search by visibility.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      </span>
            </td>
          </tr>
          <tr>
            <td id="group_type-block">
              <?php echo $this->_tpl_vars['form']['group_type_search']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['group_type_search']['html']; ?>
<br />
              <span class="description font-italic">
          <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Filter search by group type(s).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
      </span>
            </td>
            <td>
              <?php echo $this->_tpl_vars['form']['group_status']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['group_status']['html']; ?>

            </td>
            <td>
              <?php echo $this->_tpl_vars['form']['component_mode']['label']; ?>
<br />
              <?php echo $this->_tpl_vars['form']['component_mode']['html']; ?>

            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
<div class="css_right">
  <a class="crm-hover-button action-item" href="<?php echo CRM_Utils_System::crmURL(array('q' => "reset=1&update_smart_groups=1"), $this);?>
"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Update Smart Group Counts<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a> <?php echo smarty_function_help(array('id' => 'update_smart_groups'), $this);?>

</div>
<?php if (call_user_func ( array ( 'CRM_Core_Permission' , 'check' ) , 'edit groups' )): ?>
  <?php $this->assign('editableClass', 'crm-editable'); ?>
<?php endif; ?>
<table class="crm-group-selector crm-ajax-table" data-order='[[0,"asc"]]'>
  <thead>
    <tr>
      <th data-data="title" cell-class="crm-group-name <?php echo $this->_tpl_vars['editableClass']; ?>
 crmf-title" class='crm-group-name'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Name<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <th data-data="count" cell-class="crm-group-count right" class='crm-group-count'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Count<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <th data-data="created_by" cell-class="crm-group-created_by" class='crm-group-created_by'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Created By<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <th data-data="description" data-orderable="false" cell-class="crm-group-description crmf-description <?php echo $this->_tpl_vars['editableClass']; ?>
" class='crm-group-description'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Description<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <th data-data="group_type" cell-class="crm-group-group_type" class='crm-group-group_type'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Group Type<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <th data-data="visibility" cell-class="crm-group-visibility crmf-visibility <?php echo $this->_tpl_vars['editableClass']; ?>
" cell-data-type="select" class='crm-group-visibility'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Visibility<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <?php if ($this->_tpl_vars['showOrgInfo']): ?>
        <th data-data="org_info" data-orderable="false" cell-class="crm-group-org_info" class='crm-group-org_info'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Organization<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
      <?php endif; ?>
      <th data-data="links" data-orderable="false" cell-class="crm-group-group_links" class='crm-group-group_links'>&nbsp;</th>
    </tr>
  </thead>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/enableDisableApi.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '
<script type="text/javascript">
  (function($) {
    // for CRM-11310 and CRM-10635 : processing just parent groups on initial display
    // passing \'1\' for parentsOnlyArg to show parent child hierarchy structure display
    // on initial load of manage group page and
    // also to handle search filtering for initial load of same page.
    var parentsOnly = 1
    var ZeroRecordText = '; ?>
'<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><div class="status messages">No Groups have been created for this site.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></div>'<?php echo ';
    $(\'table.crm-group-selector\').data({
      "ajax": {
        "url": '; ?>
'<?php echo CRM_Utils_System::crmURL(array('p' => "civicrm/ajax/grouplist",'h' => 0,'q' => "snippet=4"), $this);?>
'<?php echo ',
        "data": function (d) {

          var groupTypes = ($(\'.crm-group-search-form-block #group_type_search_1\').prop(\'checked\')) ? \'1\' : \'\';
          if (groupTypes) {
            groupTypes = ($(\'.crm-group-search-form-block #group_type_search_2\').prop(\'checked\')) ? groupTypes + \',2\' : groupTypes;
          } else {
            groupTypes = ($(\'.crm-group-search-form-block #group_type_search_2\').prop(\'checked\')) ? \'2\' : \'\';
          }

          var groupStatus = ($(\'.crm-group-search-form-block #group_status_1\').prop(\'checked\')) ? 1 : \'\';
          if (groupStatus) {
            groupStatus = ($(\'.crm-group-search-form-block #group_status_2\').prop(\'checked\')) ? 3 : groupStatus;
          } else {
            groupStatus = ($(\'.crm-group-search-form-block #group_status_2\').prop(\'checked\')) ? 2 : \'\';
          }

          d.title = $(".crm-group-search-form-block input#title").val(),
          d.created_by = $(".crm-group-search-form-block input#created_by").val(),
          d.group_type = groupTypes,
          d.visibility = $(".crm-group-search-form-block select#visibility").val(),
          d.status = groupStatus,
          d.component_mode = $(".crm-group-search-form-block select#component_mode").val(),
          d.showOrgInfo = '; ?>
"<?php echo $this->_tpl_vars['showOrgInfo']; ?>
"<?php echo ',
          d.parentsOnly = parentsOnly
        }
      },
      "language": {
        "zeroRecords": ZeroRecordText
      },
      "drawCallback": function(settings) {
        //Add data attributes to cells
        $(\'thead th\', settings.nTable).each( function( index ) {
          $.each(this.attributes, function() {
            if(this.name.match("^cell-")) {
              var cellAttr = this.name.substring(5);
              var cellValue = this.value;
              $(\'tbody tr\', settings.nTable).each( function() {
                $(\'td:eq(\'+ index +\')\', this).attr( cellAttr, cellValue );
              });
            }
          });
        });
        //Reload table after draw
        $(settings.nTable).trigger(\'crmLoad\');
        if (parentsOnly) {
          CRM.loadScript(CRM.config.resourceBase + \'js/jquery/jquery.crmEditable.js\').done(function () {
            $(\'tbody tr.crm-group-parent\', settings.nTable).each(function () {
              $(this).find(\'td:first\')
                .prepend(\''; ?>
<span class="collapsed show-children" title="<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>show child groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>"/></span><?php echo '\')
                .find(\'div\').css({\'display\': \'inline\'});
            });
          });
        }
      }
    });
    $(function($) {
      $(\'.crm-group-search-form-block :input\').change(function(){
        parentsOnly = 0;
        ZeroRecordText = \'<div class="status messages">'; ?>
<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>No matching Groups found for your search criteria. Suggestions:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '<div class="spacer"></div><ul><li>'; ?>
<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Check your spelling.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '</li><li>'; ?>
<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Try a different spelling or use fewer letters.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '</li><li>'; ?>
<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Make sure you have enough privileges in the access control system.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '</li></ul></div>\';
        $(\'table.crm-group-selector\').DataTable().draw();
      });
    });
    $(\'#crm-container\')
      .on(\'click\', \'a.button, a.action-item[href*="action=update"], a.action-item[href*="action=delete"]\', CRM.popup)
      .on(\'crmPopupFormSuccess\', \'a.button, a.action-item[href*="action=update"], a.action-item[href*="action=delete"]\', function() {
          // Refresh datatable when form completes
          $(\'table.crm-group-selector\').DataTable().draw();
      });
    // show hide children
    var context = $(\'#crm-main-content-wrapper\');
    $(\'table.crm-group-selector\', context).on( \'click\', \'span.show-children\', function(){
      var showOrgInfo = '; ?>
"<?php echo $this->_tpl_vars['showOrgInfo']; ?>
"<?php echo ';
      var rowID = $(this).parents(\'tr\').prop(\'id\');
      var parentRow = rowID.split(\'_\');
      var parent_id = parentRow[1];
      var group_id = \'\';
      if ( parentRow[2]) {
        group_id = parentRow[2];
      }
      var levelClass = \'level_2\';
      // check enclosing td if already at level 2
      if ( $(this).parent().hasClass(\'level_2\') ) {
        levelClass = \'level_3\';
      }
      if ( $(this).hasClass(\'collapsed\') ) {
        $(this).removeClass("collapsed").addClass("expanded").attr("title",'; ?>
"<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>hide child groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>"<?php echo ');
        showChildren( parent_id, showOrgInfo, group_id, levelClass );
      }
      else {
        $(this).removeClass("expanded").addClass("collapsed").attr("title",'; ?>
"<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>show child groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>"<?php echo ');
        $(\'.parent_is_\' + parent_id).find(\'.show-children\').removeClass("expanded").addClass("collapsed").attr("title",'; ?>
"<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>show child groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>"<?php echo ');
        $(\'.parent_is_\' + parent_id).hide();
        $(\'.parent_is_\' + parent_id).each(function(i, obj) {
          // also hide children of children
          var gID = $(this).data(\'id\');
          $(\'.parent_is_\' + gID).hide();
        });
      }
    });
    function showChildren( parent_id, showOrgInfo, group_id, levelClass) {
      var rowID = \'#row_\' + parent_id;
      if ( group_id ) {
        rowID = \'#row_\' + parent_id + \'_\' + group_id;
      }
      if ( $(rowID).next().hasClass(\'parent_is_\' + parent_id ) ) {
        // child rows for this parent have already been retrieved so just show them
        $(\'.parent_is_\' + parent_id ).show();
      } else {
        //FIXME Is it possible to replace all this with a datatables call?
        $.ajax( {
            "dataType": \'json\',
            "url": '; ?>
'<?php echo CRM_Utils_System::crmURL(array('p' => "civicrm/ajax/grouplist",'h' => 0,'q' => "snippet=4"), $this);?>
'<?php echo ',
            "data": {\'parent_id\': parent_id, \'showOrgInfo\': showOrgInfo},
            "success": function(response){
              var appendHTML = \'\';
              $.each( response.data, function( i, val ) {
                appendHTML += \'<tr id="row_\'+val.group_id+\'_\'+parent_id+\'" data-entity="group" data-id="\'+val.group_id+\'" class="crm-entity parent_is_\'+parent_id+\' crm-row-child">\';
                if ( val.is_parent ) {
                  appendHTML += \'<td class="crm-group-name crmf-title \' + levelClass + \'">\' + \''; ?>
<span class="collapsed show-children" title="<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>show child groups<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>"/></span><div class="crmf-title <?php echo $this->_tpl_vars['editableClass']; ?>
" style="display:inline"><?php echo '\' + val.title + \'</div></td>\';
                }
                else {
                  appendHTML += \'<td class="crm-group-name  crmf-title '; ?>
<?php echo $this->_tpl_vars['editableClass']; ?>
<?php echo ' \' + levelClass + \'"><span class="crm-no-children"></span>\' + val.title + \'</td>\';
                }
                appendHTML += \'<td class="right">\' + val.count + "</td>";
                appendHTML += "<td>" + val.created_by + "</td>";
                appendHTML += \'<td class="'; ?>
<?php echo $this->_tpl_vars['editableClass']; ?>
<?php echo ' crmf-description">\' + (val.description || \'\') + "</td>";
                appendHTML += "<td>" + val.group_type + "</td>";
                appendHTML += \'<td class="'; ?>
<?php echo $this->_tpl_vars['editableClass']; ?>
<?php echo ' crmf-visibility" data-type="select">\' + val.visibility + "</td>";
                if (showOrgInfo) {
                  appendHTML += "<td>" + val.org_info + "</td>";
                }
                appendHTML += "<td>" + val.links + "</td>";
                appendHTML += "</tr>";
              });
              $( rowID ).after( appendHTML );
              $( \'.parent_is_\'+parent_id ).trigger(\'crmLoad\');
            }
        });
      }
    }
  })(CRM.$);
</script>
'; ?>

<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>