Задача №7
This commit is contained in:
parent
f9c977177a
commit
29f836fcc8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user