/
_showParticipantSurveys.php
41 lines (40 loc) · 1.7 KB
/
_showParticipantSurveys.php
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
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="participant_edit_modal"><?php eT('List active surveys'); ?></h4>
</div>
<div class="modal-body form-horizontal">
<?php
$form = $this->beginWidget(
'bootstrap.widgets.TbActiveForm',
array(
'id' => 'participantSurveysActiveForm',
'action' => array('admin/participants/sa/editValueParticipantPanel'),
'htmlOptions' => array('class' => 'form-horizontal'), // for inset effect
)
);
?>
<input type="hidden" name="actionTarget" value="addParticipantToSurvey" />
<input type="hidden" name="Participant[participant_id]" value="<?php echo $model->participant_id; ?>" />
<div class="container-fluid">
<?php
$this->widget('bootstrap.widgets.TbGridView', array(
'id' => 'list_participant_surveys',
'itemsCssClass' => 'table table-striped items',
'dataProvider' => $surveymodel->search(),
'columns' => $surveymodel->columns,
'htmlOptions' => array('class'=> 'table-responsive'),
'itemsCssClass' => 'table table-responsive table-striped',
'afterAjaxUpdate' => 'bindButtonsInsideSurveys',
'ajaxType' => 'POST',
'summaryText' => gT('Displaying {count} survey(s).'),
'emptyText' => gT("This participant is not active in any survey")
));
?>
<p> </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php eT('Close') ?></button>
</div>
<?php
$this->endWidget();
?>