Prev | Current Page 477 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

renderContent();
}
private override function renderFooter()
{
var b = new StringBuf();
b.add(???\n < /div > \n??™);
b.add(??? < div id=???page-links??? > \n??™);
b.add(??? < a href=?????™ + controller.uri + ????action=edit??? > edit < /a > ??™);
b.add(super.renderFooter());
return b.toString();
}
}
The PageEdit.hx file adds a wrapping form and some controls to interact with the page content.
class PageEdit extends Page
{
private static var EDIT_TITLE_PREFIX = ???Edit: ???;
private static var CONTENT_LABEL = ???The page content goes here:??™;
public function new(controller : WikiController, altcontent : String)
{
super(controller, altcontent);
}
private override function getTitle()
{
return EDIT_TITLE_PREFIX + super.getTitle();
}
private override function renderHeader()
{
var b = new StringBuf();
b.add(super.renderHeader());
b.add(??? < form action=?????™ + controller.uri + ????action=save??? ???);
b.add(???method=???post??? > \n??™);
b.add(??? < div class=???control??? > \n??™);
b.add(??? < label for=???content??? > ??™ + CONTENT_LABEL + ??? < /label > \n??™);
b.


Pages:
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489