From c659c99beee66c36f725d10404d1c7b6a7fe59f4 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 13 Feb 2023 19:29:53 +0100 Subject: [PATCH] Boolean field added --- app/Nova/BitcoinEvent.php | 3 ++- app/Nova/LibraryItem.php | 5 +++++ resources/lang/de.json | 6 ++++-- resources/lang/en.json | 5 ++++- resources/lang/es.json | 5 ++++- resources/lang/fr.json | 5 ++++- resources/lang/hr.json | 5 ++++- resources/lang/it.json | 5 ++++- resources/lang/mk.json | 5 ++++- resources/lang/pl.json | 5 ++++- resources/lang/pt.json | 5 ++++- resources/lang/sv.json | 5 ++++- resources/lang/tr.json | 5 ++++- 13 files changed, 51 insertions(+), 13 deletions(-) diff --git a/app/Nova/BitcoinEvent.php b/app/Nova/BitcoinEvent.php index bfe985f8..41c40a61 100644 --- a/app/Nova/BitcoinEvent.php +++ b/app/Nova/BitcoinEvent.php @@ -91,7 +91,8 @@ class BitcoinEvent extends Resource ->hideFromIndex(), Text::make('Link') - ->rules('required', 'string'), + ->rules('required', 'string') + ->hideFromIndex(), BelongsTo::make(__('Venue'), 'venue', Venue::class) ->searchable() diff --git a/app/Nova/LibraryItem.php b/app/Nova/LibraryItem.php index 5d572756..ebc3ae08 100644 --- a/app/Nova/LibraryItem.php +++ b/app/Nova/LibraryItem.php @@ -13,6 +13,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Laravel\Nova\Fields\BelongsTo; use Laravel\Nova\Fields\BelongsToMany; +use Laravel\Nova\Fields\Boolean; use Laravel\Nova\Fields\Code; use Laravel\Nova\Fields\ID; use Laravel\Nova\Fields\Number; @@ -161,6 +162,10 @@ class LibraryItem extends Resource ) ->rules('required', 'string'), + Boolean::make(__('News Article'), 'news')->help(__('Is this a news article?')), + + Boolean::make(__('Approve'), 'approved')->help(__('Article approved')), + Code::make(__('Value'), 'value') ->rules('nullable', 'string') ->help('Please paste the URL to the video here, or the link to the blog article, or the link to the book, or the Markdown itself.'), diff --git a/resources/lang/de.json b/resources/lang/de.json index c5c87097..2b1729b7 100644 --- a/resources/lang/de.json +++ b/resources/lang/de.json @@ -760,8 +760,10 @@ "Tweet": "Tweet", "Are you sure you want to tweet this article?": "Bitte bestätige, dass du diesen Artikel tweeten möchtest.", "Markdown Article Extern": "selbst erstellter Markdown Artikel", - "twitter_username": "", "Please classify by type of your entry.": "Bitte klassifiziere deinen Eintrag nach Art.", "Choose language": "Wähle Sprache", - "File": "Datei" + "File": "Datei", + "Article already tweeted": "Artikel bereits getwittert", + "Is this a news article?": "Dieser Artikel ist ein News-Artikel", + "Are your sure?": "Bist du dir sicher?" } diff --git a/resources/lang/en.json b/resources/lang/en.json index 65c685f9..a9123681 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -759,5 +759,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/es.json b/resources/lang/es.json index 9649df8c..bae369c1 100644 --- a/resources/lang/es.json +++ b/resources/lang/es.json @@ -759,5 +759,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 5484c675..c194c04c 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/hr.json b/resources/lang/hr.json index a3be9078..2d61ada1 100644 --- a/resources/lang/hr.json +++ b/resources/lang/hr.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/it.json b/resources/lang/it.json index 86d579bf..939faafb 100644 --- a/resources/lang/it.json +++ b/resources/lang/it.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/mk.json b/resources/lang/mk.json index 8aa193d3..76414d0e 100644 --- a/resources/lang/mk.json +++ b/resources/lang/mk.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/pl.json b/resources/lang/pl.json index bef8efc6..5728ba4f 100644 --- a/resources/lang/pl.json +++ b/resources/lang/pl.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/pt.json b/resources/lang/pt.json index 4389b2f4..7766aac1 100644 --- a/resources/lang/pt.json +++ b/resources/lang/pt.json @@ -760,5 +760,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/sv.json b/resources/lang/sv.json index 2d9c4dde..762a5448 100644 --- a/resources/lang/sv.json +++ b/resources/lang/sv.json @@ -722,5 +722,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file diff --git a/resources/lang/tr.json b/resources/lang/tr.json index 566b72fd..7c726117 100644 --- a/resources/lang/tr.json +++ b/resources/lang/tr.json @@ -734,5 +734,8 @@ "twitter_username": "", "Please classify by type of your entry.": "", "Choose language": "", - "File": "" + "File": "", + "Article already tweeted": "", + "Is this a news article?": "", + "Are your sure?": "" } \ No newline at end of file