diff --git a/resources/js/components/terms/PublishForm.vue b/resources/js/components/terms/PublishForm.vue index 12523d8c9c..1412d46d17 100644 --- a/resources/js/components/terms/PublishForm.vue +++ b/resources/js/components/terms/PublishForm.vue @@ -13,6 +13,10 @@ + + + +
{{ __('Read Only') }}
@@ -277,6 +281,7 @@ export default { initialPermalink: String, revisionsEnabled: Boolean, preloadedAssets: Array, + canEditBlueprint: Boolean, createAnotherUrl: String, listingUrl: String, previewTargets: Array, diff --git a/resources/views/terms/edit.blade.php b/resources/views/terms/edit.blade.php index bbe0f56ba6..98e9c80e52 100644 --- a/resources/views/terms/edit.blade.php +++ b/resources/views/terms/edit.blade.php @@ -30,6 +30,7 @@ :initial-read-only="{{ $str::bool($readOnly) }}" :preloaded-assets="{{ json_encode($preloadedAssets) }}" :breadcrumbs="{{ $breadcrumbs->toJson() }}" + :can-edit-blueprint="{{ $str::bool($user->can('configure fields')) }}" create-another-url="{{ cp_route('taxonomies.terms.create', [$taxonomy, $locale]) }}" listing-url="{{ cp_route('taxonomies.show', $taxonomy) }}" :preview-targets="{{ json_encode($previewTargets) }}" diff --git a/src/Http/Controllers/CP/Taxonomies/TermsController.php b/src/Http/Controllers/CP/Taxonomies/TermsController.php index d1829d99fe..01fbefaadc 100644 --- a/src/Http/Controllers/CP/Taxonomies/TermsController.php +++ b/src/Http/Controllers/CP/Taxonomies/TermsController.php @@ -97,6 +97,7 @@ public function edit(Request $request, $taxonomy, $term) 'revisions' => $term->revisionsUrl(), 'restore' => $term->restoreRevisionUrl(), 'createRevision' => $term->createRevisionUrl(), + 'editBlueprint' => cp_route('taxonomies.blueprints.edit', [$taxonomy, $blueprint]), ], 'values' => array_merge($values, ['id' => $term->id()]), 'meta' => $meta,