View Issue Details

IDProjectCategoryView StatusLast Update
14520Bug reports[All Projects] Print Viewpublic2019-03-11 16:23
ReporterMaziAssigned Todominikvitt 
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Product Version3.15.x 
Target VersionFixed in Version 
Summary14520: Lots of styles for "print answers" view are hardcoded within Twig files which makes adjusting the page design pretty difficult
Description

Some example of hard coded design details at some "print answers" twig files (of which most can't be edited at the theme editor!):
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_ranking.twig#L7
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_boilerplate.twig#L6
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/question_types/template_multiple-opt.twig#L14
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/views/subviews/printanswers/printanswers_question.twig#L5

There are many more affected at https://github.com/LimeSurvey/LimeSurvey/tree/master/themes/survey/vanilla/views/subviews/printanswers/question_types.

I suggest removing these hard coded design details and replacing them with proper SPAN or similar elements which get assigned some additional CSS classes so we (and all other users) can style those details at the custom.css file.

Steps To Reproduce

Take the attached survey, enter fake data for some questions and call the print answers screen at the end of the survey.

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 3.15.6+190108
I will donate to the project if issue is resolvedNo
BrowserChrome
Database & DB-VersionMySQL 5
Server OS (if known)Ubuntu 14 TLS
Webserver software & version (if known)Apache 2
PHP Version7.0.26

Relationships

related to 14430 assigneddominikvitt Usage of obsolete HTML 
related to 14353 assigneddominikvitt Print answers as PDF make to wide part 
related to 14628 resolveddominikvitt Array numbers question type doesn't include proper subquestion and answer details at "print answers" overview 

Activities

Mazi

Mazi

2019-02-12 12:11

partner  

print_answers.lss (230,028 bytes)
DenisChenu

DenisChenu

2019-02-12 15:05

developer   ~50523

  1. Maybe it's better to use boostrap class ?
  2. if we don't move to mpdf : Must remove usage of col-sm-X : since tcpdf is not compatible with float : https://bugs.limesurvey.org/view.php?id=14353

Issue History

Date Modified Username Field Change
2019-02-12 12:11 Mazi New Issue
2019-02-12 12:11 Mazi File Added: print_answers.lss
2019-02-12 12:12 Mazi Relationship added related to 14430
2019-02-12 15:04 DenisChenu Relationship added related to 14353
2019-02-12 15:05 DenisChenu Note Added: 50523
2019-02-12 16:40 cdorin Assigned To => dominikvitt
2019-02-12 16:40 cdorin Priority none => normal
2019-02-12 16:40 cdorin Status new => assigned
2019-02-12 16:40 cdorin Description Updated View Revisions
2019-03-11 16:23 Mazi Relationship added related to 14628