{"id":759,"date":"2024-07-11T11:53:54","date_gmt":"2024-07-11T11:53:54","guid":{"rendered":"https:\/\/ourdigitalvillage.erasmus.site\/?page_id=759"},"modified":"2024-09-11T10:10:12","modified_gmt":"2024-09-11T08:10:12","slug":"oid","status":"publish","type":"page","link":"https:\/\/ourdigitalvillage.erasmus.site\/es\/oid\/","title":{"rendered":"Online info-desk"},"content":{"rendered":"    <div id=\"clf-form-container\" class=\"container\">\n        <h1 style=\"text-align: center; margin-top: 30px;\">Online info-desk<\/h1>\n        <h4 style=\"text-align: center;\" >Please fill out this survey if you have encountered any problems or concerns related to technology.<\/h4>\n        <form id=\"clf-form\" method=\"post\" class=\"my-4 p-4 bg-light\">\n            <h2 class=\"text-lg font-bold mb-4\">Personal Information<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"name\" class=\"form-label\">Name<\/label>\n                <input type=\"text\" name=\"name\" id=\"name\" required class=\"form-control\">\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"email\" class=\"form-label\">Email<\/label>\n                <input type=\"email\" name=\"email\" id=\"email\" required class=\"form-control\">\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"country\" class=\"form-label\">Country<\/label>\n                <select name=\"country\" id=\"country\" required class=\"form-control\">\n                    <option value=\"\">Select your country<\/option>\n                    <option value=\"Italy\">Italy<\/option>\n                    <option value=\"Austria\">Austria<\/option>\n                    <option value=\"Greece\">Greece<\/option>\n                    <option value=\"Poland\">Poland<\/option>\n                    <option value=\"Cyprus\">Cyprus<\/option>\n                    <option value=\"Romania\">Romania<\/option>\n                    <option value=\"Portugal\">Portugal<\/option>\n                    <option value=\"Belgium\">Belgium<\/option>\n                    <option value=\"Other\">Other<\/option>\n                    <!-- Dodaj inne kraje zgodnie z potrzebami -->\n                <\/select>\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"member\" class=\"form-label\">Are you a member of Our Digital Village community?<\/label>\n                <select name=\"member\" id=\"member\" required class=\"form-control\">\n                    <option value=\"\">Choose<\/option>\n                    <option value=\"yes\">Yes<\/option>\n                    <option value=\"no\">No<\/option>\n                <\/select>\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"community\" class=\"form-label\">Choose your community:<\/label>\n                <select name=\"community\" id=\"community\" class=\"form-control\">\n                    <!-- dodawane dynamicznie przez JavaScript -->\n                <\/select>\n            <\/div>\n            <h2 class=\"text-lg font-bold mb-4\">Nature of the Problem or Concern<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"problem_detail\" class=\"form-label\">Please describe the problem or concern in detail:<\/label>\n                <textarea name=\"problem_detail\" id=\"problem_detail\" required class=\"form-control\"><\/textarea>\n            <\/div>\n            <h2 class=\"text-lg font-bold mb-4\">Additional Feedback<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"additional_support\" class=\"form-label\">What additional support would be helpful for you? (optional)<\/label>\n                <textarea name=\"additional_support\" id=\"additional_support\" class=\"form-control\"><\/textarea>\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"additional_comments\" class=\"form-label\">If you have participated to our ICT courses, Do you have any additional comments or suggestions to help us improve them?<\/label>\n                <textarea name=\"additional_comments\" id=\"additional_comments\" required class=\"form-control\"><\/textarea>\n            <\/div>\n            <div class=\"mb-3\">\n    <label class=\"form-label\">Please rate the form:<\/label>\n    <div class=\"form-check\">\n        <input class=\"form-check-input\" type=\"radio\" name=\"rating\" id=\"rating1\" value=\"1\" required>\n        <label class=\"form-check-label\" for=\"rating1\">1<\/label>\n    <\/div>\n    <div class=\"form-check\">\n        <input class=\"form-check-input\" type=\"radio\" name=\"rating\" id=\"rating2\" value=\"2\">\n        <label class=\"form-check-label\" for=\"rating2\">2<\/label>\n    <\/div>\n    <div class=\"form-check\">\n        <input class=\"form-check-input\" type=\"radio\" name=\"rating\" id=\"rating3\" value=\"3\">\n        <label class=\"form-check-label\" for=\"rating3\">3<\/label>\n    <\/div>\n    <div class=\"form-check\">\n        <input class=\"form-check-input\" type=\"radio\" name=\"rating\" id=\"rating4\" value=\"4\">\n        <label class=\"form-check-label\" for=\"rating4\">4<\/label>\n    <\/div>\n    <div class=\"form-check\">\n        <input class=\"form-check-input\" type=\"radio\" name=\"rating\" id=\"rating5\" value=\"5\">\n        <label class=\"form-check-label\" for=\"rating5\">5<\/label>\n    <\/div>\n<\/div>\n            <div class=\"mb-3\">\n                <label class=\"form-check-label\" for=\"privacy_policy\">\n                    <input class=\"form-check-input\" type=\"checkbox\" name=\"privacy_policy\" id=\"privacy_policy\" required>\n                    I accept the                     <a href=\"https:\/\/ourdigitalvillage.erasmus.site\/privacy-policy\/\" target=\"_blank\">Privacy Policy<\/a>\n                <\/label>\n            <\/div>\n            <div>\n                <input type=\"submit\" name=\"submit_form\" value=\"Send your message\" class=\"btn btn-primary\">\n            <\/div>\n        <\/form>\n        <div id=\"clf-form-message\" class=\"mt-4\"><\/div>\n    <\/div>\n\n    <!-- Modal Bootstrap -->\n    <div class=\"modal fade\" id=\"clfFormModal\" tabindex=\"-1\" aria-labelledby=\"clfFormModalLabel\" aria-hidden=\"true\">\n        <div class=\"modal-dialog\">\n            <div class=\"modal-content\">\n                <div class=\"modal-header\">\n                    <h5 class=\"modal-title\" id=\"clfFormModalLabel\">Thank you!<\/h5>\n                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"><\/button>\n                <\/div>\n                <div class=\"modal-body\">\n                    Thank you for your feedback. A member of our team will review your concerns and respond promptly. Please await our email answer.                <\/div>\n                <div class=\"modal-footer\">\n                    <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close<\/button>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script type=\"text\/javascript\">\n    jQuery(document).ready(function($) {\n        var globalCommunities = [\n            'Municipality of Salemi and Gibellina',\n            'Municipality of Dionysos',\n            '1st General Lyceum of Glyka Nera',\n            '1st General Lyceum of Markopoulo',\n            'Senior High School of Kapandriti',\n            '8th High School of Acharnon',\n            '2nd Gymnasium in Malounta Grammar school',\n            'RARR',\n            'Zesp\u00f3\u0142 szk\u00f3\u0142 im. ks. dra Jana Zwierza w Ropczycach',\n            'Secondary School \"Dimitrie P\u0103curariu\" \u0218cheia',\n            'Commune Stulpicani',\n            'Secondary School Berchisesti',\n            'Oltea Doamna',\n            'Technological High School Dolhasca',\n            'Secondary School Gemenea',\n            'Manteigas Digital (Municipality, School Cluster, VET school, association AFACIDASE, Geopark)',\n        ];\n\n        function updateCommunitySelect() {\n            var $communitySelect = $('#community');\n            var isMember = $('#member').val() === 'yes';\n\n            $communitySelect.empty();\n\n            if (isMember) {\n                \/\/ Pokazujemy wszystkie wsp\u00f3lnoty\n                $.each(globalCommunities, function(index, community) {\n                    $communitySelect.append($('<option>', {\n                        value: community,\n                        text: community\n                    }));\n                });\n                $communitySelect.prop('disabled', false);\n            } else {\n                \/\/ Wy\u0142\u0105czamy list\u0119 i pokazujemy opcj\u0119 'not applicable'\n                $communitySelect.prop('disabled', true).append($('<option>', {\n                    value: 'not applicable',\n                    text: 'not applicable'\n                }));\n            }\n        }\n\n        $('#member').on('change', function() {\n            updateCommunitySelect();\n        });\n\n        $('#clf-form').on('submit', function(e) {\n            e.preventDefault();\n\n            if (!$('#privacy_policy').prop('checked')) {\n                $('#clf-form-message').html('<p class=\"text-danger\">Please accept the Privacy Policy.<\/p>');\n                return;\n            }\n\n            var formData = $(this).serialize();\n            \n            $.ajax({\n                type: 'POST',\n                url: 'https:\/\/ourdigitalvillage.erasmus.site\/wp-admin\/admin-ajax.php',\n                data: formData + '&action=clf_handle_form_submission',\n                success: function(response) {\n                    $('#clf-form-message').html(response);\n                    $('#clf-form')[0].reset();\n                },\n                error: function(xhr, status, error) {\n                    console.error(xhr.responseText);\n                    $('#clf-form-message').html('<p class=\"text-danger\">An error occurred while submitting the form.<\/p>');\n                }\n            });\n        });\n\n        \/\/ Inicjalna aktualizacja stanu wsp\u00f3lnot\n        updateCommunitySelect();\n    });\n<\/script>\n\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":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":100,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"on","footnotes":""},"class_list":["post-759","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/pages\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":4,"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/pages\/759\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/pages\/759\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/es\/wp-json\/wp\/v2\/media?parent=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}