QByteArray ServerListProcessor::render() const {
    UI::DefaultPageRenderer page;
    QMap<QString, QVariant> param;

    page.body()->addWidget(_notify);
    Translate::instance()->group("server");

    // Content
    UI::Container* divBreadcrumb = new UI::Container();
    {
        divBreadcrumb->setId("breadcrumb");

        // Icon
        UI::Container* divIcon = new UI::Container();
        {
            divIcon->addClass("icon users");
            UI::Image* imgContent = new UI::Image("/img/icon_ftp.png", Translate::instance()->tr("icon"));
            imgContent->setAttribute("width", "60");
            divIcon->addWidget(imgContent);
        }
        divBreadcrumb->addWidget(divIcon);

        Translate::instance()->group("breadcrumb");
        // Breadcrumbs
        UI::Title* title = new UI::Title();
        {
            UI::Breadcrumb* link = new UI::Breadcrumb();
            link->addLink(Translate::instance()->tr("server_home"), Helper::gen_url("index"));
            link->addLink(Translate::instance()->tr("server_manage"), "");
            title->addWidget(link);
        }
        divBreadcrumb->addWidget(title);
    }
    page.body()->addWidget(divBreadcrumb);

    Translate::instance()->group("server_manage");
    page.setTitle("PuppetFTP - "+Translate::instance()->tr("title"));

    // Content
    UI::Container* divContent = new UI::Container();
    {
        divContent->setId("server");

        // Editing
        divContent->addWidget(_table->getContent());

        // Clear
        UI::Container* divClear = new UI::Container();
        divClear->setAttribute("style", "clear:both;visibility:hidden;");
        divContent->addWidget(divClear);
    }
    page.body()->addWidget(divContent);
    return page.render();
}
QByteArray ServerListProcessor::render() const {
    UI::DefaultPageRenderer page;
    QMap<QString, QVariant> param;

    page.setTitle("PuppetFTP - Manage Your Server - List");
    page.body()->addWidget(_notify);

    // Breadcrumbs
    UI::Title* title = new UI::Title();
    {
        UI::Breadcrumb* link = new UI::Breadcrumb();
        link->addLink("Manage your server", Helper::gen_url("index"));
        link->addLink("Server management", "");
        title->addWidget(link);
    }
    page.body()->addWidget(title);

    // Content
    UI::Container* divContent = new UI::Container();
    {
        divContent->setId("server");

        // Icon
        UI::Container* divIcon = new UI::Container();
        {
            divIcon->addClass("icon users");
            UI::Image* imgContent = new UI::Image("/images/icon_ftp.png", "Manage Your Server");
            imgContent->setAttribute("width", "60");
            divIcon->addWidget(imgContent);
        }
        divContent->addWidget(divIcon);

        // Menu
        UI::Menu* menu = new UI::Menu(UI::Container::NAV);
        {
            menu->setAttribute("id", "menu");
            menu->addMenu("menu", new UI::Link(Helper::gen_url("serverUserList", param), new UI::Text("User management")));
            menu->addMenu("menu", new UI::Link(Helper::gen_url("serverList", param), new UI::Text("Server management")));
        }
        divContent->addWidget(menu);

        // Editing
        divContent->addWidget(_table->getContent());

        // Clear
        UI::Container* divClear = new UI::Container();
        divClear->setAttribute("style", "clear:both;visibility:hidden;");
        divContent->addWidget(divClear);
    }
    page.body()->addWidget(divContent);
    return page.render();
}