84 lines
3.0 KiB
PHP
84 lines
3.0 KiB
PHP
<?
|
|
$formname = "form_collection_choose_cardform";
|
|
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
|
$inputname = "input_id";
|
|
|
|
// error_reporting(E_ALL);
|
|
// ini_set('display_errors', 1);
|
|
|
|
// var_dump($_POST["select_mandant"]);
|
|
// var_dump($_POST["select_department"]);
|
|
// var_dump($_POST["select_user"]);
|
|
?>
|
|
|
|
|
|
|
|
<div id="overlaycrumb">
|
|
<?php if ($input_category["id"] == "") {
|
|
echo $translation->get("Abteilung erstellen");
|
|
} else {
|
|
echo $translation->get("Abteilung Bearbeiten");
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<ul class="toolbar_menu">
|
|
<?php
|
|
// Zurueck zur uebersicht
|
|
button("left", $translation->get("back"), $formname, "loadCard('load_category', true)");
|
|
|
|
// Speichern buttons
|
|
button("save", $translation->get("save"), $formname, "loadCard('save_category', true)");
|
|
button("save", $translation->get("save_and_close"), $formname, "jQuery('#save_and_close', jQuery('#" . $formname . "')).val(1);loadCard('save_category', true)");
|
|
|
|
if ($input_category["id"] != "") {
|
|
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete_category', true, '{$translation->get('delete_category_confirm')}')");
|
|
}
|
|
?>
|
|
</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_category_id" type="hidden" value="<?= $input_category["id"] ?>" />
|
|
<input name="input_id" type="hidden" value="<?= $_REQUEST['input_id'] ?>">
|
|
<input name="save_and_close" id="save_and_close" type="hidden" value="0" />
|
|
|
|
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td>
|
|
<? input($translation->get("title"), "input_description", "text", $input_category["description"]) ?>
|
|
<? input($translation->get("description"), "input_text", "smalltextarea", $input_category["text"], 1000) ?>
|
|
</td>
|
|
<td>
|
|
<!-- <? input($translation->get("code"), "input_code", "text", "") ?> -->
|
|
<input name="input_code" type="hidden" value="">
|
|
<? selectProcess($input_category['id']) ?>
|
|
<? selectMandant($input_category['id']) ?>
|
|
<? selectDepartment($input_category['id']) ?>
|
|
<? selectContact($input_category['id']) ?>
|
|
|
|
<? input("Eskalation in Tagen", "input_escalation_state", "number", $input_category["escalation_state"]) ?>
|
|
<? input("Gerätecenter", "input_service_center", "checkbox", $input_category["service_center"] == 1 ? "on" : "off") ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
<script>
|
|
// $('#input_mandant_id').select2();
|
|
// $('#input_contact_id').select2();
|
|
</script>
|
|
|
|
<style>
|
|
.mandants.ui.fluid.dropdown, .departments.ui.fluid.dropdown, .contacts.ui.fluid.dropdown {
|
|
width: 100%;
|
|
}
|
|
</style>
|