1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Add notice to Page delete confirmation when in use as a template

This commit is contained in:
Lennert Daniels
2022-12-02 18:43:51 +01:00
parent 99ae759eff
commit ec3b06d83f
3 changed files with 7 additions and 0 deletions

View File

@ -192,6 +192,7 @@ return [
'pages_delete_draft' => 'Delete Draft Page',
'pages_delete_success' => 'Page deleted',
'pages_delete_draft_success' => 'Draft page deleted',
'pages_delete_warning_template' => '{0}|{1}Be careful: this page is used as a template for :count book.|[2,*]Be careful: this page is used as a template for :count books.',
'pages_delete_confirm' => 'Are you sure you want to delete this page?',
'pages_delete_draft_confirm' => 'Are you sure you want to delete this draft page?',
'pages_editing_named' => 'Editing Page :pageName',

View File

@ -19,6 +19,9 @@
<div class="card content-wrap auto-height">
<h1 class="list-heading">{{ $page->draft ? trans('entities.pages_delete_draft') : trans('entities.pages_delete') }}</h1>
@if ($times_used_as_template > 0)
<p>{{ trans_choice('entities.pages_delete_warning_template', $times_used_as_template) }}</p>
@endif
<div class="grid half v-center">
<div>