{"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>\n      #customForm { width: 75vw; max-width: 1200px; min-width: 320px; margin: 0; }\n      #customForm table { width: 100%; margin: 0; max-width: none; }\n      #customForm td { padding: 10px; }\n      #customForm input[type=\"text\"],\n      #customForm input[type=\"email\"],\n      #customForm input[type=\"submit\"],\n      #customForm textarea { width: 100%; box-sizing: border-box; }\n      #customForm input[type=\"submit\"] { width: auto; float: right; }\n\n      .attachments{display:flex;flex-wrap:wrap;gap:.5rem}\n      .attachment-chip{display:inline-flex;align-items:center;gap:.5rem;border:1px solid #ccd0d4;padding:.25rem .6rem;border-radius:999px;background:#f6f7f7}\n      .attachment-chip button{border:0;background:transparent;cursor:pointer;font-size:1rem;line-height:1}\n    <\/style>\n\n    <form id=\"customForm\" method=\"post\" action=\"https:\/\/helpdesk.phwien.ac.at\/wp-admin\/admin-post.php\" onsubmit=\"return validateForm()\">\n      <input type=\"hidden\" name=\"action\" value=\"submit_custom_form\">\n      <table>\n        <tr>\n          <td><label for=\"name\">Name:<\/label><\/td>\n          <td><input type=\"text\" id=\"name\" name=\"name\"><\/td>\n        <\/tr>\n        <tr>\n          <td><label for=\"email\">E-Mail:<\/label><\/td>\n          <td><input type=\"email\" id=\"email\" name=\"email\"><\/td>\n        <\/tr>\n        <tr>\n          <td><label for=\"betreff\">Betreff:<\/label><\/td>\n          <td><input type=\"text\" id=\"betreff\" name=\"betreff\"><\/td>\n        <\/tr>\n        <tr>\n          <td><label for=\"message\">Nachricht:<\/label><\/td>\n          <td><textarea id=\"message\" name=\"message\" maxlength=\"500\" placeholder=\"Hier ist ihr Text\"><\/textarea><\/td>\n        <\/tr>\n        <tr>\n          <td><label>Anh\u00e4nge:<\/label><\/td>\n          <td>\n            <input\n              type=\"file\"\n              id=\"attachmentInput\"\n              multiple\n              accept=\".jpg,.jpeg,.png,.gif,.webp,.svg,.pdf,.txt,.doc,.docx,.xls,.xlsx,.csv,.zip,.rar,.7z,.ppt,.pptx,.odt,.ods,.rtf,.mp4,.mp3,.wav\"\n            >\n            <div id=\"attachmentList\" class=\"attachments\"><\/div>\n          <\/td>\n        <\/tr>\n        <tr>\n          <td colspan=\"2\"><input type=\"submit\" value=\"Absenden\"><\/td>\n        <\/tr>\n      <\/table>\n    <\/form>\n\n    <script>\n    function validateForm() {\n      var name = document.getElementById('name').value.trim();\n      var email = document.getElementById('email').value.trim();\n      var betreff = document.getElementById('betreff').value.trim();\n      var message = '';\n      if (typeof tinymce !== \"undefined\" && tinymce.get('message')) {\n        message = tinymce.get('message').getContent({format: 'text'}).trim();\n      } else {\n        message = document.getElementById('message').value.trim();\n      }\n\n      if (!name) { alert('Bitte geben Sie Ihren Namen ein.'); document.getElementById('name').focus(); return false; }\n      if (!email) { alert('Bitte geben Sie Ihre E-Mail-Adresse ein.'); document.getElementById('email').focus(); return false; }\n      if (!betreff) { alert('Bitte geben Sie einen Betreff ein.'); document.getElementById('betreff').focus(); return false; }\n      if (!message) {\n        alert('Bitte geben Sie eine Nachricht ein.');\n        if (typeof tinymce !== \"undefined\" && tinymce.get('message')) { tinymce.get('message').focus(); } else { document.getElementById('message').focus(); }\n        return false;\n      }\n      if (message.length > 1000) { \/\/ Hinweis: <textarea> hat 500 \u2013 ggf. angleichen\n        alert('Die Nachricht darf maximal 1000 Zeichen enthalten.');\n        return false;\n      }\n      return true;\n    }\n    <\/script>\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}]}}