protected function updateForm() { $this->connection->selectDB($this->config->get('OP_DB')); $depts = new DepartmentsModel($this->connection); $opts = $depts->toOptions(); $ret = '<form method="post"> <div class="form-group form-inline"> <label>Department #</label> <select name="id" class="form-control input-sm"> ' . $opts . ' </select> <label>Maps to</label> <select name="mapID" class="form-control input-sm"> ' . $opts . ' </select> <label>Min. Qty</labe> <input type="text" name="minQty" class="form-control input-sm price-field" /> <button type="submit" class="btn btn-default">Add/Update</button> </div> </form>'; return $ret; }