Skip to content

Commit

Permalink
Merge pull request #102 from frontChapter/develop
Browse files Browse the repository at this point in the history
feat: :sparkles add form builder
  • Loading branch information
lokiwich authored May 10, 2024
2 parents 8d722a4 + f93e306 commit 92dbc0b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 14 deletions.
39 changes: 36 additions & 3 deletions lang/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
"Forms": "فرم‌ها",
"browse your Entries": "ورودی های خود را مرور کنید",
"List All Forms": "لیست همه فرم‌ها",
"Logo": "لوگو",
"Logo": "نشان",
"Show Entry Details": "نمایش جزئیات ورودی",
"My Entries": "ورودی‌های من",
"Show entry": "نمایش ورودی",
Expand All @@ -1035,11 +1035,44 @@
"the form": "فرم",
"submitted successfully": "با موفقیت ثبت شد",
"one entry per user": "یک‌بار ارسال برای هر کاربر",
"one entry": "یک‌بار ارسال",
"allow only one entry per user": "فقط یک‌بار توسط هر کاربر قابل ارسال است",
"Login Required": "نیازمند ورود",
"Login is required to access the form": "ورود الزامیست برای دسترسی به فرم",
"": "",
"": "",
"Date Not Available": "در دسترس نیست",
"is not available for submission": "در حال حاظر در دسترس نیست",
"Start date": "تاریخ شروع",
"End date": "تاریخ پایان",
"Collections": "کالکشن‌ها",
"Collection": "کالکشن",
"Categories": "دسته‌بندی‌ها",
"Category": "دسته‌بندی",
"ordering": "اولویت بندی",
"Is Active": "فعال است",
"slug": "شناسه یکتا",
"logo": "نشان",
"Collections Name": "نام کالکشن",
"Collections Values": "مقادیر کالکشن",
"what the user will see": "چیزی که کاربر می‌بیند",
"what store in the form": "چیزی که در فرم ذخیره می‌شود",
"selected by default": "به صورت پیشفرض انتخاب شود",
"Form": "فرم",
"Title & Slug": "عنوان و شناسه",
"Text & Details": "توضیحات و جزئیات",
"Display & Access": "نمایش و دسترسی",
"Advanced": "پیشرفته",
"optional, organize your forms into categories": "اختیاری، فرم های خود را در دسته‌بندی‌های مختلف مرتب کنید",
"Form Slug": "شناسه یکتای فرم",
"Form Name": "نام فرم",
"Section Name": "نام قسمت",
"Section Fields": "فیلد‌های قسمت",
"Field Name": "نام فیلد",
"Field Type": "نوع فیلد",
"more section options": "گزینه‌های بیشتر",
"more field options": "گزینه‌های فیلد بیشتر",
"Fields options": "گزینه‌های فیلد",
"section options": "گزینه‌های بیشتر",
"Section Description": "توضیحات قسمت",
"": "",
"test": "test"
}
39 changes: 29 additions & 10 deletions resources/views/vendor/zeus/errors/date-not-available.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,44 @@
<h2>{{ __('Date Not Available') }}</h2>
</x-slot>

<div class="max-w-4xl mx-auto px-4">
<div class="max-w-4xl px-4 mx-auto">
<x-filament::section :compact="true">
<x-slot name="heading">
<div class="flex items-center justify-center gap-2">
@svg('heroicon-o-exclamation-triangle','w-5 h-5 text-primary-600')
@svg('heroicon-o-exclamation-triangle', 'w-5 h-5 text-primary-600')
<span class="text-md">
{{ __('Date Not Available') }}
</span>
</div>
</x-slot>
{{ __('the form is not available for submission') }}
<span class="font-semibold">{{ $zeusForm->name ?? '' }}</span>.
<p>
{{ __('the form') }}
<span class="font-semibold">{{ $zeusForm->name ?? '' }}</span>
{{ __('is not available for submission') }}.
</p>

<x-slot name="description">
<span class="text-sm text-gray-500">{{ __('Start date') }}</span>:
<span class="text-sm">{{ $zeusForm->start_date->format(\Filament\Infolists\Infolist::$defaultDateTimeDisplayFormat) }}</span>,
<span class="text-sm text-gray-500">{{ __('End date') }}</span>:
<span class="text-sm">{{ $zeusForm->end_date->format(\Filament\Infolists\Infolist::$defaultDateTimeDisplayFormat) }}</span>
</x-slot>
<div class="flex flex-wrap items-center justify-between mt-2">
<p class="flex-fill text-start lg:w-1/2">
<span class="text-sm text-gray-500">{{ __('Start date') }}</span>:
<span class="text-sm">
@if (app()->getLocale() === 'fa')
{{ $zeusForm->start_date->toJalali()->format('Y/m/d H:i:s') }}
@else
{{ $zeusForm->start_date->format(\Filament\Infolists\Infolist::$defaultDateTimeDisplayFormat) }}
@endif
</span>
</p>
<p class="flex-fill text-start lg:w-1/2">
<span class="text-sm text-gray-500">{{ __('End date') }}</span>:
<span class="text-sm">
@if (app()->getLocale() === 'fa')
{{ $zeusForm->end_date->toJalali()->format('Y/m/d H:i:s') }}
@else
{{ $zeusForm->end_date->format(\Filament\Infolists\Infolist::$defaultDateTimeDisplayFormat) }}
@endif
</span>
</p>
</div>
</x-filament::section>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</span>
</div>
</x-slot>
<div class="flex items-center justify-between">
<div class="flex flex-wrap items-center justify-between">
<p>
{{ __('Login is required to access the form') }}
<span class="font-semibold">{{ $zeusForm->name ?? '' }}</span>.
Expand Down

0 comments on commit 92dbc0b

Please sign in to comment.