<input class="Button Default" type="submit" value="Save Changes" />
					<a class="Button" href="<?php 
        echo System::ExpandRelativePath("~/organizations");
        ?>
">Discard Changes</a>
				</div>
			</form>
			<?php 
    }
}
System::$Modules[] = new \WebFX\Module("net.phoenixsns.TenantManager.Organization", array(new ModulePage("organizations", array(new ModulePage("", function ($page, $path) {
    $page = new OrganizationBrowsePage();
    $page->Render();
    return true;
}), new ModulePage("modify", function ($page, $path) {
    $item = Organization::GetByID($path[0]);
    if ($item == null) {
        $item = new Organization();
    }
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        $item->Title = $_POST["organization_Title"];
        if (!$item->Update()) {
            global $MySQL;
            echo $MySQL->errno . ": " . $MySQL->error;
            return true;
        }
        System::Redirect("~/organizations");
    } else {
        $page = new OrganizationModifyPage();
        $page->CurrentObject = $item;
        $page->Render();