fix: patient form/view field order, sync nav visibility, and backup 504
This commit is contained in:
parent
d19191a320
commit
4a85e07804
|
|
@ -213,6 +213,10 @@ public static function form(Schema $schema): Schema
|
|||
])
|
||||
->maxLength(50),
|
||||
|
||||
TextInput::make('home_phone')
|
||||
->label(__('patients.fields.home_phone'))
|
||||
->maxLength(50),
|
||||
|
||||
TextInput::make('age')
|
||||
->label(__('patients.fields.age'))
|
||||
->numeric()
|
||||
|
|
@ -248,10 +252,6 @@ public static function form(Schema $schema): Schema
|
|||
->label(__('patients.fields.job'))
|
||||
->maxLength(50),
|
||||
|
||||
TextInput::make('home_phone')
|
||||
->label(__('patients.fields.home_phone'))
|
||||
->maxLength(50),
|
||||
|
||||
TextInput::make('work_phone')
|
||||
->label(__('patients.fields.work_phone'))
|
||||
->maxLength(50),
|
||||
|
|
@ -543,6 +543,9 @@ public static function infolist(Schema $schema): Schema
|
|||
TextEntry::make('hand_phone')
|
||||
->label(__('patients.fields.hand_phone'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('home_phone')
|
||||
->label(__('patients.fields.home_phone'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('age')
|
||||
->label(__('patients.fields.age'))
|
||||
->placeholder('-'),
|
||||
|
|
@ -571,9 +574,6 @@ public static function infolist(Schema $schema): Schema
|
|||
TextEntry::make('job')
|
||||
->label(__('patients.fields.job'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('home_phone')
|
||||
->label(__('patients.fields.home_phone'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('work_phone')
|
||||
->label(__('patients.fields.work_phone'))
|
||||
->placeholder('-'),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<div
|
||||
class="flex items-center gap-1"
|
||||
@can('View:SyncPage')
|
||||
x-init="if (['/admin', '/admin/'].includes(window.location.pathname)) $wire.checkPeerStatus()"
|
||||
@endcan
|
||||
>
|
||||
|
||||
@can('View:SyncPage')
|
||||
|
|
@ -27,7 +29,6 @@ class="flex items-center justify-center w-9 h-9 rounded-lg text-gray-500 hover:t
|
|||
</span>
|
||||
</button>
|
||||
|
||||
@can('View:SyncPage')
|
||||
<div
|
||||
class="relative"
|
||||
x-data="{
|
||||
|
|
@ -110,6 +111,7 @@ class="flex items-center justify-center w-9 h-9 rounded-lg text-gray-500 hover:t
|
|||
class="absolute inset-s-0 mt-1 w-52 rounded-xl bg-white dark:bg-gray-800 shadow-lg ring-1 ring-gray-200 dark:ring-gray-700 z-50 py-1"
|
||||
style="display:none"
|
||||
>
|
||||
@can('View:SyncPage')
|
||||
<button
|
||||
type="button"
|
||||
@click="confirmSync()"
|
||||
|
|
@ -127,6 +129,7 @@ class="flex items-center gap-3 px-4 py-2.5 text-sm text-gray-700 dark:text-gray-
|
|||
<x-heroicon-o-document-magnifying-glass class="w-4 h-4 text-info-500 shrink-0" />
|
||||
{{ __('navigation.sync.details') }}
|
||||
</a>
|
||||
@endcan
|
||||
|
||||
<a
|
||||
href="{{ route('backup.download') }}"
|
||||
|
|
@ -138,6 +141,7 @@ class="flex items-center gap-3 px-4 py-2.5 text-sm text-gray-700 dark:text-gray-
|
|||
</a>
|
||||
</div>
|
||||
|
||||
@can('View:SyncPage')
|
||||
<template x-teleport="body">
|
||||
<div
|
||||
x-show="showConfirm"
|
||||
|
|
@ -236,8 +240,8 @@ class="px-4 py-2 text-sm font-medium text-white rounded-lg transition"
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
@endcan
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -43,7 +43,10 @@
|
|||
set_time_limit(0);
|
||||
ini_set('memory_limit', '256M');
|
||||
|
||||
$dbPath = database_path('database.sqlite');
|
||||
$dbRaw = config('database.connections.sqlite.database', 'database/database.sqlite');
|
||||
$dbPath = str_starts_with($dbRaw, '/') || preg_match('/^[A-Za-z]:/', $dbRaw)
|
||||
? $dbRaw
|
||||
: base_path($dbRaw);
|
||||
if (! file_exists($dbPath)) {
|
||||
abort(404, 'Database not found.');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,6 +65,16 @@ http {
|
|||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location = /backup/download {
|
||||
fastcgi_pass php_fpm;
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
include fastcgi_params;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_buffering off;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php_fpm;
|
||||
fastcgi_index index.php;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,16 @@ http {
|
|||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location = /backup/download {
|
||||
fastcgi_pass php_fpm;
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
include fastcgi_params;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_buffering off;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php_fpm;
|
||||
fastcgi_index index.php;
|
||||
|
|
|
|||
Loading…
Reference in New Issue