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


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

<?php if (empty($metadata)): ?>
<p class="alert"><?= t('No metadata') ?></p>
<?php else: ?>
<table class="table-small table-fixed">
        <th class="column-40"><?= t('Key') ?></th>
        <th class="column-40"><?= t('Value') ?></th>
        <th class="column-20"><?= t('Action') ?></th>
    <?php foreach ($metadata as $key => $value): ?>
        <td><?= $key ?></td>
        <td><?= $value ?></td>
                    <?= $this->url->link(t('Remove'), 'MetadataController', 'confirmUser', ['plugin' => 'metaMagik', 'user_id' => $user['id'], 'key' => $key], false, 'popover') ?>
                    <?= $this->url->link(t('Edit'), 'MetadataController', 'editUser', ['plugin' => 'metaMagik', 'user_id' => $user['id'], 'key' => $key], false, 'popover') ?>
    <?php endforeach ?>
<?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.