PHP Classes

File: Template/task/form.php

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

Contents

Class file image Download
<h2><?= $form_headline ?></h2>
<form method="post" action="<?= $this->url->href('MetadataController', 'saveTask', ['plugin' => 'metaMagik', 'task_id' => $task['id'], 'project_id' => $project['id']]) ?>" autocomplete="off">
    <?= $this->form->csrf() ?>

    <?= $this->form->text('key', $values, [], ['required', 'placeholder="'.t('Key').'"']) ?>
<?= $this->form->text('value', $values, [], ['required', 'placeholder="'.t('Value').'"']) ?>

    <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
</form>