PHP Classes

File: Template/project/metadata.php

Recommend this page to a friend!
  Classes of kiran   MetaMagik   Template/project/metadata.php   Download  
File: Template/project/metadata.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MetaMagik
Plugin to add custom form fields for Kanboard
Author: By
Last change:
Date: 3 years ago
Size: 1,218 bytes
 

Contents

Class file image Download
<div class="page-header">
    <h2><?= t('Metadata') ?></h2>
</div>


<?php if (empty($metadata)): ?>
<p class="alert"><?= t('No metadata') ?></p>
<?php else: ?>
<table class="table-small table-fixed">
    <tr>
        <th class="column-40"><?= t('Key') ?></th>
        <th class="column-40"><?= t('Value') ?></th>
        <th class="column-20"><?= t('Action') ?></th>
    </tr>
    <?php foreach ($metadata as $key => $value): ?>
<tr>
        <td><?= $key ?></td>
        <td><?= $value ?></td>
        <td>
            <ul>
                <li>
                    <?= $this->url->link(t('Remove'), 'MetadataController', 'confirmProject', ['plugin' => 'metaMagik', 'project_id' => $project['id'], 'key' => $key], false, 'popover') ?>
</li>
                <li>
                    <?= $this->url->link(t('Edit'), 'MetadataController', 'editProject', ['plugin' => 'metaMagik', 'project_id' => $project['id'], 'key' => $key], false, 'popover') ?>
</li>
            </ul>
        </td>
    </tr>
    <?php endforeach ?>
</table>
<?php endif ?>


<?= $this->render('metaMagik:project/form', ['project' => $project, 'form_headline' => t('Add Metadata'), 'values' => []]) ?>