We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -210,10 +210,10 @@ |
||
| 210 | 210 | // add the details_row button to the first column |
| 211 | 211 | if ($this->getOperationSetting('detailsRow')) { |
| 212 | 212 | $details_row_button = \View::make('crud::columns.details_row_button') |
| 213 | - ->with('crud', $this) |
|
| 214 | - ->with('entry', $entry) |
|
| 215 | - ->with('row_number', $rowNumber) |
|
| 216 | - ->render(); |
|
| 213 | + ->with('crud', $this) |
|
| 214 | + ->with('entry', $entry) |
|
| 215 | + ->with('row_number', $rowNumber) |
|
| 216 | + ->render(); |
|
| 217 | 217 | $row_items[0] = $details_row_button.$row_items[0]; |
| 218 | 218 | } |
| 219 | 219 | |
@@ -22,36 +22,36 @@ |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - //for update form, get initial state of the entity |
|
| 26 | - if (isset($id) && $id) { |
|
| 25 | + //for update form, get initial state of the entity |
|
| 26 | + if (isset($id) && $id) { |
|
| 27 | 27 | |
| 28 | 28 | //get entity with relations for primary dependency |
| 29 | - $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
|
| 30 | - ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 31 | - ->find($id); |
|
| 29 | + $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
|
| 30 | + ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 31 | + ->find($id); |
|
| 32 | 32 | |
| 33 | - $secondaries_from_primary = []; |
|
| 33 | + $secondaries_from_primary = []; |
|
| 34 | 34 | |
| 35 | - //convert relation in array |
|
| 36 | - $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray(); |
|
| 35 | + //convert relation in array |
|
| 36 | + $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray(); |
|
| 37 | 37 | |
| 38 | - $secondary_ids = []; |
|
| 38 | + $secondary_ids = []; |
|
| 39 | 39 | |
| 40 | - //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist |
|
| 41 | - if (old($primary_dependency['name'])) { |
|
| 42 | - foreach (old($primary_dependency['name']) as $primary_item) { |
|
| 43 | - foreach ($dependencyArray[$primary_item] as $second_item) { |
|
| 44 | - $secondary_ids[$second_item] = $second_item; |
|
| 45 | - } |
|
| 46 | - } |
|
| 47 | - } else { //create dependecies from relation if not from validate error |
|
| 48 | - foreach ($primary_array as $primary_item) { |
|
| 49 | - foreach ($primary_item[$secondary_dependency['entity']] as $second_item) { |
|
| 50 | - $secondary_ids[$second_item['id']] = $second_item['id']; |
|
| 51 | - } |
|
| 52 | - } |
|
| 53 | - } |
|
| 54 | - } |
|
| 40 | + //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist |
|
| 41 | + if (old($primary_dependency['name'])) { |
|
| 42 | + foreach (old($primary_dependency['name']) as $primary_item) { |
|
| 43 | + foreach ($dependencyArray[$primary_item] as $second_item) { |
|
| 44 | + $secondary_ids[$second_item] = $second_item; |
|
| 45 | + } |
|
| 46 | + } |
|
| 47 | + } else { //create dependecies from relation if not from validate error |
|
| 48 | + foreach ($primary_array as $primary_item) { |
|
| 49 | + foreach ($primary_item[$secondary_dependency['entity']] as $second_item) { |
|
| 50 | + $secondary_ids[$second_item['id']] = $second_item['id']; |
|
| 51 | + } |
|
| 52 | + } |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | 56 | //json encode of dependency matrix |
| 57 | 57 | $dependencyJson = json_encode($dependencyArray); |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | |
| 128 | 128 | case 'boolean': |
| 129 | 129 | return 'boolean'; |
| 130 | - break; |
|
| 130 | + break; |
|
| 131 | 131 | |
| 132 | 132 | case 'tinyint': |
| 133 | 133 | return 'active'; |
@@ -13,101 +13,101 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | - return [ |
|
| 17 | - 'infoFiltered' => '(filtered from _MAX_ total entries)', |
|
| 18 | - 'thousands' => ',', |
|
| 19 | - 'admin' => 'المشرف', |
|
| 20 | - 'browse_uploads' => 'تصفح التحميلات', |
|
| 21 | - 'table_cant_add' => 'لا يمكن إضافة :entity جديد', |
|
| 22 | - 'clear' => 'نظف', |
|
| 23 | - 'save_action_changed_notification' => 'تم تغيير السلوك الافتراضي بعد الحفظ.', |
|
| 24 | - 'edit_translations' => 'تعديل الترجمة', |
|
| 25 | - 'internal_link_placeholder' => "Internal slug. Ex: 'admin/page' (no quotes) for ':url'", |
|
| 26 | - 'table_max_reached' => 'أقصى عدد :max تم الوصول إليه', |
|
| 27 | - 'zeroRecords' => 'لم يتم العثور على سجلات متطابقة', |
|
| 28 | - 'infoEmpty' => 'Showing 0 to 0 of 0 entries', |
|
| 29 | - 'info' => 'Showing _START_ to _END_ of _TOTAL_ entries', |
|
| 30 | - 'details_row' => 'هذا هو صف التفاصيل. عدل كما تريد.', |
|
| 31 | - 'reorder_text' => 'استخدام السحب والإفلات لإعادة الترتيب.', |
|
| 32 | - 'reorder_success_message' => 'تم حفظ ترتيبك.', |
|
| 33 | - 'reorder_error_message' => 'لم يتم حفظ ترتيبك.', |
|
| 34 | - 'lengthMenu' => '_MENU_ records per page', |
|
| 35 | - 'created_this' => 'أنشئت هذه', |
|
| 36 | - 'page_link_placeholder' => 'http://example.com/your-desired-page', |
|
| 37 | - 'actions' => 'أفعال', |
|
| 38 | - 'remove_filters' => 'إزالة الفلاتر', |
|
| 39 | - 'add_a_new' => 'إضافة جديد', |
|
| 40 | - 'reorder' => 'إعادة ترتيب', |
|
| 41 | - 'cancel' => 'إلغاء', |
|
| 42 | - 'choose_file' => 'اختر ملف', |
|
| 43 | - 'restore_this_value' => 'استعادة هذه القيمة', |
|
| 44 | - 'add' => 'اضافة', |
|
| 45 | - 'unauthorized_access' => 'الدخول غير مصرح به - ليس لديك الأذونات اللازمة للاطلاع على هذه الصفحة.', |
|
| 46 | - 'filters' => 'الفلاتر', |
|
| 47 | - 'to' => 'الى', |
|
| 48 | - 'reorder_success_title' => 'انتهى', |
|
| 49 | - 'search' => 'بحث:', |
|
| 50 | - 'toggle_filters' => 'تبديل الفلاتر', |
|
| 51 | - 'undo' => 'تراجع', |
|
| 52 | - 'edit' => 'تعديل', |
|
| 53 | - 'update_success' => 'تم تعديل العنصر بنجاح.', |
|
| 54 | - 'delete_confirmation_title' => 'تم حذف العنصر', |
|
| 55 | - 'delete_confirmation_message' => 'تم حذف العنصر بنجاح.', |
|
| 56 | - 'insert_success' => 'تمت إضافة العنصر بنجاح.', |
|
| 57 | - 'revision_restored' => 'تمت استعادة المراجعة بنجاح', |
|
| 58 | - 'clone' => 'استنساخ', |
|
| 59 | - 'clone_success' => '<strong>تم إستنساخ العنصر</strong><br>تم إضافة عنصر جديد بنفس معلومات هذا العنصر.', |
|
| 60 | - 'clone_failure' => '<strong>حدث خطأ</strong><br>لم يتم استنساخ العنصر. الرجاء اعادة المحاولة.', |
|
| 61 | - 'loadingRecords' => 'جار التحميل...', |
|
| 62 | - 'infoPostFix' => 'جميع السجلات', |
|
| 63 | - 'details_row_loading_error' => 'حدث خطأ أثناء تحميل التفاصيل. الرجاء اعادة المحاولة.', |
|
| 64 | - 'delete_confirmation_not_message' => 'حدث خطأ. ربما لم يتم حذف العنصر.', |
|
| 65 | - 'guest_user' => 'حساب زائر', |
|
| 66 | - 'save' => 'حفظ', |
|
| 67 | - 'save_action_save_and_edit' => 'حفظ هذا العنصر وتعديله', |
|
| 68 | - 'save_action_save_and_back' => 'حفظ و رجوع', |
|
| 69 | - 'save_action_save_and_new' => 'حفظ وعنصر جديد', |
|
| 70 | - 'reorder_error_title' => 'خطأ', |
|
| 71 | - 'page_link' => 'رابط الصفحة', |
|
| 72 | - 'external_link' => 'رابط خارجي', |
|
| 73 | - 'internal_link' => 'رابط داخلي', |
|
| 74 | - 'preview' => 'عرض', |
|
| 75 | - 'back_to_all' => 'عودة', |
|
| 76 | - 'changed_the' => 'غيرت', |
|
| 77 | - 'in_the_database' => 'في قاعدة البيانات', |
|
| 78 | - 'list' => 'قائمة', |
|
| 79 | - 'all' => 'كل', |
|
| 80 | - 'no' => 'لا', |
|
| 81 | - 'emptyTable' => 'لا تتوفر بيانات في الجدول', |
|
| 82 | - 'no_revisions' => 'لا توجد مراجعات', |
|
| 83 | - 'language' => 'لغة', |
|
| 84 | - 'delete_confirmation_not_title' => 'لم يتم الحذف', |
|
| 85 | - 'delete_confirmation_not_deleted_title' => 'لم يتم الحذف', |
|
| 86 | - 'delete_confirmation_not_deleted_message' => 'لم يحدث شيء. البند الخاص بك هو آمن.', |
|
| 87 | - 'file_manager' => 'مدير الملفات', |
|
| 88 | - 'revisions' => 'مراجعات', |
|
| 89 | - 'delete' => 'مسح', |
|
| 90 | - 'processing' => 'معالجة...', |
|
| 91 | - 'from' => 'من', |
|
| 92 | - 'yes' => 'نعم', |
|
| 93 | - 'delete_confirm' => 'هل أنت متأكد أنك تريد حذف هذا العنصر؟', |
|
| 94 | - 'please_fix' => 'يرجى تصحيح الأخطاء التالية:', |
|
| 95 | - 'aria' => [ |
|
| 96 | - 'sortAscending' => ': تفعيل لفرز العمود تصاعدي', |
|
| 97 | - 'sortDescending' => ': تفعيل لفرز العمود تنازلي', |
|
| 98 | - ], |
|
| 99 | - 'paginate' => [ |
|
| 100 | - 'first' => 'الأول', |
|
| 101 | - 'last' => 'الاخير', |
|
| 102 | - 'next' => 'التالى', |
|
| 103 | - 'previous' => 'السابق', |
|
| 104 | - ], |
|
| 105 | - 'export' => [ |
|
| 106 | - 'copy' => 'نسخ', |
|
| 107 | - 'excel' => 'Excel', |
|
| 108 | - 'csv' => 'CSV', |
|
| 109 | - 'pdf' => 'PDF', |
|
| 110 | - 'print' => 'طباعة', |
|
| 111 | - 'column_visibility' => 'رؤية العمود', |
|
| 112 | - ], |
|
| 113 | - ]; |
|
| 16 | + return [ |
|
| 17 | + 'infoFiltered' => '(filtered from _MAX_ total entries)', |
|
| 18 | + 'thousands' => ',', |
|
| 19 | + 'admin' => 'المشرف', |
|
| 20 | + 'browse_uploads' => 'تصفح التحميلات', |
|
| 21 | + 'table_cant_add' => 'لا يمكن إضافة :entity جديد', |
|
| 22 | + 'clear' => 'نظف', |
|
| 23 | + 'save_action_changed_notification' => 'تم تغيير السلوك الافتراضي بعد الحفظ.', |
|
| 24 | + 'edit_translations' => 'تعديل الترجمة', |
|
| 25 | + 'internal_link_placeholder' => "Internal slug. Ex: 'admin/page' (no quotes) for ':url'", |
|
| 26 | + 'table_max_reached' => 'أقصى عدد :max تم الوصول إليه', |
|
| 27 | + 'zeroRecords' => 'لم يتم العثور على سجلات متطابقة', |
|
| 28 | + 'infoEmpty' => 'Showing 0 to 0 of 0 entries', |
|
| 29 | + 'info' => 'Showing _START_ to _END_ of _TOTAL_ entries', |
|
| 30 | + 'details_row' => 'هذا هو صف التفاصيل. عدل كما تريد.', |
|
| 31 | + 'reorder_text' => 'استخدام السحب والإفلات لإعادة الترتيب.', |
|
| 32 | + 'reorder_success_message' => 'تم حفظ ترتيبك.', |
|
| 33 | + 'reorder_error_message' => 'لم يتم حفظ ترتيبك.', |
|
| 34 | + 'lengthMenu' => '_MENU_ records per page', |
|
| 35 | + 'created_this' => 'أنشئت هذه', |
|
| 36 | + 'page_link_placeholder' => 'http://example.com/your-desired-page', |
|
| 37 | + 'actions' => 'أفعال', |
|
| 38 | + 'remove_filters' => 'إزالة الفلاتر', |
|
| 39 | + 'add_a_new' => 'إضافة جديد', |
|
| 40 | + 'reorder' => 'إعادة ترتيب', |
|
| 41 | + 'cancel' => 'إلغاء', |
|
| 42 | + 'choose_file' => 'اختر ملف', |
|
| 43 | + 'restore_this_value' => 'استعادة هذه القيمة', |
|
| 44 | + 'add' => 'اضافة', |
|
| 45 | + 'unauthorized_access' => 'الدخول غير مصرح به - ليس لديك الأذونات اللازمة للاطلاع على هذه الصفحة.', |
|
| 46 | + 'filters' => 'الفلاتر', |
|
| 47 | + 'to' => 'الى', |
|
| 48 | + 'reorder_success_title' => 'انتهى', |
|
| 49 | + 'search' => 'بحث:', |
|
| 50 | + 'toggle_filters' => 'تبديل الفلاتر', |
|
| 51 | + 'undo' => 'تراجع', |
|
| 52 | + 'edit' => 'تعديل', |
|
| 53 | + 'update_success' => 'تم تعديل العنصر بنجاح.', |
|
| 54 | + 'delete_confirmation_title' => 'تم حذف العنصر', |
|
| 55 | + 'delete_confirmation_message' => 'تم حذف العنصر بنجاح.', |
|
| 56 | + 'insert_success' => 'تمت إضافة العنصر بنجاح.', |
|
| 57 | + 'revision_restored' => 'تمت استعادة المراجعة بنجاح', |
|
| 58 | + 'clone' => 'استنساخ', |
|
| 59 | + 'clone_success' => '<strong>تم إستنساخ العنصر</strong><br>تم إضافة عنصر جديد بنفس معلومات هذا العنصر.', |
|
| 60 | + 'clone_failure' => '<strong>حدث خطأ</strong><br>لم يتم استنساخ العنصر. الرجاء اعادة المحاولة.', |
|
| 61 | + 'loadingRecords' => 'جار التحميل...', |
|
| 62 | + 'infoPostFix' => 'جميع السجلات', |
|
| 63 | + 'details_row_loading_error' => 'حدث خطأ أثناء تحميل التفاصيل. الرجاء اعادة المحاولة.', |
|
| 64 | + 'delete_confirmation_not_message' => 'حدث خطأ. ربما لم يتم حذف العنصر.', |
|
| 65 | + 'guest_user' => 'حساب زائر', |
|
| 66 | + 'save' => 'حفظ', |
|
| 67 | + 'save_action_save_and_edit' => 'حفظ هذا العنصر وتعديله', |
|
| 68 | + 'save_action_save_and_back' => 'حفظ و رجوع', |
|
| 69 | + 'save_action_save_and_new' => 'حفظ وعنصر جديد', |
|
| 70 | + 'reorder_error_title' => 'خطأ', |
|
| 71 | + 'page_link' => 'رابط الصفحة', |
|
| 72 | + 'external_link' => 'رابط خارجي', |
|
| 73 | + 'internal_link' => 'رابط داخلي', |
|
| 74 | + 'preview' => 'عرض', |
|
| 75 | + 'back_to_all' => 'عودة', |
|
| 76 | + 'changed_the' => 'غيرت', |
|
| 77 | + 'in_the_database' => 'في قاعدة البيانات', |
|
| 78 | + 'list' => 'قائمة', |
|
| 79 | + 'all' => 'كل', |
|
| 80 | + 'no' => 'لا', |
|
| 81 | + 'emptyTable' => 'لا تتوفر بيانات في الجدول', |
|
| 82 | + 'no_revisions' => 'لا توجد مراجعات', |
|
| 83 | + 'language' => 'لغة', |
|
| 84 | + 'delete_confirmation_not_title' => 'لم يتم الحذف', |
|
| 85 | + 'delete_confirmation_not_deleted_title' => 'لم يتم الحذف', |
|
| 86 | + 'delete_confirmation_not_deleted_message' => 'لم يحدث شيء. البند الخاص بك هو آمن.', |
|
| 87 | + 'file_manager' => 'مدير الملفات', |
|
| 88 | + 'revisions' => 'مراجعات', |
|
| 89 | + 'delete' => 'مسح', |
|
| 90 | + 'processing' => 'معالجة...', |
|
| 91 | + 'from' => 'من', |
|
| 92 | + 'yes' => 'نعم', |
|
| 93 | + 'delete_confirm' => 'هل أنت متأكد أنك تريد حذف هذا العنصر؟', |
|
| 94 | + 'please_fix' => 'يرجى تصحيح الأخطاء التالية:', |
|
| 95 | + 'aria' => [ |
|
| 96 | + 'sortAscending' => ': تفعيل لفرز العمود تصاعدي', |
|
| 97 | + 'sortDescending' => ': تفعيل لفرز العمود تنازلي', |
|
| 98 | + ], |
|
| 99 | + 'paginate' => [ |
|
| 100 | + 'first' => 'الأول', |
|
| 101 | + 'last' => 'الاخير', |
|
| 102 | + 'next' => 'التالى', |
|
| 103 | + 'previous' => 'السابق', |
|
| 104 | + ], |
|
| 105 | + 'export' => [ |
|
| 106 | + 'copy' => 'نسخ', |
|
| 107 | + 'excel' => 'Excel', |
|
| 108 | + 'csv' => 'CSV', |
|
| 109 | + 'pdf' => 'PDF', |
|
| 110 | + 'print' => 'طباعة', |
|
| 111 | + 'column_visibility' => 'رؤية العمود', |
|
| 112 | + ], |
|
| 113 | + ]; |
|