Code source wiki de DiagramEditSheet
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="Diagram.ResourceSelector.WebHome" /}} | ||
2 | |||
3 | {{velocity output="false"}} | ||
4 | #macro (diagramLinkModal) | ||
5 | <div class="modal" id="diagramLinkModal" tabindex="-1" role="dialog" | ||
6 | aria-labelledby="diagramLinkModal-label" data-backdrop="static" data-keyboard="false"> | ||
7 | <div class="modal-dialog modal-lg" role="document"> | ||
8 | <div class="modal-content"> | ||
9 | <div class="modal-header"> | ||
10 | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
11 | <span aria-hidden="true">×</span> | ||
12 | </button> | ||
13 | <div class="modal-title" id="diagramLinkModal-label"> | ||
14 | Link | ||
15 | </div> | ||
16 | </div> | ||
17 | <div class="modal-body xform"> | ||
18 | #resourceSelector() | ||
19 | </div> | ||
20 | <div class="modal-footer"> | ||
21 | <button type="button" class="btn btn-default" data-dismiss="modal"> | ||
22 | $escapetool.xml($services.localization.render('cancel')) | ||
23 | </button> | ||
24 | <button type="button" class="btn btn-primary"></button> | ||
25 | </div> | ||
26 | </div> | ||
27 | </div> | ||
28 | </div> | ||
29 | #end | ||
30 | {{/velocity}} | ||
31 | |||
32 | {{velocity}} | ||
33 | {{html clean="false"}} | ||
34 | #if ($doc.getObject('Diagram.DiagramClass')) | ||
35 | ## Disable the keyboard shortcuts because they prevent the user from typing text inside the diagram (the diagram | ||
36 | ## editor doesn't use standard text fields for entering the labels for the various shapes the diagram is made of) | ||
37 | #set ($keyboardShortcutsEnabled = false) | ||
38 | #set ($discard = $xwiki.ssx.use('Diagram.DiagramSheet')) | ||
39 | #set ($discard = $xwiki.jsx.use('Diagram.DiagramEditSheet')) | ||
40 | ## Issue #219: Cannot modify diagram title in diagram editor | ||
41 | <div class="row xform"> | ||
42 | <div class="col-xs-12"> | ||
43 | <dl> | ||
44 | <dt> | ||
45 | <label for="xwikidoctitleinput"> | ||
46 | $escapetool.xml($services.localization.render('core.editors.content.titleField.label')) | ||
47 | </label> | ||
48 | </dt> | ||
49 | <dd> | ||
50 | <input id="xwikidoctitleinput" type="text" name="title" value="$escapetool.xml($tdoc.title)"> | ||
51 | </dd> | ||
52 | </dl> | ||
53 | </div> | ||
54 | </div> | ||
55 | |||
56 | <div class="diagram-editor loading" data-diagram-config="$escapetool.xml($jsontool.serialize($diagramConfig))"> | ||
57 | <input class="diagram-content" type="hidden" name="content" value="$escapetool.xml($tdoc.content)" /> | ||
58 | </div> | ||
59 | #diagramLinkModal() | ||
60 | #end | ||
61 | {{/html}} | ||
62 | {{/velocity}} |