{"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\/pt\/oid\/","title":{"rendered":"Online info-desk"},"content":{"rendered":"    <div id=\"clf-form-container\" class=\"container\">\n        <h1 style=\"text-align: center; margin-top: 30px;\">Balc\u00e3o de apoio Manteigas digital<\/h1>\n        <h4 style=\"text-align: center;\" >Por favor, preencha este formul\u00e1rio se tem algum problema ou dificuldade relacionado com tecnologias.<\/h4>\n        <form id=\"clf-form\" method=\"post\" class=\"my-4 p-4 bg-light\">\n            <h2 class=\"text-lg font-bold mb-4\">INFORMA\u00c7\u00d5ES PESSOAIS<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"name\" class=\"form-label\">Nome<\/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\">E-mail<\/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\">Pa\u00eds<\/label>\n                <select name=\"country\" id=\"country\" required class=\"form-control\">\n                    <option value=\"\">Selecione o seu pa\u00eds<\/option>\n                    <option value=\"Italy\">It\u00e1lia<\/option>\n                    <option value=\"Austria\">A\u00fastria<\/option>\n                    <option value=\"Greece\">Gr\u00e9cia<\/option>\n                    <option value=\"Poland\">Pol\u00f3nia<\/option>\n                    <option value=\"Cyprus\">Chipre<\/option>\n                    <option value=\"Romania\">Rom\u00e9nia<\/option>\n                    <option value=\"Portugal\">Portugal<\/option>\n                    <option value=\"Belgium\">B\u00e9lgica<\/option>\n                    <option value=\"Other\">Outro<\/option>\n                    <!-- Dodaj inne kraje zgodnie z potrzebami -->\n                <\/select>\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"member\" class=\"form-label\">\u00c9s membro da nossa comunidade Our Digital Village?<\/label>\n                <select name=\"member\" id=\"member\" required class=\"form-control\">\n                    <option value=\"\">escolha<\/option>\n                    <option value=\"yes\">Sim<\/option>\n                    <option value=\"no\">No <\/option>\n                <\/select>\n            <\/div>\n            <div class=\"mb-3\">\n                <label for=\"community\" class=\"form-label\">Escolha a sua comunidade<\/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\">TIPO DE PROBLEMA OU DIFICULDADE<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"problem_detail\" class=\"form-label\">Descreva o seu problema ou a sua dificuldade em detalhe:<\/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\">COMENT\u00c1RIO ADICIONAL<\/h2>\n            <div class=\"mb-3\">\n                <label for=\"additional_support\" class=\"form-label\">Que apoio adicional lhe seria \u00fatil? (opcional)<\/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\">Se participou nos nossos cursos de TIC, tem algum coment\u00e1rio ou sugest\u00e3o adicional para nos ajudar a melhor\u00e1-los?<\/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                    Aceito a                    <a href=\"https:\/\/ourdigitalvillage.erasmus.site\/privacy-policy\/\" target=\"_blank\">Pol\u00edtica de Privacidade<\/a>\n                <\/label>\n            <\/div>\n            <div>\n                <input type=\"submit\" name=\"submit_form\" value=\"Envie a sua mensagem\" 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\">Obrigada!<\/h5>\n                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"><\/button>\n                <\/div>\n                <div class=\"modal-body\">\n                    Obrigado pelo seu contacto.A equipa Manteigas Digital vai analisar a informa\u00e7\u00e3o e responder\u00e1 em breve. Aguarde a nossa resposta por e-mail.                <\/div>\n                <div class=\"modal-footer\">\n                    <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Fechar<\/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: 'n\u00e3o aplic\u00e1vel'\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\">Por favor, aceite a Pol\u00edtica de Privacidade.<\/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\">Ocorreu um erro ao submeter o formul\u00e1rio.<\/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\/pt\/wp-json\/wp\/v2\/pages\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":4,"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/pages\/759\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/pages\/759\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/ourdigitalvillage.erasmus.site\/pt\/wp-json\/wp\/v2\/media?parent=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}