Summary page: allow to show or hide question description and add CSS class
On summary page of survey, questions including their description are shown.
In many cases it does make sense
- Not to display the description, because it's not needed there anymore (does not make sense to show it again, since survey is over)
- or in case description needs to be displayed, use another style formatting because it's a new page
Suggestion:
Add a setting to survey options that would allow to define if to show or not to show question description on summary page
Add an extra CSS class to components/com_communitysurveys/layouts/YOURLAYOUT/results/question.php
<div class="panel-body">
<?php echo $item->description;?>
</div>
<?php echo $item->description;?>
</div>
for example
<div class="panel-body desc-summarypage">
"Show Description in Report" option is added in Customize tab of the question edit form. This feature will be available starting v5.5.4 release.
"question-description" class name is added in v5.5.3 release