2014-12-22 09:53:18 +01:00
|
|
|
{extends file='page.tpl'}
|
|
|
|
|
|
|
|
{block name=main}
|
|
|
|
<form action="{$admin_poll_id|poll_url:true}" method="POST">
|
|
|
|
<div class="alert alert-info text-center">
|
2014-12-30 01:41:25 +01:00
|
|
|
<h2>{_('Column\'s adding')}</h2>
|
2014-12-22 09:53:18 +01:00
|
|
|
|
2014-12-30 01:41:25 +01:00
|
|
|
{if $format === 'D'}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="newdate" class="col-md-4">{_('Day')}</label>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="input-group date">
|
|
|
|
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
|
|
|
|
<input type="text" id="newdate" data-date-format="{_('dd/mm/yyyy')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{_('dd/mm/yyyy')}" />
|
|
|
|
</div>
|
|
|
|
<span id="dateformat" class="sr-only">{_('(dd/mm/yyyy)')}</span>
|
2014-12-22 09:53:18 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-30 01:41:25 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="newmoment" class="col-md-4">{_('Time')}</label>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<input type="text" id="newmoment" name="newmoment" class="form-control" />
|
|
|
|
</div>
|
2014-12-22 09:53:18 +01:00
|
|
|
</div>
|
2014-12-30 01:41:25 +01:00
|
|
|
{else}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="choice" class="col-md-4">{_('Choice')}</label>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<input type="text" id="choice" name="choice" class="form-control" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2014-12-22 14:18:33 +01:00
|
|
|
<div class="form-group">
|
2014-12-22 09:53:18 +01:00
|
|
|
<button class="btn btn-default" type="submit" name="back">{_('Back to the poll')}</button>
|
|
|
|
<button type="submit" name="confirm_add_slot" class="btn btn-success">{_('Add a column')}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-03-05 14:53:42 +01:00
|
|
|
<script type="text/javascript" src="js/app/framadatepicker.js"></script>
|
2014-12-22 09:53:18 +01:00
|
|
|
{/block}
|