Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #13059: Display issue - Export CPDB
- Loading branch information
Showing
3 changed files
with
85 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<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">×</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> <?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">×</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); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters