PHP Classes

File: Template/user/metadata.php

Recommend this page to a friend!
  Classes of kiran  >  MetaMagik  >  Template/user/metadata.php  >  Download  
File: Template/user/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: 1 year ago
Size: 1,191 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', 'confirmUser', ['plugin' => 'metaMagik', 'user_id' => $user['id'], 'key' => $key], false, 'popover') ?>
</li>
                <li>
                    <?= $this->url->link(t('Edit'), 'MetadataController', 'editUser', ['plugin' => 'metaMagik', 'user_id' => $user['id'], 'key' => $key], false, 'popover') ?>
</li>
            </ul>
        </td>
    </tr>
    <?php endforeach ?>
</table>
<?php endif ?>


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

For more information send a message to info at phpclasses dot org.