Wiki source code of Design

Version 14.1 by Jean-Vincent Drean on 2009/08/03 18:08

Show last authors
1 $xwiki.ssfx.use("js/table/table.css")
2 $xwiki.jsfx.use("js/table/tablefilterNsort.js")
3
4 1 Design Proposals
5
6 This space is dedicated to new design proposals. The process is the following:
7
8 * First, discuss the idea on the [mailing lists>Community.MailingLists]
9 * Once a first conclusion is reached document it on this wiki here
10 * Create a JIRA issue so that it's not forgotten and reference the page on the wiki
11 * Continue improving the design implementation on the wiki
12 * Once the JIRA issue is implemented mark the Design proposal as "Completed"
13
14 ## ---------------------------------------------------
15 ## Let the user add a new Design proposal
16 ## ---------------------------------------------------
17
18 <form action="" id="newdesign">
19 <input type="hidden" name="parent" value="Design.WebHome" />
20 <input type="hidden" name="template" value="XWiki.DesignClassTemplate" />
21 <input type="hidden" name="sheet" value="1" />
22 <input type="hidden" name="webname" value="Design"/>
23 <input type="hidden" name="name" value=""/>
24 <table>
25 <tr>
26 <td>
27 <input type="text" name="design" value="" size="30"/>
28 </td>
29 <td>
30 <input type="submit" value="Add this Design proposal" onclick='if (updateName(this.form.design,this.form.name)) { action="../../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }' />
31 </td>
32 </tr>
33 </table>
34 </form>
35
36 1.1 List of current Design proposals
37
38 #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.DesignClass' and obj.name<>'XWiki.DesignClassTemplate' order by doc.name asc")
39 #set ($designs= $xwiki.searchDocuments($sql))
40
41 There are $designs.size() design proposals on this page.
42
43 <table id="designTable" class="grid sortable filterable doOddEven" cellpadding="0" cellspacing="0" border="0">
44 <tr class="sortHeader">
45 <th>Title</th>
46 <th class="selectFilter">Status</th>
47 <th>Lead</th>
48 <th>JIRA</th>
49 <th class="noFilter">Creation date</th>
50 </tr>
51 #foreach ($design in $designs)
52 <tr >
53 #set ($designDoc = $xwiki.getDocument($design))
54 <td>
55 <a href='$xwiki.getURL($design)'>*$designDoc.display("Title")*</a>
56 </td>
57 <td>
58 $designDoc.display("Status")
59 </td>
60 <td>
61 $designDoc.display("Lead")
62 </td>
63 <td>
64 $designDoc.display("JIRAIssueReference")
65 </td>
66 <td>
67 $xwiki.formatDate($designDoc.creationDate, "yyyy/MM/dd")
68 </td>
69 </tr>
70 #end
71 </table>

Get Connected