Skip to content

Commit

Permalink
Fixed issue #12031:Download files button in Response detail screen mi…
Browse files Browse the repository at this point in the history
…slabelled
  • Loading branch information
c-schmitz committed Jun 13, 2017
1 parent 2eaef45 commit a4c0f6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion application/models/SurveyDynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ public function getButtons()
if (Permission::model()->hasSurveyPermission(self::$sid,'responses','delete'))
{
$aPostDatas = json_encode(array('sResponseId'=>$this->id));
//$button .= '<a class="deleteresponse btn btn-default btn-xs" href="'.$sDeleteUrl.'" role="button" data-toggle="modal" data-ajax="true" data-post="'.$aPostDatas.'" data-target="#confirmation-modal" data-tooltip="true" title="'. sprintf(gT('Delete response %s'),$this->id).'"><span class="glyphicon glyphicon-trash text-danger" ></span></a>';
$button .= "<a class='deleteresponse btn btn-default btn-xs' data-ajax-url='".$sDeleteUrl."' data-gridid='responses-grid' role='button' data-toggle='modal' data-post='".$aPostDatas."' data-target='#confirmation-modal' data-tooltip='true' title='". sprintf(gT('Delete response %s'),$this->id)."'><span class='glyphicon glyphicon-trash text-danger' ></span></a>";
}

Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/responses/browsemenubar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<?php if ($bHasFile): ?>
<a class="btn btn-default" href='<?php echo Yii::app()->createUrl("admin/responses",array("sa"=>"actionDownloadfiles","surveyid"=>$surveyid,"sResponseId"=>$id)); ?>' role="button" >
<span class="glyphicon glyphicon-download-alt text-success"></span>
<?php eT("Delete this entry"); ?>
<?php eT("Download files"); ?>
</a>
<?php endif;?>

Expand Down

0 comments on commit a4c0f6d

Please sign in to comment.