Add notice about autoupdater to config mode
This commit is contained in:
		
					parent
					
						
							
								99936deed8
							
						
					
				
			
			
				commit
				
					
						638aef092e
					
				
			
		
					 2 changed files with 12 additions and 0 deletions
				
			
		|  | @ -11,6 +11,15 @@ f.reset = false | |||
| f.template = "gluon-config-mode/cbi/wizard" | ||||
| f.submit = "Fertig" | ||||
| 
 | ||||
| if uci:get_bool("autoupdater", "settings", "enabled")  then | ||||
|   f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>automatisch</b>, | ||||
|   sobald eine neue Version vorliegt. Falls du dies nicht möchtest, | ||||
|   kannst du die Funktion im <i>Expertmode</i> deaktivieren.]]) | ||||
| else | ||||
|   f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>nicht automatisch</b>. | ||||
|   Diese Funktion kannst du im <i>Expertmode</i> aktivieren.]]) | ||||
| end | ||||
| 
 | ||||
| s = f:section(SimpleSection, nil, nil) | ||||
| 
 | ||||
| o = s:option(Value, "_hostname", "Name dieses Knotens") | ||||
|  |  | |||
|  | @ -8,6 +8,9 @@ | |||
| <p> | ||||
| 	<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %> | ||||
| </p> | ||||
| <p> | ||||
| <%=self.data["autoupdater_msg"]%> | ||||
| </p> | ||||
| 
 | ||||
| <% if not self.embedded then %> | ||||
| <form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ohrensessel
				ohrensessel