Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (75 sloc) 3.58 KB
<div id="exportcsv" title="exportcsv" role="dialog" tabindex="-1" class="modal fade">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php eT("Export participants"); ?> </h4>
</div>
<div class="modal-body">
<div class="form container-center">
<div class='form-group row'>
<label class='control-label col-sm-4' for='attributes'><?php eT('Attributes to export:');?></label>
<div class='col-sm-8'>
<select id="attributes" name="attributes" multiple="multiple" >
<?php
foreach ($aAttributes as $value)
{
echo "<option value=" . $value['attribute_id'] . ">" . $value['defaultname'] . "</option>\n";
}
?>
</select>
</div>
</div>
<?php if (Yii::app()->getConfig('hideblacklisted') != 'N'): ?>
<div class='alert alert-info'>
<p><span class='fa fa-info-circle'></span>&nbsp;<?php eT('If you want to export blacklisted participants, set "Hide blacklisted participants" to "No" in CPDB settings.'); ?></p>
</div>
<?php endif; ?>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php eT('Close'); ?></button>
<button type="button" class="btn btn-default exportButton"><?php eT('Export'); ?></button>
</div>
</div>
</div>
</div>
<div id='exportcsvallprocessing' title='exportcsvall' style='display:none'>
<p><?php eT('Please wait, loading data...');?></p>
<div class="preloader loading">
<span class="slice"></span>
<span class="slice"></span>
<span class="slice"></span>
<span class="slice"></span>
<span class="slice"></span>
<span class="slice"></span>
</div>
</div>
<div id='exportcsvallnorow' title='exportcsvallnorow' role="dialog" tabindex="-1" class="modal fade">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php eT("Export participants"); ?></h4>
</div>
<div class="modal-body">
<?php eT("There are no participants to be exported."); ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php eT('Close'); ?></button>
</div>
</div>
</div>
</div>
<?php
App()->getClientScript()->registerScript('ExportCSVMultiSelectInit', "
$('#attributes').multiselect({
includeSelectAllOption: true,
enableFiltering: true,
enableCaseInsensitiveFiltering: true,
filterBehavior : \"text\",
selectAllText: '".gT("Select all")."',
filterPlaceholder: '".gT("Search for something...")."'
});
", LSYii_ClientScript::POS_POSTSCRIPT);
?>
You can’t perform that action at this time.