add(form);
// Name
Label nameLabel = new Label("nameLabel", new PropertyModel(scriptModel, "name"));
form.add(nameLabel);
HiddenField name = new HiddenField("name", new PropertyModel(scriptModel, "name"));
form.add(name);
// Type
Label typeLabel = new Label("typeLabel", new PropertyModel(scriptModel, "type"));
form.add(typeLabel);
HiddenField type = new HiddenField("type", new PropertyModel(scriptModel, "type"));
form.add(type);
// Extension
Label extensionLabel = new Label("extensionLabel", new PropertyModel(scriptModel, "extension"));
form.add(extensionLabel);
HiddenField extension = new HiddenField("extension", new PropertyModel(scriptModel, "extension"));
form.add(extension);
// Content
ScriptManager scriptManager = (ScriptManager) GeoServerExtensions.bean("scriptMgr");
String mode = scriptManager.lookupPluginEditorMode(script.getFile());