10
10
task_ids python:['TASK_ZMSNOTE', 'TASK_UNTRANSLATED', 'TASK_CHANGED_BY_DATE','TASK_INACTIVE_NODES'];
11
11
global obs python:[]">
12
12
13
- <form class="form-horizontal card border-bottom" role="form" name="form0" method="get">
13
+ <form class="form-horizontal card border-bottom" role="form" name="form0" method="get" action="manage_tab_tasks" >
14
14
<input type="hidden" name="id" value="manage_tab_tasks" />
15
15
<legend><span tal:replace="python:here.getZMILangStr('TAB_TASKS')">the task-type</span></legend>
16
16
<div class="card-body">
17
17
<div class="form-group row task_type my-0">
18
18
<div class="col-sm-2">
19
- <button type="submit" class="btn btn-primary w-100 text-nowrap" tal:content="python:here.getZMILangStr('BTN_DISPLAY')">Display</button>
19
+ <button type="submit" class="btn btn-secondary w-100 text-nowrap"
20
+ onclick="$(this).html('<i class=\'fas fa-spinner fa-spin\'></i>')"
21
+ tal:content="python:here.getZMILangStr('BTN_DISPLAY')">
22
+ Display
23
+ </button>
20
24
</div>
21
25
<div class="col-sm-10">
22
- <select class="form-control" id="task_type" name="task_type">
26
+ <select class="form-control" id="task_type" name="task_type" onchange="$('.btn.btn-secondary').removeClass('btn-secondary').addClass('btn-primary')" >
23
27
<option value="" tal:content="python:'----- %s -----'%(here.getZMILangStr('ACTION_SELECT')%here.getZMILangStr('ATTR_DISPLAY'))">--- ACTION_SELECT%ATTR_DISPLAY ---</option>
24
28
<option tal:repeat="wfActivity python:here.getWfActivities()" tal:attributes="value python:wfActivity['id']; selected python:['','selected'][int(request.get('task_type','')==wfActivity['id'])]" tal:content="python:wfActivity['name']">the name</option>
25
29
<option tal:repeat="id task_ids" tal:attributes="value id; selected python:['','selected'][int(request.get('task_type','')==id)]" tal:content="python:here.getZMILangStr(id)">the name</option>
59
63
60
64
<tal:block tal:condition="python:request['task_type']=='TASK_CHANGED_BY_DATE'">
61
65
<tal:block tal:define="
62
- obj_tuples python:[ ( x.attr('change_dt'), x ) for x in [here]+here.getTreeNodes(request) ];
63
- obj_tuples python:sorted(obj_tuples, key=lambda obj: obj[0], reverse=True);
64
- global obs python:[obj[1] for obj in obj_tuples]"></tal:block>
66
+ obj_tuples python:[ ( x.attr('change_dt'), x ) for x in [here]+here.getTreeNodes(request) ];
67
+ obj_tuples python:sorted(obj_tuples, key=lambda obj: obj[0], reverse=True);
68
+ global obs python:[obj[1] for obj in obj_tuples]"></tal:block>
65
69
</tal:block>
66
70
67
71
<tal:block tal:condition="python:request['task_type'] not in task_ids">
76
80
</tal:block>
77
81
</tal:block>
78
82
79
- <form class="form-horizontal" method="get"
83
+ <form class="form-horizontal task_list " method="get"
80
84
tal:attributes="id python:request.get('task_type', None)"
81
85
tal:content="structure python:here.zmi_manage_main_grid(obs=obs)">
82
86
zmi_manage_main_grid
87
91
</tal:block>
88
92
</div><!-- #zmi-tab -->
89
93
<footer tal:replace="structure python:here.zmi_body_footer(here,request)">zmi_body_footer</footer>
90
- <script>
91
- // <!--
92
- $(function() {
93
- $('.btn.btn-primary').on('click',function() {
94
- $(this).html('<i class="fas fa-spinner fa-spin"></i>')
95
- })
96
- });
97
- //-->
98
- </script>
99
94
<style>
100
- /* <!-- */
101
- .zmi.tasks #TASK_INACTIVE_NODES .breadcrumb li.breadcrumb-item.active {
95
+ /* <!-- */
96
+ form.task_list #TASK_INACTIVE_NODES .breadcrumb li.breadcrumb-item.active {
102
97
max-width: unset !important;
103
98
overflow: unset;
104
99
text-overflow: unset;
105
100
}
106
- .zmi.tasks #TASK_INACTIVE_NODES .breadcrumb li.breadcrumb-item.active a {
101
+ form.task_list #TASK_INACTIVE_NODES .breadcrumb li.breadcrumb-item.active a {
107
102
text-decoration: line-through;
108
103
}
109
- /* --> */
104
+ form.task_list .zmi-manage-main-change {
105
+ white-space: nowrap;
106
+ text-align: right;
107
+ }
108
+ form.task_list .zmi-manage-main-change .zmi-change-uid {
109
+ margin-right: .35em;
110
+ }
111
+ form.task_list .zmi-manage-main-change i {
112
+ line-height: 1.25;
113
+ }
114
+ /* --> */
110
115
</style>
111
116
</body>
112
117
</html>
0 commit comments