           if (!response.ok) {
                    throw new Error(`Error ${response.status}: ${await response.text()}`);
                }

                console.log("msg :", await response.text());
                location.reload();

            } catch (err) {
                alert("Save failed: " + err.message);
                btn.disabled = false;
                btn.textContent = originalText;
            }
        }
    </script>


</body>
