);
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.setDefaultDialogBorder();
builder.appendSeparator( locale.getString("gui.label.community") );
builder.append( locale.getString("gui.label.communityEnabled"), new BooleanOptionField(p,Constants.COMMUNITY_ENABLED) );
builder.nextLine();
builder.appendSeparator( locale.getString("gui.label.webServer") );
builder.append( locale.getString("gui.label.port"), new NumberOptionField(p,"server.port") );
builder.nextLine();
builder.append( locale.getString("gui.label.basepath"), new TextOptionField(p,"server.basepath") );
builder.nextLine();
builder.append( locale.getString("gui.label.wwwTitle"), new TextOptionField(p,"www.title") );
builder.nextLine();
builder.append( locale.getString("gui.label.wwwTagline"), new TextOptionField(p,"www.tagline") );
builder.nextLine();
builder.append( locale.getString("gui.label.disableDownloads"), new BooleanOptionField(p,"www.disableDownloads") );
builder.nextLine();
builder.append( locale.getString("gui.label.enableFolderBrowsing"), new BooleanOptionField(p,"browse.folders.enabled") );
final String scheduler = p.get( Constants.SCHED, "" );
if ( !scheduler.equals("cron") && !scheduler.equals("manual") ) {
builder.appendSeparator( locale.getString("gui.label.collection") );
builder.append( locale.getString("gui.label.scanOnStartup"), new BooleanOptionField(p,"collman.scan.onStart") );
builder.nextLine();
builder.append( locale.getString("gui.label.scanCoverArt"), new BooleanOptionField(p,Constants.COLLMAN_SCAN_COVERS) );
builder.nextLine();
builder.append( locale.getString("gui.label.scanInterval"), new NumberOptionField(p,Constants.SCHED_SIMPLE_INTERVAL) );
builder.nextLine();
}
builder.appendSeparator( locale.getString("gui.label.uploads") );
builder.append( locale.getString("gui.label.enableUploads"), new BooleanOptionField(p,"uploads.enabled") );
builder.nextLine();
builder.append( locale.getString("gui.label.anonymousUploads"), new BooleanOptionField(p,"uploads.allowAnonymous") );
builder.nextLine();
builder.append( locale.getString("gui.label.uploadsDirectory"), new UploadDirectoryOptionField(parent,p,"uploads.collectionId",locale,db,cm) );
builder.nextLine();
builder.appendSeparator( locale.getString("gui.label.general") );
builder.append( locale.getString("gui.label.startMinimized"), new BooleanOptionField(p,"app.startMinimized") );
builder.nextLine();
builder.append( locale.getString("gui.label.confirmExit"), new BooleanOptionField(p,"app.confirmExit") );
builder.nextLine();
builder.appendSeparator( locale.getString("gui.label.logging") );
builder.append( locale.getString("gui.label.enableRequestLog"), new BooleanOptionField(p,"log.requests.enable") );
builder.nextLine();
builder.append( locale.getString("gui.label.exportRequestLogAs"), exportRequestLogFormats );
builder.nextLine();
builder.append( "", exportRequestLogButton );
builder.nextLine();