看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 27411ebedc
1827 changed files with 192340 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<div class="page-header">
<h2><?= t('Add link label') ?></h2>
</div>
<form action="<?= $this->url->href('LinkController', 'save') ?>" method="post" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Label'), 'label') ?>
<?= $this->form->text('label', $values, $errors, array('required', 'autofocus')) ?>
<?= $this->form->label(t('Opposite label'), 'opposite_label') ?>
<?= $this->form->text('opposite_label', $values, $errors) ?>
<?= $this->modal->submitButtons() ?>
</form>
+17
View File
@@ -0,0 +1,17 @@
<div class="page-header">
<h2><?= t('Link modification') ?></h2>
</div>
<form action="<?= $this->url->href('LinkController', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->hidden('id', $values) ?>
<?= $this->form->label(t('Label'), 'label') ?>
<?= $this->form->text('label', $values, $errors, array('required')) ?>
<?= $this->form->label(t('Opposite label'), 'opposite_id') ?>
<?= $this->form->select('opposite_id', $labels, $values, $errors) ?>
<?= $this->modal->submitButtons() ?>
</form>
+15
View File
@@ -0,0 +1,15 @@
<div class="page-header">
<h2><?= t('Remove a link') ?></h2>
</div>
<div class="confirm">
<p class="alert alert-info">
<?= t('Do you really want to remove this link: "%s"?', $link['label']) ?>
</p>
<?= $this->modal->confirmButtons(
'LinkController',
'remove',
array('link_id' => $link['id'])
) ?>
</div>
+36
View File
@@ -0,0 +1,36 @@
<div class="page-header">
<h2><?= t('Link labels') ?></h2>
<ul>
<li>
<?= $this->modal->medium('plus', t('Add link label'), 'LinkController', 'create') ?>
</li>
</ul>
</div>
<?php if (! empty($links)): ?>
<table class="table-striped table-scrolling">
<tr>
<th class="column-70"><?= t('Link labels') ?></th>
<th><?= t('Actions') ?></th>
</tr>
<?php foreach ($links as $link): ?>
<tr>
<td>
<strong><?= t($link['label']) ?></strong>
<?php if (! empty($link['opposite_label'])): ?>
| <?= t($link['opposite_label']) ?>
<?php endif ?>
</td>
<td>
<ul>
<?= $this->modal->medium('edit', t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?>
<?= t('or') ?>
<?= $this->modal->confirm('trash-o', t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?>
</ul>
</td>
</tr>
<?php endforeach ?>
</table>
<?php else: ?>
<?= t('There is no link.') ?>
<?php endif ?>