public function runConfigureWorkflowSchemes(framework\Request $request) { $this->schemes = entities\WorkflowScheme::getAll(); }
<table class="cleantable"> <thead> <tr> <th><?php echo __('Name'); ?> </th> <th><?php echo __('ID'); ?> </th> </tr> </thead> <tbody> <?php foreach (\thebuggenie\core\entities\WorkflowScheme::getAll() as $item) { ?> <tr><td><?php echo $item->getName(); ?> </td><td><?php echo $item->getID(); ?> </td></tr> <?php } ?> </tbody> </table> </div> <div class="tab_header"><?php
if ($scheme == $project->getWorkflowScheme()) { continue; } ?> <option value="<?php echo $scheme->getID(); ?> "><?php echo $scheme->getName(); ?> </option> <?php } ?> <?php if (count(\thebuggenie\core\entities\WorkflowScheme::getAll()) < 2) { ?> <option disabled="disabled" value="0"><?php echo __('No other workflows'); ?> </option> <?php } ?> </select></h3> <input class="button button-silver" type="submit" value="<?php echo __('Continue'); ?> "> </form> </div>