| 
									
										
										
										
											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> | 
					
						
							|  |  |  |     <div class="px-l files"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         <div refs="attachments@listContainer"> | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  |             <div component="tabs" refs="attachments@mainTabs" class="tab-container"> | 
					
						
							| 
									
										
										
										
											2023-01-28 20:50:51 +08:00
										 |  |  |                 <div role="tablist"> | 
					
						
							|  |  |  |                     <button id="attachment-tab-items" | 
					
						
							|  |  |  |                             role="tab" | 
					
						
							|  |  |  |                             aria-selected="true" | 
					
						
							|  |  |  |                             aria-controls="attachment-panel-items" | 
					
						
							|  |  |  |                             type="button" | 
					
						
							|  |  |  |                             class="tab-item">{{ trans('entities.attachments_items') }}</button> | 
					
						
							|  |  |  |                     <button id="attachment-tab-upload" | 
					
						
							|  |  |  |                             role="tab" | 
					
						
							|  |  |  |                             aria-selected="false" | 
					
						
							|  |  |  |                             aria-controls="attachment-panel-upload" | 
					
						
							|  |  |  |                             type="button" | 
					
						
							|  |  |  |                             class="tab-item">{{ trans('entities.attachments_upload') }}</button> | 
					
						
							|  |  |  |                     <button id="attachment-tab-links" | 
					
						
							|  |  |  |                             role="tab" | 
					
						
							|  |  |  |                             aria-selected="false" | 
					
						
							|  |  |  |                             aria-controls="attachment-panel-links" | 
					
						
							|  |  |  |                             type="button" | 
					
						
							|  |  |  |                             class="tab-item">{{ trans('entities.attachments_link') }}</button> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-01-28 20:50:51 +08:00
										 |  |  |                 <div id="attachment-panel-items" | 
					
						
							|  |  |  |                      tabindex="0" | 
					
						
							|  |  |  |                      role="tabpanel" | 
					
						
							|  |  |  |                      aria-labelledby="attachment-tab-items" | 
					
						
							|  |  |  |                      refs="attachments@list"> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |                     @include('attachments.manager-list', ['attachments' => $page->attachments->all()]) | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-01-28 20:50:51 +08:00
										 |  |  |                 <div id="attachment-panel-upload" | 
					
						
							|  |  |  |                      tabindex="0" | 
					
						
							|  |  |  |                      role="tabpanel" | 
					
						
							|  |  |  |                      hidden | 
					
						
							|  |  |  |                      aria-labelledby="attachment-tab-upload"> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |                     @include('form.dropzone', [ | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |                         'placeholder' => trans('entities.attachments_dropzone'), | 
					
						
							|  |  |  |                         'url' =>  url('/attachments/upload?uploaded_to=' . $page->id), | 
					
						
							|  |  |  |                         'successMessage' => trans('entities.attachments_file_uploaded'), | 
					
						
							|  |  |  |                     ]) | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2023-01-28 20:50:51 +08:00
										 |  |  |                 <div id="attachment-panel-links" | 
					
						
							|  |  |  |                      tabindex="0" | 
					
						
							|  |  |  |                      role="tabpanel" | 
					
						
							|  |  |  |                      hidden | 
					
						
							|  |  |  |                      aria-labelledby="attachment-tab-links" | 
					
						
							|  |  |  |                      class="link-form-container"> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  |                     @include('attachments.manager-link-form', ['pageId' => $page->id]) | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-29 04:55:24 +08:00
										 |  |  |         <div refs="attachments@editContainer" class="hidden attachment-edit-container"> | 
					
						
							| 
									
										
										
										
											2020-07-04 23:53:02 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> |