function flowList() { $r = array(); $flows = Flow::flows(); foreach ($flows as $f) { $r[] = '<span class="fixed-width">' . $f . '</span><div class="tools">' . icon('small/pencil', __('Edit flow'), url(array('edit' => $f->ID))) . icon('small/feed', __('View flow'), $f->link) . '</div>'; } return listify($r); }
function edit() { return Form::quick(false, false, new Select(__('Flows'), 'flows', Flow::flows(), $this->that->flows, true), new Input(__('Items per page', 'items', $this->that->flows_per_page, 'numeric'))); }