PHP Classes

File: Template/task/metatable.php

Recommend this page to a friend!
  Classes of kiran  >  MetaMagik  >  Template/task/metatable.php  >  Download  
File: Template/task/metatable.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,990 bytes


Class file image Download
.column {
    float: left;
    width: 30%;
    padding: 10px;
    .row:after {
    content: "";
    display: table;
    clear: both;
<div class="row">
<?php for ($i = 1; $i <=3; $i++): ?>
<div class="column">
       id="<?= $i ?>"
       class="metadata-table table-striped table-scrolling"
       data-save-position-url="<?= $this->url->href('MetadataTypesController', 'movePosition', array('plugin' => 'metaMagik')) ?>"
          <th><?= t('Custom Field') ?></th>
          <th><?= t('Value') ?></th>
<tbody id="<?= $i ?>" class="connected">
            <tr class="disabled">
                <td style="border: none"></td>
                <td style="border: none"></td>
                <td style="border: none"></td>
                <td style="border: none"></td>
  <?php foreach ($custom_fields as $custom_field): ?>
<?php if (!empty($this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '')) && $custom_field['column_number'] == $i): ?>
<tr data-metadata-id="<?= $custom_field['id'] ?>">
                         <?php if ($_SESSION['user']['role'] == 'app-admin'): ?>
<i class="fa fa-arrows-alt draggable-row-handle ui-sortable-handle" title="Change metadata position"></i>&nbsp;
                         <?php endif ?>
<strong><?= $custom_field['beauty_name'] ?></strong></td>
                <?php if ($custom_field['data_type'] == 'textarea'): ?>
<td><?= $this->text->markdown($this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '')) ?></td>
                <?php else: ?>
<td><?= $this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '') ?></td>
                <?php endif ?>
        <?php endif ?>
<?php endforeach ?>
<?php endfor ?>

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