| 
									
										
										
										
											2022-11-16 21:04:22 +08:00
										 |  |  | <div style="display: block;" | 
					
						
							|  |  |  |      refs="editor-toolbox@tab-content" | 
					
						
							|  |  |  |      data-tab-content="files" | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |      component="attachments" | 
					
						
							| 
									
										
										
										
											2022-11-16 21:04:22 +08:00
										 |  |  |      option:attachments:page-id="{{ $page->id ?? 0 }}" | 
					
						
							|  |  |  |      class="toolbox-tab-content"> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <h4>{{ trans('entities.attachments') }}</h4> | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |     <div component="dropzone" | 
					
						
							|  |  |  |          option:dropzone:url="{{ url('/attachments/upload?uploaded_to=' . $page->id) }}" | 
					
						
							|  |  |  |          option:dropzone:success-message="{{ trans('entities.attachments_file_uploaded') }}" | 
					
						
							|  |  |  |          option:dropzone:error-message="{{ trans('errors.attachment_upload_error') }}" | 
					
						
							|  |  |  |          option:dropzone:upload-limit="{{ config('app.upload_limit') }}" | 
					
						
							|  |  |  |          option:dropzone:upload-limit-message="{{ trans('errors.server_upload_limit') }}" | 
					
						
							|  |  |  |          option:dropzone:zone-text="{{ trans('entities.attachments_dropzone') }}" | 
					
						
							|  |  |  |          option:dropzone:file-accept="*" | 
					
						
							| 
									
										
										
										
											2023-05-22 21:19:18 +08:00
										 |  |  |          option:dropzone:allow-multiple="true" | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |          class="px-l files"> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |         <div refs="attachments@list-container dropzone@drop-target" class="relative"> | 
					
						
							| 
									
										
										
										
											2023-01-28 20:50:51 +08:00
										 |  |  |             <p class="text-muted small">{{ trans('entities.attachments_explain') }} <span | 
					
						
							|  |  |  |                         class="text-warn">{{ trans('entities.attachments_explain_instant_save') }}</span></p> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |             <hr class="mb-s"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <div class="flex-container-row"> | 
					
						
							|  |  |  |                 <button refs="dropzone@select-button" type="button" class="button outline small">{{ trans('entities.attachments_upload') }}</button> | 
					
						
							|  |  |  |                 <button refs="attachments@attach-link-button" type="button" class="button outline small">{{ trans('entities.attachments_link') }}</button> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div> | 
					
						
							|  |  |  |                 <p class="text-muted text-small">{{ trans('entities.attachments_upload_drop') }}</p> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |             <div refs="dropzone@status-area" class="fixed top-right px-m py-m"></div> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |             <hr> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  |             <div refs="attachments@list-panel"> | 
					
						
							|  |  |  |                 @include('attachments.manager-list', ['attachments' => $page->attachments->all()]) | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2023-04-27 06:31:38 +08:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-27 06:31:38 +08:00
										 |  |  |     <div id="link-form-container" refs="attachments@links-container" hidden class="px-l"> | 
					
						
							|  |  |  |         @include('attachments.manager-link-form', ['pageId' => $page->id]) | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-27 06:31:38 +08:00
										 |  |  |     <div id="edit-form-container" refs="attachments@edit-container" hidden class="px-l"></div> | 
					
						
							| 
									
										
										
										
											2023-04-26 23:41:34 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | </div> |