{"id":1750,"date":"2026-03-21T21:09:37","date_gmt":"2026-03-21T19:09:37","guid":{"rendered":""},"modified":"2026-03-23T09:17:46","modified_gmt":"2026-03-23T07:17:46","slug":"parent-access-request","status":"publish","type":"page","link":"https:\/\/3gym-amarous.insifnos.gr\/?page_id=1750","title":{"rendered":"\u0391\u03af\u03c4\u03b7\u03bc\u03b1 \u03a0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7\u03c2 \u0393\u03bf\u03bd\u03ad\u03b1"},"content":{"rendered":"\n    <div class=\"sas-form-wrap\">\n        <form method=\"post\" id=\"sas-parent-access-form\" class=\"sas-form\">\n            <input type=\"hidden\" id=\"sas_parent_request_nonce\" name=\"sas_parent_request_nonce\" value=\"8eee378cc4\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1750\" \/>            <input type=\"hidden\" name=\"sas_parent_request_submit\" value=\"1\">\n            <input type=\"hidden\" name=\"sas_parent_request_source_page_id\" value=\"0\">\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u038c\u03bd\u03bf\u03bc\u03b1 *<\/label>\n                <input type=\"text\" name=\"parent_first_name\" placeholder=\"\u03a4\u03bf \u03cc\u03bd\u03bf\u03bc\u03ac \u03c3\u03b1\u03c2\" required>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u0395\u03c0\u03ce\u03bd\u03c5\u03bc\u03bf *<\/label>\n                <input type=\"text\" name=\"parent_last_name\" placeholder=\"\u03a4\u03bf \u03b5\u03c0\u03ce\u03bd\u03c5\u03bc\u03cc \u03c3\u03b1\u03c2\"required>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">Email *<\/label>\n                <input type=\"email\" name=\"parent_email\" placeholder=\"mail@domain\" required>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u039a\u03b9\u03bd\u03b7\u03c4\u03cc \u03c4\u03b7\u03bb\u03ad\u03c6\u03c9\u03bd\u03bf *<\/label>\n                <input type=\"tel\" name=\"parent_phone\" placeholder=\"69XXXXXXXX\" required>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u0394\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 \u03ba\u03b1\u03c4\u03bf\u03b9\u03ba\u03af\u03b1\u03c2 *<\/label>\n                <input type=\"text\" name=\"parent_address\" placeholder=\"\u039f\u03b4\u03cc\u03c2, \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc\u03c2, \u03a4\u039a, \u03c0\u03cc\u03bb\u03b7\" required>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u039c\u03b1\u03b8\u03b7\u03c4\u03ad\u03c2 *<\/label>\n                <span class=\"sas-form-help\">\u03a3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03c4\u03bf \u03cc\u03bd\u03bf\u03bc\u03b1, \u03c4\u03bf \u03b5\u03c0\u03ce\u03bd\u03c5\u03bc\u03bf \u03ba\u03b1\u03b9 \u03c4\u03bf\u03bd \u03c4\u03b5\u03c4\u03c1\u03b1\u03c8\u03ae\u03c6\u03b9\u03bf \u0391\u03c1\u03b9\u03b8\u03bc\u03cc \u039c\u03b7\u03c4\u03c1\u03ce\u03bf\u03c5 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae. \u0397 \u03b1\u03af\u03c4\u03b7\u03c3\u03b7 \u03b5\u03bb\u03ad\u03b3\u03c7\u03b5\u03c4\u03b1\u03b9 \u03b1\u03c0\u03cc \u03c4\u03bf \u03c3\u03c7\u03bf\u03bb\u03b5\u03af\u03bf.<\/span>\n\n                <div id=\"sas-students-wrapper\" class=\"sas-students-wrapper\">\n                    <div class=\"sas-student-row\">\n                        <div class=\"sas-student-row-header\">\n                            <p class=\"sas-student-row-title\">\u039c\u03b1\u03b8\u03b7\u03c4\u03ae\u03c2 1<\/p>\n                        <\/div>\n\n                        <div class=\"sas-student-grid\">\n                            <div class=\"sas-form-group\">\n                                <label class=\"sas-form-label\">\u038c\u03bd\u03bf\u03bc\u03b1 *<\/label>\n                                <input type=\"text\" name=\"student_first_name[]\" required>\n                            <\/div>\n\n                            <div class=\"sas-form-group\">\n                                <label class=\"sas-form-label\">\u0395\u03c0\u03ce\u03bd\u03c5\u03bc\u03bf *<\/label>\n                                <input type=\"text\" name=\"student_last_name[]\" required>\n                            <\/div>\n                            <div class=\"sas-form-group\">\n                                <label class=\"sas-form-label\">\u0391\u03c1\u03b9\u03b8\u03bc\u03cc\u03c2 \u039c\u03b7\u03c4\u03c1\u03ce\u03bf\u03c5 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae *<\/label>\n                                <input type=\"text\" name=\"student_id[]\" inputmode=\"numeric\" pattern=\"[0-9]{4}\" maxlength=\"4\" autocomplete=\"off\" required>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <button type=\"button\" id=\"sas-add-student-row\" class=\"sas-btn sas-btn-secondary\">+ \u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae<\/button>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <label class=\"sas-form-label\">\u03a3\u03b7\u03bc\u03b5\u03b9\u03ce\u03c3\u03b5\u03b9\u03c2<\/label>\n                <textarea name=\"notes\" rows=\"3\"><\/textarea>\n            <\/div>\n\n            <div class=\"sas-form-group\">\n                <button type=\"submit\" class=\"sas-btn sas-btn-submit\">\u03a5\u03c0\u03bf\u03b2\u03bf\u03bb\u03ae \u03b1\u03af\u03c4\u03b7\u03c3\u03b7\u03c2<\/button>\n            <\/div>\n        <\/form>\n    <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function () {\n        const wrapper = document.getElementById('sas-students-wrapper');\n        const addBtn  = document.getElementById('sas-add-student-row');\n\n        if (!wrapper || !addBtn) {\n            return;\n        }\n\n        function renumberStudents() {\n            wrapper.querySelectorAll('.sas-student-row').forEach(function (row, index) {\n                const title = row.querySelector('.sas-student-row-title');\n                if (title) title.textContent = '\u039c\u03b1\u03b8\u03b7\u03c4\u03ae\u03c2 ' + (index + 1);\n\n                const remove = row.querySelector('.sas-remove-student-row');\n                if (remove) remove.setAttribute('aria-label', '\u0391\u03c6\u03b1\u03af\u03c1\u03b5\u03c3\u03b7 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae ' + (index + 1));\n            });\n        }\n\n        addBtn.addEventListener('click', function () {\n            const row = document.createElement('div');\n            row.className = 'sas-student-row';\n\n            row.innerHTML = `\n                <div class=\"sas-student-row-header\">\n                    <p class=\"sas-student-row-title\"><\/p>\n                    <button type=\"button\" class=\"sas-remove-student-row\">\u0391\u03c6\u03b1\u03af\u03c1\u03b5\u03c3\u03b7 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae<\/button>\n                <\/div>\n                <div class=\"sas-student-grid\">\n                    <div class=\"sas-form-group\">\n                        <label class=\"sas-form-label\">\u038c\u03bd\u03bf\u03bc\u03b1 *<\/label>\n                        <input type=\"text\" name=\"student_first_name[]\" required>\n                    <\/div>\n                    <div class=\"sas-form-group\">\n                        <label class=\"sas-form-label\">\u0395\u03c0\u03ce\u03bd\u03c5\u03bc\u03bf *<\/label>\n                        <input type=\"text\" name=\"student_last_name[]\" required>\n                    <\/div>\n                    <div class=\"sas-form-group\">\n                        <label class=\"sas-form-label\">\u0391\u03c1\u03b9\u03b8\u03bc\u03cc\u03c2 \u039c\u03b7\u03c4\u03c1\u03ce\u03bf\u03c5 \u03bc\u03b1\u03b8\u03b7\u03c4\u03ae *<\/label>\n                        <input type=\"text\" name=\"student_id[]\" inputmode=\"numeric\" pattern=\"[0-9]{4}\" maxlength=\"4\" autocomplete=\"off\" required>\n                    <\/div>\n                <\/div>\n            `;\n\n            wrapper.appendChild(row);\n            renumberStudents();\n        });\n\n        \/\/ Event delegation also handles cards added after initial page load.\n        wrapper.addEventListener('click', function (event) {\n            const button = event.target.closest('.sas-remove-student-row');\n            if (!button || !wrapper.contains(button)) return;\n\n            const row = button.closest('.sas-student-row');\n            const firstRow = wrapper.querySelector('.sas-student-row');\n            if (!row || row === firstRow) return; \/\/ At least one student is mandatory.\n\n            row.remove(); \/\/ Removed inputs are not submitted with the parent request.\n            renumberStudents();\n        });\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":{"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-1750","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/pages\/1750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1750"}],"version-history":[{"count":1,"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/pages\/1750\/revisions"}],"predecessor-version":[{"id":1988,"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=\/wp\/v2\/pages\/1750\/revisions\/1988"}],"wp:attachment":[{"href":"https:\/\/3gym-amarous.insifnos.gr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}