diff --git a/app/View/Components/Form/Alpine/Title.php b/app/View/Components/Form/Alpine/Title.php new file mode 100644 index 0000000000..a99f91987b --- /dev/null +++ b/app/View/Components/Form/Alpine/Title.php @@ -0,0 +1,27 @@ +value= $value; + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View|Closure|string + { + return view('components.form.alpine.title'); + } +} diff --git a/config/translations.php b/config/translations.php index 1e3e886137..c385b365c6 100644 --- a/config/translations.php +++ b/config/translations.php @@ -61,6 +61,7 @@ return [ 'interest_calc_yearly', 'loading', 'exchange_rates_from_to', + 'administrations_page_edit_sub_title_js', 'errors_upload', 'updated_journal_js', 'upload_too_large', diff --git a/resources/assets/v1/src/components/administrations/Edit.vue b/resources/assets/v1/src/components/administrations/Edit.vue index 24890c96ea..eff0ff8656 100644 --- a/resources/assets/v1/src/components/administrations/Edit.vue +++ b/resources/assets/v1/src/components/administrations/Edit.vue @@ -19,71 +19,7 @@ --> - - - - - - - × - {{ $t("firefly.flash_error") }} {{ error_message }} - - - - - - - - × - {{ $t("firefly.flash_success") }} - - - - - - - - - - {{ $t('firefly.administrations_page_edit_sub_title_js', {title: this.pageTitle}) }} - - - - {{ $t('firefly.temp_administrations_introduction') }} - - - - - - - - - - {{ $t('firefly.administrations_page_edit_sub_title_js', {title: this.pageTitle}) }} - - - - - - - - - - - - diff --git a/resources/assets/v1/src/components/administrations/Index.vue b/resources/assets/v1/src/components/administrations/Index.vue index 2a394e47cd..acf3a6e98c 100644 --- a/resources/assets/v1/src/components/administrations/Index.vue +++ b/resources/assets/v1/src/components/administrations/Index.vue @@ -19,66 +19,7 @@ --> - - - - - - - {{ $t('firefly.administrations_index_menu') }} - - - - {{ $t('firefly.temp_administrations_introduction') }} - - - - - - - - - - {{ $t('firefly.table') }} - - - - - - - {{ $t('list.title') }} - {{ $t('list.primary_currency') }} - - - - - - - - - - () - - - - - {{ $t('firefly.actions') }} - - - {{ $t('firefly.edit') }} - - - - - - - - - - - + diff --git a/resources/assets/v1/src/components/form/Title.vue b/resources/assets/v1/src/components/form/Title.vue index e4c6b23874..661e65e98e 100644 --- a/resources/assets/v1/src/components/form/Title.vue +++ b/resources/assets/v1/src/components/form/Title.vue @@ -19,36 +19,7 @@ --> - - - {{ $t('form.title') }} - - - - - - - - - - {{ error }} - - - +