2014-12-22 09:53:18 +01:00
|
|
|
{extends file='page.tpl'}
|
|
|
|
|
2016-05-03 23:55:30 +02:00
|
|
|
{block name="header"}
|
2021-12-17 14:05:19 +01:00
|
|
|
<script>
|
2016-05-03 23:55:30 +02:00
|
|
|
window.date_formats = {
|
|
|
|
DATE: '{__('Date', 'DATE')}',
|
|
|
|
DATEPICKER: '{__('Date', 'datepicker')}'
|
|
|
|
};
|
|
|
|
</script>
|
2021-12-17 14:05:19 +01:00
|
|
|
<script src="{'js/app/framadatepicker.js'|resource}"></script>
|
2016-05-03 23:55:30 +02:00
|
|
|
{/block}
|
|
|
|
|
2014-12-22 09:53:18 +01:00
|
|
|
{block name=main}
|
2016-05-09 15:01:39 +02:00
|
|
|
|
2015-04-02 16:52:46 +02:00
|
|
|
<form action="{poll_url id=$admin_poll_id admin=true}" method="POST">
|
2014-12-22 09:53:18 +01:00
|
|
|
<div class="alert alert-info text-center">
|
2015-03-30 15:19:56 +02:00
|
|
|
<h2>{__('adminstuds', 'Column\'s adding')}</h2>
|
2014-12-22 09:53:18 +01:00
|
|
|
|
2016-05-09 15:01:39 +02:00
|
|
|
{* Messages *}
|
|
|
|
{include 'part/messages.tpl'}
|
|
|
|
|
2014-12-30 01:41:25 +01:00
|
|
|
{if $format === 'D'}
|
|
|
|
<div class="form-group">
|
2015-03-30 15:19:56 +02:00
|
|
|
<label for="newdate" class="col-md-4">{__('Generic', 'Day')}</label>
|
2014-12-30 01:41:25 +01:00
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="input-group date">
|
|
|
|
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
|
2015-03-30 15:19:56 +02:00
|
|
|
<input type="text" id="newdate" data-date-format="{__('Date', 'dd/mm/yyyy')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{__('Date', 'dd/mm/yyyy')}" />
|
2014-12-30 01:41:25 +01:00
|
|
|
</div>
|
2015-03-30 15:19:56 +02:00
|
|
|
<span id="dateformat" class="sr-only">({__('Date', '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">
|
2015-03-30 15:19:56 +02:00
|
|
|
<label for="newmoment" class="col-md-4">{__('Generic', 'Time')}</label>
|
2014-12-30 01:41:25 +01:00
|
|
|
<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">
|
2015-03-30 15:19:56 +02:00
|
|
|
<label for="choice" class="col-md-4">{__('Generic', 'Choice')}</label>
|
2014-12-30 01:41:25 +01:00
|
|
|
<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">
|
2016-12-06 15:58:05 +01:00
|
|
|
<a href="{poll_url id=$admin_poll_id admin=true}" class="btn btn-default" name="back">{__('adminstuds', 'Back to the poll')}</a>
|
2015-11-30 20:38:53 +01:00
|
|
|
<button type="submit" name="confirm_add_column" class="btn btn-success">{__('adminstuds', 'Add a column')}</button>
|
2014-12-22 09:53:18 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-12-17 14:05:19 +01:00
|
|
|
{/block}
|