summaryrefslogblamecommitdiffstats
path: root/modules-available/locationinfo/templates/page-panels.html
blob: 5187335ab40d5575c2af812c127e32bd35a49616 (plain) (tree)
1
2
3
4
5
6
7



                                


                                                               





                                           
                               
                                                                                       
                               

                                                                         


                


                                    
                                                                                                        




                                                     
                                                                                                                  
                                                     
                                                                            
                                     
                                               
                                                                

                                                                                                                                                          
                                                                                                       
                                                    
                                                                                                   

                                               
                                                        

                                                                                                                   
                                                                                              

                                            
                                                        

                                                                                                                                      
                                                                                               



                                                 

                
       
 

                                                                                                    


                                                              
                                                                                                    


                                                              
                                                                                                


                                                              
      
                                                                         
<h2>{{lang_panelsTable}}</h2>

<p>{{lang_panelsTableHints}}</p>

<form method="post" action="?do=locationinfo">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="deletePanel">
<table class="table table-hover">
	<thead>
	<tr>
		<th>{{lang_panel}}</th>
		<th>{{lang_panelType}}</th>
		<th>{{lang_locations}}</th>
		{{#hasRunmode}}
			<th class="text-center slx-smallcol">{{lang_runmodeTHead}}</th>
		{{/hasRunmode}}
		<th class="text-center slx-smallcol">{{lang_edit}}</th>
		<th class="text-center slx-smallcol">{{lang_delete}}</th>
	</tr>
	</thead>
	<tbody>
		{{#panels}}
			<tr>
				<td>
					<a href="/panel/{{paneluuid}}" target="_blank">{{panelname}}</a>
				</td>
				<td>
					{{paneltype}}
				</td>
				<td>
					{{#locationurl}}<a href="{{locationurl}}" target="_blank">{{/locationurl}}
					{{locations}}
					{{#locationurl}}</a>{{/locationurl}}
				</td>
				{{#hasRunmode}}
					<td class="text-nowrap">
						<a class="btn btn-default btn-xs {{runmode_disabled}}"
							href="?do=runmode&amp;module=locationinfo&amp;modeid={{paneluuid}}&amp;redirect=?do=locationinfo">
							<span class="glyphicon glyphicon-tasks"></span>
						</a>
						<span class="badge">{{assignedMachineCount}}</span>
					</td>
				{{/hasRunmode}}
				<td class="text-center">
					<a class="btn btn-default btn-xs {{edit_disabled}}"
						href="?do=locationinfo&amp;show=edit-panel&amp;uuid={{paneluuid}}">
						<span class="glyphicon glyphicon-edit"></span>
					</a>
				</td>
				<td class="text-center">
					<button type="submit" name="uuid" value="{{paneluuid}}" class="btn btn-xs btn-danger"
							  data-confirm="#confirm-delete" data-title="{{panelname}}" {{edit_disabled}}>
						<span class="glyphicon glyphicon-trash"></span>
					</button>
				</td>
			</tr>
		{{/panels}}
	</tbody>
</table>
</form>

<div class="buttonbar text-right">
	<a class="btn btn-success" href="?do=locationinfo&amp;show=edit-panel&amp;uuid=new-default">
		<span class="glyphicon glyphicon-plus"></span>
		{{lang_defaultPanel}}
	</a>
	<a class="btn btn-success" href="?do=locationinfo&amp;show=edit-panel&amp;uuid=new-summary">
		<span class="glyphicon glyphicon-plus"></span>
		{{lang_summaryPanel}}
	</a>
	<a class="btn btn-success" href="?do=locationinfo&amp;show=edit-panel&amp;uuid=new-url">
		<span class="glyphicon glyphicon-plus"></span>
		{{lang_urlPanel}}
	</a>
</div>
<div class="hidden" id="confirm-delete">{{lang_deleteConfirmation}}</div>