@@ -13,7 +13,7 @@ <h3>New Job: <span class="font-weight-bold">Transform Document</span></h3>
13
13
< form id ="job_init_form " method ="POST " action ="{% url 'job_transform' org_id=record_group.organization.id record_group_id=record_group.id %} ">
14
14
15
15
{% csrf_token %}
16
-
16
+
17
17
< div class ="row ">
18
18
< div class ="col-md-12 ">
19
19
<!-- optional job details -->
@@ -51,7 +51,7 @@ <h3>New Job: <span class="font-weight-bold">Transform Document</span></h3>
51
51
52
52
< div class ="row ">
53
53
< div class ="col-md-12 ">
54
-
54
+
55
55
< div class ="alert alert-danger alert-dismissible fade show " role ="alert ">
56
56
The following are < strong > required</ strong > parameters for this Job
57
57
< button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close ">
@@ -78,7 +78,7 @@ <h4>Select Transformation Scenarios</h4>
78
78
< h6 > Available Transformations</ h6 >
79
79
< ul class ="draggable_ul available_transforms ">
80
80
{% for transformation in transformations %}
81
- < li data-trans_id ={{transformation.id}} > < button class ="draggable_button btn-outline-primary btn-sm "> {{transformation.name}}</ button > </ li >
81
+ < li data-trans_id ={{transformation.id}} > < span class ="draggable_span "> {{transformation.name}}</ span > </ li >
82
82
{% endfor %}
83
83
</ ul >
84
84
</ div >
@@ -93,26 +93,26 @@ <h6>Selected Transformations</h6>
93
93
< script >
94
94
95
95
// init available transforms
96
- var available = sortable ( '.available_transforms' , {
97
- acceptFrom : ".selected_transforms, .available_transforms" ,
96
+ var available = sortable ( '.available_transforms' , {
97
+ acceptFrom : ".selected_transforms, .available_transforms" ,
98
98
items :'li' ,
99
99
forcePlaceholderSize : true ,
100
- placeholderClass : 'ph-class' ,
100
+ placeholderClass : 'ph-class' ,
101
101
} ) ;
102
102
103
103
// init selected transforms
104
- var selected = sortable ( '.selected_transforms' , {
105
- acceptFrom : ".available_transforms, .selected_transforms" ,
104
+ var selected = sortable ( '.selected_transforms' , {
105
+ acceptFrom : ".available_transforms, .selected_transforms" ,
106
106
items :'li' ,
107
107
forcePlaceholderSize : true ,
108
- placeholderClass : 'ph-class' ,
108
+ placeholderClass : 'ph-class' ,
109
109
} ) ;
110
110
111
-
111
+
112
112
function ser_sel_trans ( ) {
113
113
114
114
/*
115
- Function to serialize and capture ordered transformation ids
115
+ Function to serialize and capture ordered transformation ids
116
116
117
117
Args:
118
118
None
@@ -124,7 +124,7 @@ <h6>Selected Transformations</h6>
124
124
125
125
sel_trans_obj = [ ] ;
126
126
127
- // serialize
127
+ // serialize
128
128
sel_trans = sortable ( '.selected_transforms' , 'serialize' ) [ 0 ] ;
129
129
130
130
// loop
@@ -133,7 +133,7 @@ <h6>Selected Transformations</h6>
133
133
sel_trans_obj . push ( {
134
134
'index' :trans . index ,
135
135
'trans_id' :parseInt ( trans . node . attributes [ 'data-trans_id' ] . value )
136
- } )
136
+ } )
137
137
}
138
138
139
139
// debug
@@ -154,7 +154,7 @@ <h6>Selected Transformations</h6>
154
154
155
155
// set hidden input with serialized JSON
156
156
sel_trans_json = JSON . stringify ( sel_trans_obj )
157
- $ ( "#sel_trans_json" ) . val ( sel_trans_json ) ;
157
+ $ ( "#sel_trans_json" ) . val ( sel_trans_json ) ;
158
158
159
159
} ) ;
160
160
@@ -165,14 +165,14 @@ <h6>Selected Transformations</h6>
165
165
166
166
<!-- Optional Job Processing -->
167
167
{% include 'core/job_optional_processing.html' %}
168
-
168
+
169
169
< button type ="submit " class ="btn btn-success btn-sm "> Run Transform Job < i class ="la la-play "> </ i > </ button >
170
170
171
171
</ form >
172
172
173
173
<!-- Modals -->
174
174
{% include 'core/job_spec_input_filters.html' %}
175
-
175
+
176
176
</ div >
177
177
</ div >
178
178
0 commit comments