Задача №7

This commit is contained in:
Elena 2018-10-18 10:38:04 +04:00
parent f9c977177a
commit 29f836fcc8

View File

@ -111,8 +111,23 @@
</div>
</div>
</div>
<div class="form-group">
<label>Дата публикации:</label>
<div class='input-group date' id='datetimepickerPublish'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<label>Последнее изменение:</label>
<div class='input-group date' id='datetimepickerUpdateDates'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class="col-md-3 offset-md-3 col-sm-12 offset-sm-0">
<div class="form-group">
<button id="pingButton" class="btn btn-primary text-uppercase" type="button">
@ -161,6 +176,23 @@
});
/*]]>*/
</script>
<script type="text/javascript">
$(function () {
var current = moment();
$('#datetimepickerPublish').DateTimePicker({
locale: 'ru'
});
});
</script>
<script type="text/javascript">
$(function () {
var current = moment();
$('#datetimepickerUpdateDates').DateTimePicker({
locale: 'ru'
});
$('#datetimepickerUpdateDates').data("DateTimePicker").minDate(current).maxDate(current);
});
</script>
</div>
</body>