2016-05-04 00:08:29 +02:00
{ extends file = 'page.tpl' }
{ block name = "header" }
<script type="text/javascript">
window.date_formats = {
2018-07-06 18:06:35 +02:00
DATE: ' { __ ( 'Date' , '%Y-%m-%d' ) } ',
DATEPICKER: ' { __ ( 'Date' , 'yyyy-mm-dd' ) } '
2016-05-04 00:08:29 +02:00
};
</script>
<script type="text/javascript" src=" { 'js/app/framadatepicker.js' | resource } "></script>
{ /block }
{ block name = "main" }
<form name="formulaire" method="POST" class="form-horizontal" role="form">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="well summary">
2018-07-06 18:06:35 +02:00
<h4> { __ ( 'Step 3' , 'List of options' ) } </h4>
2016-05-04 00:08:29 +02:00
{ $summary }
</div>
<div class="alert alert-info">
<p> { __ ( 'Step 3' , 'Your poll will automatically be archived' ) } { $default_poll_duration } { __ ( 'Generic' , 'days' ) } { __ ( 'Step 3' , 'after the last date of your poll.' ) }
2018-07-06 18:06:35 +02:00
<br /> { __ ( 'Step 3' , 'You can set a specific expiry date for the poll.' ) } </p>
2016-05-04 00:08:29 +02:00
<div class="form-group">
2018-07-06 18:06:35 +02:00
<label for="enddate" class="col-sm-5 control-label"> { __ ( 'Step 3' , 'Expiry date:' ) } </label>
2016-05-04 00:08:29 +02:00
<div class="col-sm-6">
<div class="input-group date">
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar text-info"></i></span>
2018-07-06 18:06:35 +02:00
<input type="text" class="form-control" id="enddate" data-date-format=" { __ ( 'Date' , 'yyyy-mm-dd' ) } " aria-describedby="dateformat" name="enddate" value=" { $end_date_str } " size="10" maxlength="10" placeholder=" { __ ( 'Date' , 'yyyy-mm-dd' ) } " />
2016-05-04 00:08:29 +02:00
</div>
</div>
2018-07-06 18:06:35 +02:00
<span id="dateformat" class="sr-only"> { __ ( 'Date' , 'yyyy-mm-dd' ) } </span>
2016-05-04 00:08:29 +02:00
</div>
</div>
<div class="alert alert-warning">
2018-09-11 15:38:50 +02:00
<p> { __ ( 'Step 3' , 'Once you have confirmed the creation of your poll, you will automatically be redirected to the poll\'s administration page.' ) } </p>
2016-05-04 00:08:29 +02:00
{ if $use_smtp }
2018-07-06 18:06:35 +02:00
<p> { __ ( 'Step 3' , 'Then you will receive two emails: one containing the link of your poll for sending to the participants, the other containing the link to the poll administration page.' ) } </p>
2016-05-04 00:08:29 +02:00
{ /if }
</div>
<p class="text-right">
<button class="btn btn-default" onclick="javascript:window.history.back();" title=" { __ ( 'Step 3' , 'Back to step 2' ) } "> { __ ( 'Generic' , 'Back' ) } </button>
<button name="confirmation" value="confirmation" type="submit" class="btn btn-success"> { __ ( 'Step 3' , 'Create the poll' ) } </button>
</p>
</div>
</div>
</form>
2018-07-06 18:06:35 +02:00
{ /block }