<commit_before><?php
use yii\helpers\Html;
use yii\helpers\Url;

?>

<tr>
    <td><?php echo Html::encode($model->id); ?></td>
    <td><?php echo Html::encode($model->name); ?></td>
    <td>
       <?php  echo Html::a('<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>',
            ['update', 'id'=>$model->id],['title'=>'Update']); 
       ?>
      &nbsp;
      <?php  
        echo Html::a('<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>',
            ['delete', 'id'=>$model->id],['title'=>'Delete', 'onclick'=>'return confirm("Вы действительно хотите удалить?");']); 
      ?> 
   </td>
</tr><commit_msg>аякс на удаление в услугах<commit_after><?php
use yii\helpers\Html;
use yii\helpers\Url;

$view_element = 'service_id'.$model->id;
?>

<tr id="<?php echo Html::encode($view_element); ?>">
    <td><?php echo Html::encode($model->id); ?></td>
    <td><?php echo Html::encode($model->name); ?></td>
    <td>
       <?php  echo Html::a('<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>',
            ['update', 'id'=>$model->id],['title'=>'Update']); 
       ?>
      &nbsp;
      <?php  
           echo Html::a('<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>',['delete', 'id'=>$model->id],
           [
             'title' => Yii::t('yii', 'Delete'),
             'onclick'=>"if(confirm('Вы действительно хотите удалить?'))"
            . "{ $('#".$view_element." ').dialog('open');//for jui dialog in my page
                $.ajax({
               type     :'POST',
               cache    : false,
               url  : 'service/delete',
               success  : function(response) { $('#".$view_element."').html(response);   }
           })}; return false; ",
          ]);
      ?> 
   </td>
</tr>
{'fraction_non_alphanumeric': 0.23575418994413408, 'fraction_numerical': 0.0, 'mean_word_length': 2.6108870967741935, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5296290', 'n_tokens_mistral': 595, 'n_tokens_neox': 610, 'n_words': 106}