View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 06783 | Bug reports | Survey taking | public | 2012-10-26 15:01 | 2018-12-18 15:21 |
| Reporter | NortonT | Assigned To | |||
| Priority | low | Severity | tweak | ||
| Status | closed | Resolution | fixed | ||
| Summary | 06783: GCI: Deprecated <center> tag used to align button on print answers page | ||||
| Description | Deprecated <center> tag used to align the "PDF export" button on print answers page, therefore it's position cannot be controlled using css in a template. In order to fix I'd propose changing L130 of PrintanswersController.php from: $printoutput .= "<form action='".Yii::app()->getController()->createUrl('printanswers/view/surveyid/'.$surveyid.'/printableexport/pdf')."' method='post'>\n<center><input type='submit' value='".$clang->gT("PDF export")."'id=\"exportbutton\"/><input type='hidden' name='printableexport' /></center></form>"; To: $printoutput .= "<form action='".Yii::app()->getController()->createUrl('printanswers/view/surveyid/'.$surveyid.'/printableexport/pdf')."' method='post'>\n<input type='submit' value='".$clang->gT("PDF export")."'id=\"exportbutton\"/ style='text-align:center;'><input type='hidden' name='printableexport' /></form>"; | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 121025 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Any | ||||
| Database type & version | MySQL | ||||
| Server OS (if known) | Linux | ||||
| Webserver software & version (if known) | Apache/2.2.15 (CentOS) | ||||
| PHP Version | 5.3.17 | ||||
| Git branch / Pull Request URL | |||||
|
Apologies I copied my correction wrongly, it should be: $printoutput .= "<form action='".Yii::app()->getController()->createUrl('printanswers/view/surveyid/'.$surveyid.'/printableexport/pdf')."' method='post' style='text-align:center'>\n<input type='submit' value='".$clang->gT("PDF export")."'id=\"exportbutton\"/><input type='hidden' name='printableexport' /></form>"; With |
|
|
Hello, Not style='text-align:center' BUT a class. (not clas="center", becaus you can want this on right. Use class to identify item, not to put css information. For exemple, never use class="red", but class="error" ;) |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-10-26 15:01 | NortonT | New Issue | |
| 2012-10-26 15:05 | NortonT | Note Added: 21711 | |
| 2012-10-26 16:56 | c_schmitz | Project | Bug reports => @10@ |
| 2012-10-26 17:03 | c_schmitz | Product Version | 2.00+ => |
| 2012-10-26 17:03 | c_schmitz | Summary | Deprecated <center> tag used to align button on print answers page => GCI: Deprecated <center> tag used to align button on print answers page |
| 2012-10-26 18:31 | DenisChenu | Note Added: 21722 | |
| 2018-12-18 15:21 | DenisChenu | Status | new => closed |
| 2018-12-18 15:21 | DenisChenu | Resolution | open => fixed |
| 2018-12-18 15:21 | DenisChenu | Fixed in Version | => 2.5x |