date.chapril.org-framadate/tpl/add_column.tpl

53 lines
2.3 KiB
Smarty
Raw Normal View History

2014-12-22 09:53:18 +01:00
{extends file='page.tpl'}
2016-05-03 23:55:30 +02:00
{block name="header"}
<script type="text/javascript">
window.date_formats = {
DATE: '{__('Date', 'DATE')}',
DATEPICKER: '{__('Date', 'datepicker')}'
};
</script>
<script type="text/javascript" src="{'js/app/framadatepicker.js'|resource}"></script>
{/block}
2014-12-22 09:53:18 +01:00
{block name=main}
<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">
<h2>{__('adminstuds', 'Column\'s adding')}</h2>
2014-12-22 09:53:18 +01:00
{* Messages *}
{include 'part/messages.tpl'}
{if $format === 'D'}
<div class="form-group">
<label for="newdate" class="col-md-4">{__('Generic', '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="{__('Date', 'dd/mm/yyyy')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{__('Date', 'dd/mm/yyyy')}" />
</div>
<span id="dateformat" class="sr-only">({__('Date', 'dd/mm/yyyy')})</span>
2014-12-22 09:53:18 +01:00
</div>
</div>
<div class="form-group">
<label for="newmoment" class="col-md-4">{__('Generic', '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>
{else}
<div class="form-group">
<label for="choice" class="col-md-4">{__('Generic', 'Choice')}</label>
<div class="col-md-8">
<input type="text" id="choice" name="choice" class="form-control" />
</div>
</div>
{/if}
<div class="form-group">
<button class="btn btn-default" type="submit" name="back">{__('adminstuds', 'Back to the poll')}</button>
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>
{/block}