Hide some useless elements when printing
This commit is contained in:
parent
1330ea825f
commit
15e5b40877
@ -28,7 +28,7 @@ function bandeau_titre($titre)
|
|||||||
echo '
|
echo '
|
||||||
<header role="banner">';
|
<header role="banner">';
|
||||||
if(count($ALLOWED_LANGUAGES)>1){
|
if(count($ALLOWED_LANGUAGES)>1){
|
||||||
echo '<form method="post" action="">
|
echo '<form method="post" action="" class="hidden-print">
|
||||||
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
||||||
<select name="lang" class="form-control" title="'. _("Select the language") .'" >' . liste_lang() . '</select>
|
<select name="lang" class="form-control" title="'. _("Select the language") .'" >' . liste_lang() . '</select>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<header role="banner">
|
<header role="banner">
|
||||||
{if count($langs)>1}
|
{if count($langs)>1}
|
||||||
<form method="post" action="">
|
<form method="post" action="" class="hidden-print">
|
||||||
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
||||||
<select name="lang" class="form-control" title="${_("Select the language")}" >
|
<select name="lang" class="form-control" title="${_("Select the language")}" >
|
||||||
{foreach $langs as $lang_key=>$lang_value}
|
{foreach $langs as $lang_key=>$lang_value}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<hr role="presentation" id="comments"/>
|
<hr role="presentation" id="comments" class="hidden-print"/>
|
||||||
<form action="#comments" method="POST">
|
<form action="#comments" method="POST">
|
||||||
|
|
||||||
{* Comment list *}
|
{* Comment list *}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5 hidden-print">
|
||||||
<div class="btn-group pull-right">
|
<div class="btn-group pull-right">
|
||||||
<button onclick="print(); return false;" class="btn btn-default"><span class="glyphicon glyphicon-print"></span> {_('Print')}</button>
|
<button onclick="print(); return false;" class="btn btn-default"><span class="glyphicon glyphicon-print"></span> {_('Print')}</button>
|
||||||
<a href="{$SERVER_URL}exportcsv.php?poll={$poll_id}" class="btn btn-default"><span class="glyphicon glyphicon-download-alt"></span> {_('Export to CSV')}</a>
|
<a href="{$SERVER_URL}exportcsv.php?poll={$poll_id}" class="btn btn-default"><span class="glyphicon glyphicon-download-alt"></span> {_('Export to CSV')}</a>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<caption class="sr-only">{_('Votes of the poll')} {$poll->title}</caption>
|
<caption class="sr-only">{_('Votes of the poll')} {$poll->title}</caption>
|
||||||
<thead>
|
<thead>
|
||||||
{if $admin}
|
{if $admin}
|
||||||
<tr>
|
<tr class="hidden-print">
|
||||||
<th role="presentation"></th>
|
<th role="presentation"></th>
|
||||||
{foreach $slots as $id=>$slot}
|
{foreach $slots as $id=>$slot}
|
||||||
<td headers="C{$id}">
|
<td headers="C{$id}">
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<caption class="sr-only">{_('Votes of the poll')} {$poll->title}</caption>
|
<caption class="sr-only">{_('Votes of the poll')} {$poll->title}</caption>
|
||||||
<thead>
|
<thead>
|
||||||
{if $admin}
|
{if $admin}
|
||||||
<tr>
|
<tr class="hidden-print">
|
||||||
<th role="presentation"></th>
|
<th role="presentation"></th>
|
||||||
{$headersDCount=0}
|
{$headersDCount=0}
|
||||||
{foreach $slots as $slot}
|
{foreach $slots as $slot}
|
||||||
|
Loading…
Reference in New Issue
Block a user