@@ -178,53 +178,73 @@ <h2 style="color: red">{{ warning }}</h2>
178178
179179 {% block custom_controls %}
180180<!------------------- Custom Controls - in addition to script parameters ------------>
181- < table cellspacing ='3 ' style ="margin-left:auto; margin-right:auto ">
182- < tr >
183- < td > </ td >
184- < td colspan ="{{ channels|length }} " align ="center ">
185- < div title ="If true, all split panels are greyscale ">
186- Split Panels Grey:
187- < input type ="checkbox " name ="Split_Panels_Grey " />
188- </ div >
189- </ td >
190- < td align ="center ">
191- < div style ="height:20px " title ="If true, label the merged panel with channel names. Otherwise label with 'Merged' ">
192- Merged Names: < input type ="checkbox " name ="Merged_Names " checked ="True "/>
193- </ div >
194- </ td >
195- </ tr >
196- < tr >
197- < td title ="Label images with Image name (default) or datasets or tags " valign ="bottom ">
198- < select name ="Image_Labels " style ="margin-right:20px ">
199- < option value ="Image Name " selected ="True " > Image Name</ option >
200- < option value ="Datasets " > Datasets</ option >
201- < option value ="Tags " > Tags</ option >
181+ < table cellspacing ='3 ' style ="margin-left:auto; margin-right:auto ">
182+ < tr >
183+ < td > </ td >
184+ < td colspan ="{{ channels|length }} " align ="center ">
185+ < div title ="If true, all split panels are greyscale ">
186+ Split Panels Grey:
187+ < input type ="checkbox " name ="Split_Panels_Grey " />
188+ </ div >
189+ </ td >
190+ < td align ="center ">
191+ < div style ="height:20px " title ="If true, label the merged panel with channel names. Otherwise label with 'Merged' ">
192+ Merged Names: < input type ="checkbox " name ="Merged_Names " checked ="True "/>
193+ </ div >
194+ </ td >
195+ </ tr >
196+ < tr >
197+ < td title ="Label images with Image name (default) or datasets or tags " valign ="bottom ">
198+ < select name ="Image_Labels " style ="margin-right:20px ">
199+ < option value ="Image Name " selected ="True " > Image Name</ option >
200+ < option value ="Datasets " > Datasets</ option >
201+ < option value ="Tags " > Tags</ option >
202+ {% if custom_labels_supported %}
203+ < option value ="Custom " > Custom</ option >
204+ {% endif %}
205+ </ select >
206+ </ td >
207+ {% for c in channels %}
208+ < td id ="split_channels " valign ="bottom ">
209+ < div class ="toggle_channel " style ="background:#{{c.getColor.getHtml}} ">
210+ < input type ="text " size ='10 ' name ="{{ forloop.counter0 }}cName " value ="{{ c.getLabel }} " />
211+ < input type ="checkbox " name ="{{ forloop.counter0 }}cActive " checked ="true " />
212+ </ div >
213+ </ td >
214+ {% endfor %}
215+ < td align ="center " valign ="bottom ">
216+ < table style ="padding-left:10px ">
217+ < tr > < td width ="15 "> </ td >
218+ {% for c in channels %}
219+ < td >
220+ < div id ="merged_channels " class ="toggle_channel " style ="background:#{{c.getColor.getHtml}} ">
221+ < input type ="checkbox " name ="{{ forloop.counter0 }}cMerged "
222+ {% if c.isActive %}checked ="true "{% endif %} value ="{{c.getColor.getInt}} "/>
223+ </ div >
224+ </ td >
225+ {% endfor %}
226+ </ tr >
227+ </ table >
228+ </ td >
229+ </ tr >
230+ </ table >
231+ {% if custom_labels_supported %}
232+ < hr />
233+
234+ < div title ="Custom label " class ="customLabelInput " align ="center " style ="display:none;position:relative;left:float; ">
235+ Custom label:
236+ < input type ="text " name ="Custom_Label " value ="" />
237+ < select name ="Image_Custom_Label_List " style ="margin-right:20px;display:none; ">
238+ < option value ="All " selected ="True "> All Images</ option >
239+ {% for imgData in imgDict %}
240+ < option value ="{{ imgData.id }} "> {{imgData.name}}</ option >
241+ {% endfor %}
202242 </ select >
203- </ td >
204- {% for c in channels %}
205- < td id ="split_channels " valign ="bottom ">
206- < div class ="toggle_channel " style ="background:#{{c.getColor.getHtml}} ">
207- < input type ="text " size ='10 ' name ="{{ forloop.counter0 }}cName " value ="{{ c.getLabel }} " />
208- < input type ="checkbox " name ="{{ forloop.counter0 }}cActive " checked ="true " />
209- </ div >
210- </ td >
211- {% endfor %}
212- < td align ="center " valign ="bottom ">
213- < table style ="padding-left:10px ">
214- < tr > < td width ="15 "> </ td >
215- {% for c in channels %}
216- < td >
217- < div id ="merged_channels " class ="toggle_channel " style ="background:#{{c.getColor.getHtml}} ">
218- < input type ="checkbox " name ="{{ forloop.counter0 }}cMerged "
219- {% if c.isActive %}checked ="true "{% endif %} value ="{{c.getColor.getInt}} "/>
220- </ div >
221- </ td >
222- {% endfor %}
223- </ tr >
224- </ table >
225- </ td >
226- </ tr >
227- </ table >
243+ </ div >
244+ < div title ="All custom labels " class ="allLabels " style ="display:none ">
245+ < input type ="text " name ="All_labels " value ="" />
246+ </ div >
247+ {% endif %}
228248 {% endblock %}
229249
230250<!---------------------------- FIGURE PREVIEW ---------------------->
@@ -270,6 +290,9 @@ <h2 style="color: red">{{ warning }}</h2>
270290 < div > {{ d }}</ div >
271291 {% endfor %}
272292 </ div >
293+ < div class ="customLabel{{ imgData.id }} " style ="display:none ">
294+ < span id ="customLabelText "> </ span >
295+ </ div >
273296 </ td >
274297 {% for ch in channels %}
275298 < td class ="split_column ">
0 commit comments