[MERGE] Merged with main addons.
[odoo/odoo.git] / addons / web_process / static / src / xml / web_process.xml
1 <template>
2 <!-- vim:fdl=1:
3 -->
4     <t t-extend="ViewManager" t-name="ViewManagerAction">
5         <t t-jquery=".oe-view-manager-header" t-operation="append">
6             <a t-if="self.flags.display_title !== false" class="oe-process-view" title="Process View" href="javascript: void(0)"></a>
7         </t>
8     </t>
9     <t t-name="ProcessView">
10         <table class="view" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
11             <tr>
12                 <td width="75%" valign="top" class="fields collapsed" style="padding-top:10px;">
13                     <h1 class="process_h1">
14                         <t t-esc="action.name"/> (<t t-esc="model"/>)
15                     </h1>
16                     <p class="process-links">
17                         <a class="cta-a" target="_blank" href="http://doc.openerp.com/">
18                             <span>
19                                 <strong>Documentation</strong>
20                                 Read Documentation Online
21                             </span>
22                         </a>
23                         <a class="cta-a" target="_blank" href="http://www.openerp.com/forum/">
24                             <span>
25                                 <strong>Forum</strong>
26                                 Community Discussion
27                             </span>
28                         </a>
29                         <a class="cta-a" target="_blank" href="http://www.openerp.com/catalog/150">
30                             <span>
31                                 <strong>Books</strong>
32                                 Get the books
33                             </span>
34                         </a>
35                         <a class="cta-a" target="_blank" href="http://www.openerp.com/catalog">
36                             <span>
37                                 <strong>OpenERP Enterprise</strong>
38                                 Purchase OpenERP Enterprise
39                             </span>
40                         </a>
41                     </p>
42                 </td>
43             </tr>
44             <tr>
45                 <td>
46                     <p><t t-esc="process_help"/></p>
47                 </td>
48             </tr>
49             <tr>
50                 <td>
51                     <h2>
52                         <t t-esc="process_title"/> Process
53                     </h2>
54                     <t t-if="process_notes">
55                         <p>
56                             <strong>Notes:</strong> <t t-esc="process_notes"/>
57                         </p>
58                         <p>
59                             <strong>Last modified by:</strong> N/A
60                         </p>
61                         <t t-if="process_subflows.length">
62                             <strong>Subflows:</strong>
63
64                             <t t-foreach="process_subflows" t-as="subflow">
65                                 <t t-if="subflow.subflow[0] != process_id">
66                                     <p>
67                                         <a class="process_subflow" t-att-id="subflow.subflow[0]" href="javascript: void(0)">
68                                             <t t-esc="subflow.subflow[1]"/>
69                                         </a>
70                                     </p>
71                                 </t>
72                             </t>
73                         </t>
74                         <t t-if="process_related.length and process_related[0][0] != process_id">
75                             <strong>Related:</strong>
76                             <p>
77                                 <a class="process_subflow" t-att-id="process_related[0][0]" href="javascript: void(0)">
78                                     <t t-esc="process_related[0][1]"/>
79                                 </a>
80                             </p>
81                         </t>
82                     </t>
83                 </td>
84             </tr>
85             <tr t-if="process_selection">
86                 <td>
87                     <fieldset>
88                         <legend>
89                             Select Process
90                             </legend>
91                         <select id="select_process">
92                             <t t-foreach="process_selection" t-as="prc">
93                                 <option t-att-value="prc[0]">
94                                     <t t-esc="prc[1]"/>
95                                 </option>
96                             </t>
97                         </select>
98                         <button class="oe_button" id="change_process">Select</button>
99                     </fieldset>
100                 </td>
101             </tr>
102             <tr t-if="process_id">
103                 <td>
104                     <div id="process_canvas" style="overflow: auto;"></div>
105                 </td>
106             </tr>
107             <tr t-if="process_id">
108                 <td>
109                     <button class="oe_button" id="edit_process">Edit Process</button>
110                 </td>
111             </tr>
112         </table>
113     </t>
114 </template>