Files
awo-hamburg-intranet/mysyde/intranet/admin/edit_role_cardform.inc.php

50 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2026-02-17 14:56:23 +01:00
<?php
$formname = "form_role_card";
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
$inputname = "input_id";
?>
<div id="overlaycrumb">
<?php if ($input_role["id"] == "") {
echo $translation->get("new_role");
} else {
echo $translation->get("edit_role");
}
?>
<div id="closeoverlay" onclick="disableOverlay();"></div>
</div>
<ul class="toolbar_menu">
<?= button("save", $translation->get("save"), $formname, "loadCard('save', true)"); ?>
<?= button("save", $translation->get("save_and_close"), $formname, "loadCard('save', true, '', true)"); ?>
<li>
<ul>
<?php
if ($input_role["id"] != "") {
echo button("delete", $translation->get("delete"), $formname, "loadCard('delete', true, '{$translation->get('delete_role_confirm')}', true)", "", FALSE);
}
?>
<?= button("reset", $translation->get("restore"), $formname, "?action=edit", "", FALSE); ?>
</ul>
</li>
</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_id" type="hidden" value="<?= $input_role["id"] ?>">
<table class="cardform" border="0" cellspacing="0" cellpadding="0">
<div>
<? input($translation->get("description"), "input_description", "text", $input_role["description"], 100) ?>
</div>
</table>
</form>