summaryrefslogblamecommitdiffstats
path: root/modules-available/sysconfig/templates/list-configs.html
blob: eb67d7a31aacb7338a324c6c256e1e2c7b41ab83 (plain) (tree)



















                                                                                                                                                             
                                                                                                       

                                                    

                                                                                                                                                                                                                        





















                                                                                                                                                                                              
                                                                        
                                                                       







                                                                                                                                                                               
                                                                       
                                                     
                                                                        
                                                                       
                                                                                                                                                                                                                                  
                                                                                                                                                                                                                             
                                                                       




                                                       
                                                                                                                                                   

                                                                          
                                                                                                                      



























                                                                                                                    
                               
                                                     

                                                                                                                          
                               




                                                                             



                                                                                                                 


                                                                        




                              
{{#locationid}}
<div class="col-md-12">
	<h1>{{locationname}}</h1>
	<div class="alert alert-info">
		<span class="glyphicon glyphicon-exclamation-sign"></span>
		{{lang_editingLocationInfo}}
	</div>
</div>
{{/locationid}}
<div class="col-md-6">
	<div class="panel panel-default">
		<div class="panel-heading">
			{{lang_availableSystem}}
			<a class="btn btn-default" data-toggle="modal" data-target="#help-config"><span class="glyphicon glyphicon-question-sign"></span></a>
		</div>
		<div class="panel-body">
			<form method="post" action="?do=SysConfig">
				<input type="hidden" name="token" value="{{token}}">
				<input type="hidden" name="action" value="config">
				<input type="hidden" name="locationid" value="{{locationid}}">
				<table id="conftable" class="slx-table table-hover" style="width:100%">
					{{#configs}}
					<tr>
						<td data-modlist="{{modlist}}" class="slx-pointer" onclick="showmod(this, 'bold')" onmouseover="showmod(this, 'fade')" onmouseout="showmod(this, 'reset')" width="100%">
							<table class="slx-ellipsis"><tr><td>{{config}}</td></tr></table>
						</td>
						<td>
							{{^current}}
							<button class="btn btn-primary btn-xs" name="activate" value="{{configid}}">
								<span class="glyphicon glyphicon-flag"></span>
								{{lang_activate}}
							</button>
							{{/current}}
							{{#current}}
								<span class="btn btn-success btn-xs slx-nopointer">
									<span class="glyphicon glyphicon-ok"></span>
									{{lang_active}}
								</span>
							{{/current}}
						</td>
						<td>
							{{#locationCount}}
							<span class="badge" {{#readableLocList}} data-toggle="tooltip" data-placement="top" title="{{readableLocList}}" {{/readableLocList}} >
							+{{locationCount}}
							</span>
							{{/locationCount}}
						</td>
						<td class="text-nowrap">
							{{^locationid}}
							<button
									{{#needrebuild}}
									class="refconf btn btn-primary btn-xs"
									{{/needrebuild}}
							{{^needrebuild}}
							class="refconf btn btn-default btn-xs"
							{{/needrebuild}}
							name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></button>
							{{/locationid}}
						</td>
						<td class="text-nowrap">
							{{^locationid}}
							<a class="btn btn-success btn-xs" href="?do=SysConfig&amp;action=addconfig&amp;edit={{configid}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a>
							<button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
							{{/locationid}}
						</td>
					</tr>
					{{/configs}}
					{{#locationid}}
					<tr>
						<td><table class="slx-ellipsis"><tr><td><i>{{lang_inheritFromParentLoc}}</i></td></tr></table></td>
						<td>
							{{^inheritConfig}}
							<button class="btn btn-info btn-xs" name="activate" value="0">
								<span class="glyphicon glyphicon-flag"></span>
								{{lang_activate}}
							</button>
							{{/inheritConfig}}
							{{#inheritConfig}}
								<span class="btn btn-success btn-xs slx-nopointer">
									<span class="glyphicon glyphicon-ok"></span>
									{{lang_active}}
								</span>
							{{/inheritConfig}}
						</td>
						<td></td>
						<td></td>
					</tr>
					{{/locationid}}
				</table>
				{{^configs}}
				<div class="alert alert-warning">
					{{lang_systemConfigurationNotFound}}
				</div>
				{{^modules}}
				<div class="alert alert-danger">
					{{lang_systemConfigurationAlert}}
				</div>
				{{/modules}}
				{{/configs}}
			</form>
		</div>
		{{^locationid}}
		<div class="panel-footer text-right">
			<a class="btn btn-primary" href="?do=SysConfig&amp;action=addconfig">{{lang_newConfiguration}}</a>
		</div>
		{{/locationid}}
	</div>

	<div class="modal fade" id="help-config" tabindex="-1" role="dialog">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">&times;</button>
					<h4 class="modal-title"><b>{{lang_systemConfiguration}}</b></h4>
				</div>
				<div class="modal-body">
					{{lang_helpSystemConfiguration}}
				</div>
			</div>
		</div>
	</div>

</div>