

{"id":29346,"date":"2024-06-07T17:54:21","date_gmt":"2024-06-07T15:54:21","guid":{"rendered":"https:\/\/druckereisaas.ch\/?page_id=29346"},"modified":"2024-10-18T10:04:34","modified_gmt":"2024-10-18T08:04:34","slug":"bewertungen","status":"publish","type":"page","link":"https:\/\/druckereisaas.ch\/fr\/bewertungen\/","title":{"rendered":"Bewertungen"},"content":{"rendered":"    <form id=\"review-form\">\n        <label for=\"review_rating\">Wie viele Sterne?<\/label><br>\n        <div class=\"star-rating\">\n                            <input type=\"radio\" id=\"star5\" name=\"review_rating\" value=\"5\" required>\n                <label for=\"star5\">&#9733;<\/label>\n                            <input type=\"radio\" id=\"star4\" name=\"review_rating\" value=\"4\" required>\n                <label for=\"star4\">&#9733;<\/label>\n                            <input type=\"radio\" id=\"star3\" name=\"review_rating\" value=\"3\" required>\n                <label for=\"star3\">&#9733;<\/label>\n                            <input type=\"radio\" id=\"star2\" name=\"review_rating\" value=\"2\" required>\n                <label for=\"star2\">&#9733;<\/label>\n                            <input type=\"radio\" id=\"star1\" name=\"review_rating\" value=\"1\" required>\n                <label for=\"star1\">&#9733;<\/label>\n                    <\/div><br><br>\n        <label for=\"review_content\">Deine Bewertung:<\/label><br>\n        <textarea name=\"review_content\" id=\"review_content\" required><\/textarea><br><br>\n\t<div class=\"bewertung-person\">\n\t\t<div>\n        \t<label for=\"review_author\">Dein Name:<\/label><br>\n        \t<input type=\"text\" name=\"review_author\" id=\"review_author\" required><br><br>\n\t\t<\/div>\n\t\t<div>\n        \t<label for=\"review_email\">Deine E-Mail: (nur intern)<\/label><br>\n        \t<input type=\"email\" name=\"review_email\" id=\"review_email\" required><br><br>\n\t\t<\/div>\n\t<\/div>\n        <input type=\"hidden\" name=\"review_title\" id=\"review_title\">\n        <input type=\"submit\" value=\"Bewertung absenden\">\n    <\/form>\n    <div id=\"form-message\"><\/div>\n    <style>\n        .star-rating {\n            direction: rtl;\n            display: inline-block;\n            padding: 0;\n        }\n        .star-rating input[type=\"radio\"] {\n            display: none;\n        }\n        .star-rating label {\n            font-size: 2em;\n            color: #ccc;\n            cursor: pointer;\n            display: inline-block;\n            padding: 0;\n        }\n        .star-rating input[type=\"radio\"]:checked ~ label {\n            color: #f5b301;\n        }\n        .star-rating label:hover,\n        .star-rating label:hover ~ label {\n            color: #f5b301;\n        }\n        #review-form.fade-out {\n            opacity: 0;\n            transition: opacity 1s ease-out;\n        }\n        #form-message {\n            display: none;\n        }\n\t.bewertung-person div {\n            display: inline-block;\t\t\n\t}\n\t.bewertung-person div input {\n            min-width: 250px;\t\t\n\t}\n\t.bewertung-person div:first-child {\t\n\t    margin-right: 15px;\n\t}\n\t#review_content {\n\t    min-height: 100px;\n\t}\n    <\/style>\n    <script>\n        jQuery(document).ready(function($) {\n            $('#review-form').on('submit', function(event) {\n                event.preventDefault();\n\n                \/\/ Setze den Titel basierend auf dem Namen\n                var author = $('#review_author').val();\n                $('#review_title').val('Bewertung von ' + author);\n\n                var formData = $(this).serialize();\n\n                $.ajax({\n                    type: 'POST',\n                    url: 'https:\/\/druckereisaas.ch\/wp-admin\/admin-ajax.php',\n                    data: formData + '&action=submit_review',\n                    success: function(response) {\n                        if (response.success) {\n                            $('#form-message').html('<p>' + response.data.message + '<\/p>').fadeIn();\n                            $('#review-form').fadeOut(function() {\n                                $(this).remove();\n                            });\n                        } else {\n                            $('#form-message').html('<p>' + response.data.message + '<\/p>').fadeIn();\n                        }\n                    }\n                });\n            });\n        });\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-29346","page","type-page","status-publish"],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"ad-min-mys","author_link":"https:\/\/druckereisaas.ch\/fr\/author\/ad-min-mys\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/pages\/29346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/comments?post=29346"}],"version-history":[{"count":4,"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/pages\/29346\/revisions"}],"predecessor-version":[{"id":30134,"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/pages\/29346\/revisions\/30134"}],"wp:attachment":[{"href":"https:\/\/druckereisaas.ch\/fr\/wp-json\/wp\/v2\/media?parent=29346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}