init
This commit is contained in:
53
module/infoboard/infoboard_cardform.inc.php
Normal file
53
module/infoboard/infoboard_cardform.inc.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?
|
||||
$formname = "form_infoboard_card";
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
?>
|
||||
|
||||
<div id="overlaycrumb">
|
||||
<?= $translation->get("new_infoboard_post"); ?>
|
||||
<div id="closeoverlay" onclick="disableOverlay();"></div>
|
||||
</div>
|
||||
|
||||
<ul class="toolbar_menu">
|
||||
<?= button("save", $translation->get("save_and_close"), $formname, "loadCard('save_infoboard_card', true, '', true)"); ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if ($messages !== null) {
|
||||
if (count($messages)) {
|
||||
echo '<div id="overlayMessages">' . join("\r\n", $messages) . '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input name="input_infoboard_id" type="hidden" value="<?= $input_infoboard["id"] ?>">
|
||||
<input name="input_main_layout_id" type="hidden" value="<?= $main_layout_id ?>">
|
||||
|
||||
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td >
|
||||
<? input($translation->get("start_date"), "input_start_date", "date", '') ?>
|
||||
</td>
|
||||
<td >
|
||||
<? input($translation->get("end_date"), "input_end_date", "date", '') ?>
|
||||
</td>
|
||||
<td class="w-100">
|
||||
<?php
|
||||
$categories = array("Abwesend", "Home Office", "Urlaub", "Berufsschule", "Anwesend");
|
||||
?>
|
||||
<?php input_select($translation->get("category"), "input_category", $values = array_keys($categories), $value_names = array_values($categories), $preselect, FALSE, FALSE); ?>
|
||||
</td>
|
||||
<td class="w-100">
|
||||
<div class="label"><?=$translation->get("choose_person") ?></div>
|
||||
<?= select_contact();?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$('.contact.ui.fluid.multiple.dropdown').dropdown('clear');
|
||||
</script>
|
||||
Reference in New Issue
Block a user