{"id":6,"date":"2025-10-07T14:15:32","date_gmt":"2025-10-07T12:15:32","guid":{"rendered":"https:\/\/helpdesk.phwien.ac.at\/?page_id=6"},"modified":"2025-10-08T15:54:11","modified_gmt":"2025-10-08T13:54:11","slug":"6-2","status":"publish","type":"page","link":"https:\/\/helpdesk.phwien.ac.at\/?page_id=6","title":{"rendered":""},"content":{"rendered":"    <style>\r\n      #customForm { width: 75vw; max-width: 1200px; min-width: 320px; margin: 0; }\r\n      #customForm table { width: 100%; margin: 0; max-width: none; }\r\n      #customForm td { padding: 10px; }\r\n      #customForm input[type=\"text\"],\r\n      #customForm input[type=\"email\"],\r\n      #customForm input[type=\"submit\"],\r\n      #customForm textarea { width: 100%; box-sizing: border-box; }\r\n      #customForm input[type=\"submit\"] { width: auto; float: right; }\r\n\r\n      .attachments{display:flex;flex-wrap:wrap;gap:.5rem}\r\n      .attachment-chip{display:inline-flex;align-items:center;gap:.5rem;border:1px solid #ccd0d4;padding:.25rem .6rem;border-radius:999px;background:#f6f7f7}\r\n      .attachment-chip button{border:0;background:transparent;cursor:pointer;font-size:1rem;line-height:1}\r\n    <\/style>\r\n\r\n    <form id=\"customForm\" method=\"post\" action=\"https:\/\/helpdesk.phwien.ac.at\/wp-admin\/admin-post.php\" onsubmit=\"return validateForm()\">\r\n      <input type=\"hidden\" name=\"action\" value=\"submit_custom_form\">\r\n      <table>\r\n        <tr>\r\n          <td><label for=\"name\">Name:<\/label><\/td>\r\n          <td><input type=\"text\" id=\"name\" name=\"name\"><\/td>\r\n        <\/tr>\r\n        <tr>\r\n          <td><label for=\"email\">E-Mail:<\/label><\/td>\r\n          <td><input type=\"email\" id=\"email\" name=\"email\"><\/td>\r\n        <\/tr>\r\n        <tr>\r\n          <td><label for=\"betreff\">Betreff:<\/label><\/td>\r\n          <td><input type=\"text\" id=\"betreff\" name=\"betreff\"><\/td>\r\n        <\/tr>\r\n        <tr>\r\n          <td><label for=\"message\">Nachricht:<\/label><\/td>\r\n          <td><textarea id=\"message\" name=\"message\" maxlength=\"500\" placeholder=\"Hier ist ihr Text\"><\/textarea><\/td>\r\n        <\/tr>\r\n        <tr>\r\n          <td><label>Anh\u00e4nge:<\/label><\/td>\r\n          <td><div id=\"attachmentList\" class=\"attachments\"><\/div><\/td>\r\n        <\/tr>\r\n        <tr>\r\n          <td colspan=\"2\"><input type=\"submit\" value=\"Absenden\"><\/td>\r\n        <\/tr>\r\n      <\/table>\r\n    <\/form>\r\n\r\n    <script>\r\n    function validateForm() {\r\n      var name = document.getElementById('name').value.trim();\r\n      var email = document.getElementById('email').value.trim();\r\n      var betreff = document.getElementById('betreff').value.trim();\r\n      var message = '';\r\n      if (typeof tinymce !== \"undefined\" && tinymce.get('message')) {\r\n        message = tinymce.get('message').getContent({format: 'text'}).trim();\r\n      } else {\r\n        message = document.getElementById('message').value.trim();\r\n      }\r\n\r\n      if (!name) { alert('Bitte geben Sie Ihren Namen ein.'); document.getElementById('name').focus(); return false; }\r\n      if (!email) { alert('Bitte geben Sie Ihre E-Mail-Adresse ein.'); document.getElementById('email').focus(); return false; }\r\n      if (!betreff) { alert('Bitte geben Sie einen Betreff ein.'); document.getElementById('betreff').focus(); return false; }\r\n      if (!message) {\r\n        alert('Bitte geben Sie eine Nachricht ein.');\r\n        if (typeof tinymce !== \"undefined\" && tinymce.get('message')) { tinymce.get('message').focus(); } else { document.getElementById('message').focus(); }\r\n        return false;\r\n      }\r\n      if (message.length > 1000) { \/\/ Hinweis: <textarea> hat 500 \u2013 ggf. angleichen\r\n        alert('Die Nachricht darf maximal 1000 Zeichen enthalten.');\r\n        return false;\r\n      }\r\n      return true;\r\n    }\r\n    <\/script>\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/pages\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":12,"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/helpdesk.phwien.ac.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}