Skip to content

Commit

Permalink
update tomato-repeater to tomato-admin-repeater
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 4, 2023
1 parent 9950854 commit de8108e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions resources/views/settings/payments.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@endif
</div>
<div>
<x-tomato-repeater v-if="form.payment_online" :options="[
<x-tomato-admin-repeater v-if="form.payment_online" :options="[
'vendor', 'api_key', 'secret_key','email'
]" id="payment_vendors" option-label="name" name="payment_vendors" type="text" :label="trans('tomato-settings::global.payments.sections.gate.payment_vendors')">
<div class="flex flex-col space-y-4">
Expand All @@ -25,7 +25,7 @@
<x-splade-input name="secret_key" v-model="repeater.main[key].secret_key" id="secret_key" :placeholder="trans('tomato-settings::global.payments.sections.gate.secret_key')" required/>
<x-splade-input name="email" v-model="repeater.main[key].email" id="email" :placeholder="trans('tomato-settings::global.payments.sections.gate.email')"/>
</div>
</x-tomato-repeater>
</x-tomato-admin-repeater>
@if(config('tomato-settings.helpers'))
<div v-if="form.payment_online" class="p-1">
<small class="text-red-500"><code>setting('payment_vendors')</code></small>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/settings/services.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@endif
</div>
<div>
<x-tomato-repeater :options="[
<x-tomato-admin-repeater :options="[
'vendor',
'api_key',
'secret_key',
Expand All @@ -28,7 +28,7 @@
<x-splade-input name="secret_key" v-model="repeater.main[key].secret_key" id="secret_key" :placeholder="trans('tomato-settings::global.services.sections.sms.secret_key')" required/>
<x-splade-input name="email" v-model="repeater.main[key].email" id="email" :placeholder="trans('tomato-settings::global.services.sections.sms.email')" />
</div>
</x-tomato-repeater>
</x-tomato-admin-repeater>
@if(config('tomato-settings.helpers'))
<div v-if="form.sms_active" class="p-1">
<small class="text-red-500"><code>setting('sms_vendors')</code></small>
Expand Down Expand Up @@ -62,7 +62,7 @@
@endif
</div>
<div>
<x-tomato-repeater :options="[
<x-tomato-admin-repeater :options="[
'vendor',
'api_key',
'secret_key',
Expand All @@ -74,7 +74,7 @@
<x-splade-input name="secret_key" v-model="repeater.main[key].secret_key" id="secret_key" :placeholder="trans('tomato-settings::global.services.sections.shipping.secret_key')" required/>
<x-splade-input name="email" v-model="repeater.main[key].email" id="email" :placeholder="trans('tomato-settings::global.services.sections.shipping.email')"/>
</div>
</x-tomato-repeater>
</x-tomato-admin-repeater>
@if(config('tomato-settings.helpers'))
<div v-if="form.shipping_active" class="p-1">
<small class="text-red-500"><code>setting('shipping_vendors')</code></small>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/settings/site.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,24 @@
<x-tomato-settings-card :title="trans('tomato-settings::global.site.sections.interface.title')" :description="trans('tomato-settings::global.site.sections.interface.description')">
<x-splade-form method="post" action="{{route('admin.settings.site.store')}}" class="mt-6 space-y-6" :default="$settings">
<div>
<x-tomato-repeater :options="['network','url']" id="site_social" name="site_social" type="repeater" :label="trans('tomato-settings::global.site.sections.interface.site_social')" required>
<x-tomato-admin-repeater :options="['network','url']" id="site_social" name="site_social" type="repeater" :label="trans('tomato-settings::global.site.sections.interface.site_social')" required>
<x-splade-input class="my-2" v-model="repeater.main[key].network" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_social_network')" required />
<x-splade-input class="my-2" v-model="repeater.main[key].url" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_social_url')" required />
</x-tomato-repeater>
</x-tomato-admin-repeater>
@if(config('tomato-settings.helpers'))
<div class="p-1">
<small class="text-red-500"><code>setting('site_social')</code></small>
</div>
@endif
</div>
<div>
<x-tomato-repeater :options="['label','icon', 'url', 'route','target']" type="repeater" id="site_menu" name="site_menu" :label="trans('tomato-settings::global.site.sections.interface.site_menu')" required>
<x-tomato-admin-repeater :options="['label','icon', 'url', 'route','target']" type="repeater" id="site_menu" name="site_menu" :label="trans('tomato-settings::global.site.sections.interface.site_menu')" required>
<x-splade-input class="my-2" v-model="repeater.main[key].label" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_menu_label')" required />
<x-splade-input class="my-2" v-model="repeater.main[key].icon" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_menu_icon')" required />
<x-splade-input class="my-2" v-model="repeater.main[key].url" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_menu_url')" required />
<x-splade-input class="my-2" v-model="repeater.main[key].route" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_menu_route')" required />
<x-splade-input class="my-2" v-model="repeater.main[key].target" type="text" :placeholder="trans('tomato-settings::global.site.sections.interface.site_menu_target')" required />
</x-tomato-repeater>
</x-tomato-admin-repeater>
@if(config('tomato-settings.helpers'))
<div class="p-1">
<small class="text-red-500"><code>setting('site_menu')</code></small>
Expand Down

0 comments on commit de8108e

Please sign in to comment.