From ee6c077a715d86865b4af56b6c854e7e7211895a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Ku=C4=8Dera?= Date: Fri, 7 Jan 2022 11:12:53 +0000 Subject: [PATCH 1/5] Remove link & add vivit --- components/form-layout.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/components/form-layout.js b/components/form-layout.js index f74bdff..c24db3f 100644 --- a/components/form-layout.js +++ b/components/form-layout.js @@ -17,7 +17,7 @@ class Text { author, description, preayer, - link + vivit ) { this.day = day; // the name of day celebration this.date = date; // the simply date @@ -27,7 +27,7 @@ class Text { this.author = author; this.description = description; this.preayer = preayer; - this.link = link; // link for song (options) + this.vivit = vivit; this.slug = date; } } @@ -44,7 +44,7 @@ function saveData() { const author = document.getElementById("fauthor").value; const description = document.getElementById("fdescription").value; const preayer = document.getElementById("fpreayer").value; - const link = document.getElementById("flink").value; + const vivit = document.getElementById("fvivit").value; if ( day !== "" && @@ -54,7 +54,8 @@ function saveData() { reflexion !== "" && author !== "" && description !== "" && - preayer !== "" + preayer !== "" && + vivit !== "" ) { const text = new Text( day, @@ -65,7 +66,7 @@ function saveData() { author, description, preayer, - link + vivit ); console.log(date); downloadObjectAsJson(text, date); @@ -171,14 +172,13 @@ export default function FormLayout() { className="shadow appearance-none w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline resize-y border rounded-md" > -

Jiné

- - + +