Move some style to css files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
95c4737953
commit
70f296377f
@ -37,6 +37,10 @@ body {
|
||||
margin: 15px auto 30px;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Commentaires */
|
||||
div.comment{
|
||||
margin-bottom: 10px;
|
||||
@ -336,6 +340,14 @@ table.results .btn-link.btn-sm {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.btn-edit {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
span.edit-username-left {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.yes .btn, .ifneedbe .btn, .no .btn {
|
||||
width:32px;
|
||||
color:#555;
|
||||
|
@ -50,7 +50,7 @@
|
||||
{if $editingVoteId === $vote->uniqId && !$expired}
|
||||
|
||||
<tr class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
<td class="bg-info btn-edit">
|
||||
<div class="input-group input-group-sm" id="edit">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
|
||||
<input type="hidden" name="edited_vote" value="{$vote->uniqId}"/>
|
||||
@ -82,7 +82,7 @@
|
||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||
</label>
|
||||
</li>
|
||||
<li style="display:none">
|
||||
<li class="hide">
|
||||
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
||||
</li>
|
||||
</ul>
|
||||
@ -91,14 +91,14 @@
|
||||
{$id=$id + 1}
|
||||
{/foreach}
|
||||
|
||||
<td style="padding:5px"><button type="submit" class="btn btn-success btn-xs" name="save" value="{$vote->id|html}" title="{__('Poll results', 'Save the choices')} {$vote->name|html}">{__('Generic', 'Save')}</button></td>
|
||||
<td class="btn-edit"><button type="submit" class="btn btn-success btn-xs" name="save" value="{$vote->id|html}" title="{__('Poll results', 'Save the choices')} {$vote->name|html}">{__('Generic', 'Save')}</button></td>
|
||||
</tr>
|
||||
{elseif !$hidden} {* Voted line *}
|
||||
<tr>
|
||||
|
||||
<th class="bg-info">{$vote->name|html}
|
||||
{if $slots gt 4}
|
||||
<span style="float:right;">
|
||||
<span class="edit-username-left">
|
||||
<a href="{if $admin}{poll_url id=$poll->admin_id vote_id=$vote->uniqId admin=true}{else}{poll_url id=$poll->id vote_id=$vote->uniqId}{/if}" class="btn btn-default btn-sm" title="{__f('Poll results', 'Edit the line: %s', $vote->name)|html}">
|
||||
<i class="glyphicon glyphicon-pencil"></i><span class="sr-only">{__('Generic', 'Edit')}</span>
|
||||
</a>
|
||||
@ -154,7 +154,7 @@
|
||||
|
||||
{if $active && $editingVoteId === 0 && !$expired && $accessGranted}
|
||||
<tr id="vote-form" class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
<td class="bg-info" class="btn-edit">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
|
||||
<input type="text" id="name" name="name" class="form-control" title="{__('Generic', 'Your name')}" placeholder="{__('Generic', 'Your name')}" />
|
||||
@ -181,7 +181,7 @@
|
||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||
</label>
|
||||
</li>
|
||||
<li style="display:none">
|
||||
<li class="hide">
|
||||
<input type="radio" id="n-choice-{$id}" name="choices[{$id}]" value=" " checked/>
|
||||
</li>
|
||||
</ul>
|
||||
@ -312,7 +312,7 @@
|
||||
|
||||
|
||||
{$i = 0}
|
||||
<ul style="list-style:none">
|
||||
<ul class="list-unstyled">
|
||||
{foreach $slots as $slot}
|
||||
{if $best_choices['y'][$i] == $max}
|
||||
<li><strong>{$slot->title|markdown:true}</strong></li>
|
||||
|
@ -97,7 +97,7 @@
|
||||
|
||||
{if $editingVoteId === $vote->uniqId && !$expired}
|
||||
<tr class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
<td class="bg-info btn-edit">
|
||||
<div class="input-group input-group-sm" id="edit">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
|
||||
<input type="hidden" name="edited_vote" value="{$vote->uniqId}"/>
|
||||
@ -133,7 +133,7 @@
|
||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||
</label>
|
||||
</li>
|
||||
<li style="display:none">
|
||||
<li class="hide">
|
||||
<input type="radio" id="n-choice-{$k}" name="choices[{$k}]" value=" " {if $choice!='2' && $choice!='1' && $choice!='0'}checked {/if}/>
|
||||
</li>
|
||||
</ul>
|
||||
@ -143,7 +143,7 @@
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
|
||||
<td style="padding:5px"><button type="submit" class="btn btn-success btn-xs" name="save" value="{$vote->id|html}" title="{__('Poll results', 'Save the choices')} {$vote->name|html}">{__('Generic', 'Save')}</button></td>
|
||||
<td class="btn-edit"><button type="submit" class="btn btn-success btn-xs" name="save" value="{$vote->id|html}" title="{__('Poll results', 'Save the choices')} {$vote->name|html}">{__('Generic', 'Save')}</button></td>
|
||||
|
||||
</tr>
|
||||
{elseif !$hidden}
|
||||
@ -153,7 +153,7 @@
|
||||
|
||||
<th class="bg-info">{$vote->name|html}
|
||||
{if $slots gt 4}
|
||||
<span style="float:right;">
|
||||
<span class="edit-username-left">
|
||||
<a href="{if $admin}{poll_url id=$poll->admin_id vote_id=$vote->uniqId admin=true}{else}{poll_url id=$poll->id vote_id=$vote->uniqId}{/if}" class="btn btn-default btn-sm" title="{__f('Poll results', 'Edit the line: %s', $vote->name)|html}">
|
||||
<i class="glyphicon glyphicon-pencil"></i><span class="sr-only">{__('Generic', 'Edit')}</span>
|
||||
</a>
|
||||
@ -213,7 +213,7 @@
|
||||
|
||||
{if $active && $editingVoteId === 0 && !$expired && $accessGranted}
|
||||
<tr id="vote-form" class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
<td class="bg-info btn-edit">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
|
||||
<input type="text" id="name" name="name" class="form-control" title="{__('Generic', 'Your name')}" placeholder="{__('Generic', 'Your name')}" />
|
||||
@ -242,7 +242,7 @@
|
||||
<i class="glyphicon glyphicon-ban-circle"></i><span class="sr-only">{__('Generic', 'No')}</span>
|
||||
</label>
|
||||
</li>
|
||||
<li style="display:none">
|
||||
<li class="hide">
|
||||
<input type="radio" id="n-choice-{$i}" name="choices[{$i}]" value=" " checked/>
|
||||
</li>
|
||||
</ul>
|
||||
@ -374,7 +374,7 @@
|
||||
|
||||
|
||||
{$i = 0}
|
||||
<ul style="list-style:none">
|
||||
<ul class="list-unstyled">
|
||||
{foreach $slots as $slot}
|
||||
{foreach $slot->moments as $moment}
|
||||
{if $best_choices['y'][$i] == $max}
|
||||
|
Loading…
Reference in New Issue
Block a user