summaryrefslogblamecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/templates/bootentry-list.html
blob: edfc0e5f511cf61b5ff3596fcbc0959519794ab6 (plain) (tree)
1
2
3
4
5
6
7
8
9





                               


                     
                                         
                                                

                                                               
                                                           
                                                                                       






                                                             


                                   




                                  


                                  
                                   
                                                                                                                           






                                                                                                                                              
                            
                     
                              
                                   
                                      




                                                                                                                                                                                    
                                      





                           





                                                                                         

      

                            



























                                                                                                                                                                                                   
<h2>{{lang_bootentryHead}}</h2>

<p>
	{{lang_bootentryIntro}}
</p>

<table class="table">
	<thead>
	<tr>
		<th>{{lang_entryId}}</th>
		<th>{{lang_bootentryTitle}}</th>
		<th>{{lang_hotkey}}</th>
		<th class="slx-smallcol">{{lang_refCount}}</th>
		<th class="slx-smallcol">{{lang_edit}}</th>
		{{#allowEdit}}<th class="slx-smallcol">{{lang_copy}}</th>{{/allowEdit}}
		<th class="slx-smallcol">{{lang_delete}}</th>
	</tr>
	</thead>
	<tbody>
	{{#bootentryTable}}
	<tr>
		<td>
			{{entryid}}
		</td>
		<td>
			{{title}}
		</td>
		<td>
			{{hotkey}}
		</td>
		<td align="right">
			{{refs}}
		</td>
		<td align="center">
			<a href="?do=serversetup&amp;show=editbootentry&amp;id={{entryid}}" class="btn btn-xs btn-default">
				<span class="glyphicon glyphicon-{{#allowEdit}}edit{{/allowEdit}}{{^allowEdit}}eye-open{{/allowEdit}}"></span>
			</a>
		</td>
		{{#allowEdit}}
		<td align="center">
			<a href="?do=serversetup&amp;show=editbootentry&amp;id={{entryid}}&copy=true" class="btn btn-xs btn-default">
				<span class="glyphicon glyphicon-duplicate"></span>
			</a>
		</td>
		{{/allowEdit}}
		<td align="center">
			{{#allowEdit}}
				{{^builtin}}
					<button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal" onclick="deleteBootentry('{{entryid}}')">
						<span class="glyphicon glyphicon-trash"></span>
					</button>
				{{/builtin}}
			{{/allowEdit}}
		</td>
	</tr>
	{{/bootentryTable}}
	</tbody>
</table>
<div class="pull-right">
	{{#allowEdit}}
		<a href="?do=serversetup&amp;show=editbootentry" class="btn btn-success">
			<span class="glyphicon glyphicon-plus"></span>
			{{lang_addBootentry}}
		</a>
	{{/allowEdit}}
</div>

<div class="clearfix"></div>

<!-- Modals -->
<form method="post" action="?do=serversetup">
	<input type="hidden" name="token" value="{{token}}">
	<div class ="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="myModalLabel">{{lang_delete}}</h4>
				</div>
				<div class="modal-body">
					<p>{{lang_bootentryDeleteConfirm}}</p>
				</div>
				<div class="modal-footer">
					<input type="hidden" id="delete-bootentry-id" name="deleteid" value="">
					<button type="button" class="btn btn-default" data-dismiss="modal">{{lang_cancel}}</button>
					<button type="submit" name="action" value="deleteBootentry" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> {{lang_delete}}</button>
				</div>
			</div>
		</div>
	</div>
</form>

<script>
	function deleteBootentry(entryid) {
		$("#delete-bootentry-id").val(entryid);
	}
</script>