Merge branch 'fix/hide_vote_form' into 'develop'
Fix/hide vote form Lorsque le mot de passe est requis pour voter mais pas pour voir le sondage, on n'affiche plus le formulaire de vote (la protection était déjà présente pour les sondages classiques). See merge request !104
This commit is contained in:
commit
f07b4c3d10
@ -80,7 +80,6 @@ $(document).ready(function () {
|
||||
$(this).find('.hours:eq(' + i + ')').val(first_day_hours[i]); // fill hours
|
||||
}
|
||||
});
|
||||
$('#d0-h0').focus();
|
||||
});
|
||||
|
||||
// Buttons "Add an hour"
|
||||
|
@ -93,12 +93,12 @@
|
||||
<div class="row">
|
||||
<div class="form-group form-group {if $admin}col-md-4{else}col-md-6{/if}">
|
||||
<label for="public-link"><a class="public-link" href="{poll_url id=$poll_id}">{__('PollInfo', 'Public link of the poll')} <span class="btn-link glyphicon glyphicon-link"></span></a></label>
|
||||
<input class="form-control" id="public-link" type="text" readonly="readonly" value="{poll_url id=$poll_id}" />
|
||||
<input class="form-control" id="public-link" type="text" readonly="readonly" value="{poll_url id=$poll_id}" onclick="select();"/>
|
||||
</div>
|
||||
{if $admin}
|
||||
<div class="form-group col-md-4">
|
||||
<label for="admin-link"><a class="admin-link" href="{poll_url id=$admin_poll_id admin=true}">{__('PollInfo', 'Admin link of the poll')} <span class="btn-link glyphicon glyphicon-link"></span></a></label>
|
||||
<input class="form-control" id="admin-link" type="text" readonly="readonly" value="{poll_url id=$admin_poll_id admin=true}" />
|
||||
<input class="form-control" id="admin-link" type="text" readonly="readonly" value="{poll_url id=$admin_poll_id admin=true}" onclick="select();"/>
|
||||
</div>
|
||||
<div id="expiration-form" class="form-group col-md-4">
|
||||
<label class="control-label">{__('PollInfo', 'Expiration date')}</label>
|
||||
|
@ -44,8 +44,9 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $votes as $vote}
|
||||
{* Edited line *}
|
||||
|
||||
{if $editingVoteId === $vote->uniqId} {* Edited line *}
|
||||
{if $editingVoteId === $vote->uniqId && !$expired}
|
||||
|
||||
<tr class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
|
@ -179,7 +179,7 @@
|
||||
|
||||
{* Line to add a new vote *}
|
||||
|
||||
{if $active && $editingVoteId === 0 && !$expired}
|
||||
{if $active && $editingVoteId === 0 && !$expired && $accessGranted}
|
||||
<tr id="vote-form" class="hidden-print">
|
||||
<td class="bg-info" style="padding:5px">
|
||||
<div class="input-group input-group-sm">
|
||||
|
Loading…
Reference in New Issue
Block a user