| ");
String panelImage = WebResources.IMAGE_COLLAPSED;
- if (this.expandedPanels.contains(username))
+ if (this.expandedPanels.contains(username + ACT_MODIFIED_PANEL))
{
panelImage = WebResources.IMAGE_EXPANDED;
}
out.write(Utils.buildImageTag(context, panelImage, 11, 11, "",
- Utils.generateFormSubmit(context, this, getClientId(context) + ACT_PANEL, username)));
+ Utils.generateFormSubmit(context, this, getClientId(context) + ACT_MODIFIED_PANEL, username + ACT_MODIFIED_PANEL)));
out.write(" ");
out.write(bundle.getString(MSG_MODIFIED_ITEMS));
out.write("");
- if (this.expandedPanels.contains(username))
+ if (this.expandedPanels.contains(username + ACT_MODIFIED_PANEL))
{
out.write("");
// list the modified docs for this sandbox user
- renderUserFiles(context, out, username, index, storeRoot);
+ renderUserFiles(context, out, username, storeRoot, index);
+ }
+ out.write(" |
");
+
+ // content forms panel
+ out.write(" | ");
+ panelImage = WebResources.IMAGE_COLLAPSED;
+ if (this.expandedPanels.contains(username + ACT_FORMS_PANEL))
+ {
+ panelImage = WebResources.IMAGE_EXPANDED;
+ }
+ out.write(Utils.buildImageTag(context, panelImage, 11, 11, "",
+ Utils.generateFormSubmit(context, this, getClientId(context) + ACT_FORMS_PANEL, username + ACT_FORMS_PANEL)));
+ out.write(" ");
+ out.write(bundle.getString(MSG_CONTENT_FORMS));
+ out.write("");
+ if (this.expandedPanels.contains(username + ACT_FORMS_PANEL))
+ {
+ out.write("");
+
+ // list the content forms for this sandbox user
+ renderContentForms(context, out, websiteRef, username, storeRoot);
}
out.write(" |
");
@@ -370,8 +408,9 @@ public class UIUserSandboxes extends SelfRenderingComponent
*
* @throws IOException
*/
- private void renderUserFiles(FacesContext fc, ResponseWriter out, String username, int index, String storeRoot)
- throws IOException
+ private void renderUserFiles(
+ FacesContext fc, ResponseWriter out, String username, String storeRoot, int index)
+ throws IOException
{
AVMSyncService avmSyncService = getAVMSyncService(fc);
AVMService avmService = getAVMService(fc);
@@ -406,7 +445,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
this.userNodes.put(username, nodes);
// output the table of modified items
- out.write("