nextcloud/apps/calendar/templates/part.editevent.php

43 lines
1.4 KiB
PHP
Raw Normal View History

<div id="editevent" title="<?php echo $l->t("Edit an event");?>">
2011-09-15 23:20:42 +04:00
<form id="event_form">
<input type="hidden" name="id" value="<?php echo $_['id'] ?>">
<?php echo $this->inc("part.eventform"); ?>
2011-09-15 23:20:42 +04:00
<div style="width: 100%;text-align: center;color: #FF1D1D;" id="errorbox"></div>
<span id="actions">
<input type="button" class="submit" style="float: left;" value="<?php echo $l->t("Submit");?>" onclick="validate_event_form('ajax/editevent.php');">
</span>
2011-09-15 23:20:42 +04:00
</form>
</div>
<script type="text/javascript">
$( "#editevent" ).dialog({
width : 500,
close : function() {
oc_cal_opendialog = 0;
var lastchild = document.getElementById("body-user").lastChild
while(lastchild.id != "lightbox"){
document.getElementById("body-user").removeChild(lastchild);
lastchild = document.getElementById("body-user").lastChild;
}
2011-09-15 23:20:42 +04:00
}
});
$( "#from" ).datepicker({
dateFormat : 'dd-mm-yy'
});
$( "#to" ).datepicker({
dateFormat : 'dd-mm-yy'
});
function lock_time() {
if(document.getElementById("totime").disabled == true) {
document.getElementById("fromtime").disabled = false;
document.getElementById("totime").disabled = false;
2011-09-15 23:20:42 +04:00
$("#fromtime").css('color', "#333");
$("#totime").css('color', "#333");
} else {
document.getElementById("fromtime").disabled = true;
document.getElementById("totime").disabled = true;
2011-09-15 23:20:42 +04:00
$("#fromtime").css('color', "#A9A9A9");
$("#totime").css('color', "#A9A9A9");
}
}
</script>