Change comment:
Imported from XAR
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -65,8 +65,8 @@ 65 65 <input type="hidden" name="parent" value="${defaultParent}"/> 66 66 <input type="hidden" name="template" value="${classTemplateDoc}"/> 67 67 <input type="hidden" name="sheet" value="1"/> 68 - Space: <input type="text" name="spaceName" value="${defaultSpace}" size="8"/> 69 - Document: <input type="text" name="docName" value="Document name" class="withTip"'/> 68 + <label for="spaceName">Space: </label><input type="text" id="spaceName" name="spaceName" value="${defaultSpace}" size="8"/> 69 + <label for="docName">Document: </label><input type="text" id="docName" name="docName" value="Document name" class="withTip"'/> 70 70 <span class="buttonwrapper"><input type="submit" value="Create this document" class="button"/></span> 71 71 </div> 72 72 </form> ... ... @@ -99,6 +99,14 @@ 99 99 </form> 100 100 {{/html}} 101 101 #else 102 + #if($classSheetExists && !$classSheetDoc.getObject('XWiki.SheetClass')) 103 + #set($xredirect = $request.getRequestURL()) 104 + #set($createUrl = $classSheetDoc.getURL('objectadd', "classname=XWiki.SheetClass&xredirect=${xredirect}")) 105 + {{warning}} 106 + The sheet does not contain an object of type //XWiki.SheetClass//. To trigger the inline edit mode automatically, {{html}}<a href="$createUrl">add a SheetClass object to the sheet »</a>.{{/html}} 107 + {{/warning}} 108 + 109 + #end 102 102 [[View the sheet document (${classSheetDoc.fullName}) »>>${classSheetDoc.fullName}]] 103 103 #end 104 104