Modifications pour le document Contacts

Modifié par jmy le 2011/12/21 16:13

Depuis la version 3.1
modifié par jmy
sur 2011/12/21 16:13
Commentaire de modification : Il n'y a aucun commentaire pour cette version
À la version 2.2
modifié par jmy
sur 2011/12/21 16:08
Commentaire de modification : Il n'y a aucun commentaire pour cette version

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -12,7 +12,7 @@
12 12   #end
13 13   #end
14 14  
15 - = Create a new contact=
15 + = Create a new document =
16 16  
17 17   #if("$!targetDocName" != '' && $xwiki.exists($targetDocName))
18 18   {{warning}}The target document already exists. Please choose a different name, or [[view the existing document>>$targetDocName]]{{/warning}}
... ... @@ -28,12 +28,19 @@
28 28   <input type="hidden" name="template" value="${doc.space}.ContactsTemplate"/>
29 29   <input type="hidden" name="sheet" value="1"/>
30 30   <label for="spaceName">Space: </label><input type="text" id="spaceName" name="spaceName" value="${doc.space}" />
31 - <label for="docName">Contact: </label><input type="text" id="docName" name="docName" value="" class="withTip"'/>
31 + <label for="docName">Document: </label><input type="text" id="docName" name="docName" value="" class="withTip"'/>
32 32   <span class="buttonwrapper"><input type="submit" value="Create this document" class="button"/></span>
33 33   </div>
34 34   </form>
35 35   {{/html}}
36 36  
37 + = Existing documents =
38 +
39 + #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='${doc.fullName}' and obj.name<>'${classTemplateDoc.fullName}'")
40 + #foreach ($item in $xwiki.searchDocuments($sql))
41 + * [[$item]]
42 + #end
43 +
37 37  {{/velocity}}
38 38  
39 39