<?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->Form->postLink(
                __('Delete'),
                ['action' => 'delete', $department->id],
                ['confirm' => __('Are you sure you want to delete # {0}?', $department->id)]
            )
        ?></li>
        <li><?= $this->Html->link(__('List Departments'), ['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 Supervisings'), ['controller' => 'Supervisings', 'action' => 'index']) ?></li>
        <li><?= $this->Html->link(__('New Supervising'), ['controller' => 'Supervisings', 'action' => 'add']) ?></li>
    </ul>
</nav>
<div class="departments form large-9 medium-8 columns content">
    <?= $this->Form->create($department) ?>
    <fieldset>
        <legend><?= __('Edit Department') ?></legend>
        <?php
            echo $this->Form->input('schooltype_id', ['options' => $schooltypes, 'empty' => true]);
            echo $this->Form->input('supervising_id', ['options' => $supervisings, 'empty' => true]);
            echo $this->Form->input('title');
            echo $this->Form->input('status');
            echo $this->Form->input('code');
            echo $this->Form->input('super_school_code');
            echo $this->Form->input('count');
            echo $this->Form->input('delivery_date', ['empty' => true]);
            echo $this->Form->input('requested');
            echo $this->Form->input('delivered');
            echo $this->Form->input('checkedin');
            echo $this->Form->input('delivery_count');
            echo $this->Form->input('data');
            echo $this->Form->input('fmismatch');
            echo $this->Form->input('pmismatch');
        ?>
    </fieldset>
    <?= $this->Form->button(__('Submit')) ?>
    <?= $this->Form->end() ?>
</div>
