<?php
/**
  * @var \App\View\AppView $this
  */
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('List Imports'), ['action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('List Schooltypes'), ['controller' => 'Schooltypes', 'action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('New Schooltype'), ['controller' => 'Schooltypes', 'action' => 'add']) ?></li>
        <li><?= $this->Html->link(__('List Examinations'), ['controller' => 'Examinations', 'action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('New Examination'), ['controller' => 'Examinations', 'action' => 'add']) ?></li>
    </ul>
</nav>
<div class="imports form large-9 medium-8 columns content">
    <?= $this->Form->create($import) ?>
    <fieldset>
        <legend><?= __('Add Import') ?></legend>
        <?php
            echo $this->Form->input('schooltype_id', ['options' => $schooltypes]);
            echo $this->Form->input('examination_id', ['options' => $examinations]);
            echo $this->Form->input('title');
            echo $this->Form->input('filename');
            echo $this->Form->input('tablename');
            echo $this->Form->input('field_separator');
            echo $this->Form->input('enclosure');
            echo $this->Form->input('mapping');
            echo $this->Form->input('skip');
            echo $this->Form->input('clear');
            echo $this->Form->input('update_table');
            echo $this->Form->input('overwrite');
        ?>
    </fieldset>
    <?= $this->Form->button(__('Submit')) ?>
    <?= $this->Form->end() ?>
</div>
