/** * @param $queue Queue * @return Form */ public function _createQueueForm($queue) { $form = new Form(); $form->add(TextField::name('name')->label('Name')->help('What is the name of this queue?')->required(true)->value($queue->getName())); $form->add(NumericField::name('delay')->label('Delay')->help('What is the delay between starting prints in seconds?')->required(true)->min(0)->value($queue->get('delay'))); return $form; }