mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-11 17:18:42 +00:00
continue implementations
This commit is contained in:
parent
ecd3ba4363
commit
59844a2ba8
|
|
@ -60,7 +60,7 @@ class BaseView extends View
|
|||
* @var \Modules\Media\Models\Media[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public array $files = [];
|
||||
public array $docs = [];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
@ -81,7 +81,7 @@ class BaseView extends View
|
|||
/** @var array{0:string, 1?:string, 2?:array} $data */
|
||||
$this->form = $data[0];
|
||||
$this->virtualPath = $data[1] ?? $this->virtualPath;
|
||||
$this->files = $data[2] ?? $this->files;
|
||||
$this->docs = $data[2] ?? $this->docs;
|
||||
|
||||
return parent::render();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,11 +37,11 @@
|
|||
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""></td>
|
||||
<td data-tpl-text="/title" data-tpl-value="/title" data-value=""></td>
|
||||
</template>
|
||||
<?php foreach ($this->files as $file) : ?>
|
||||
<?php foreach ($this->docs as $doc) : ?>
|
||||
<tr data-tpl-value="/id" data-value="" data-uuid="" data-name="editor-list">
|
||||
<td>
|
||||
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $this->printHtml($file->id); ?></td>
|
||||
<td data-tpl-text="/title" data-tpl-value="/title" data-value=""><?= $this->printHtml($file->name); ?></td>
|
||||
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $this->printHtml($doc->id); ?></td>
|
||||
<td data-tpl-text="/title" data-tpl-value="/title" data-value=""><?= $this->printHtml($doc->title); ?></td>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user