gluon-config-mode: use welcome text from site.conf
This commit is contained in:
parent
1e348ddd45
commit
ad2d413f23
@ -6,8 +6,9 @@ local f, s, o
|
|||||||
-- prepare fastd key as early as possible
|
-- prepare fastd key as early as possible
|
||||||
configmode.setup_fastd_secret(meshvpn_name)
|
configmode.setup_fastd_secret(meshvpn_name)
|
||||||
|
|
||||||
f = SimpleForm("wizard", "Willkommen!", "Willkommen zum Einrichtungsassistenten für deinen neuen Lübecker Freifunk-Knoten. Fülle das folgende Formular deinen Vorstellungen entsprechend aus und klicke anschließend auf den „Senden“-Button.")
|
f = SimpleForm("wizard")
|
||||||
f.reset = false
|
f.reset = false
|
||||||
|
f.template = "gluon-config-mode/cbi/wizard"
|
||||||
|
|
||||||
s = f:section(SimpleSection, nil, nil)
|
s = f:section(SimpleSection, nil, nil)
|
||||||
|
|
||||||
|
@ -0,0 +1,62 @@
|
|||||||
|
<h2>Willkommen!</h2>
|
||||||
|
<p>
|
||||||
|
@config_mode.msg_welcome@
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<% if not self.embedded then %>
|
||||||
|
<form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>">
|
||||||
|
<div>
|
||||||
|
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
|
||||||
|
<input type="hidden" name="cbi.submit" value="1" />
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div class="cbi-map" id="cbi-<%=self.config%>">
|
||||||
|
<% if self.title and #self.title > 0 then %><h2><a id="content" name="content"><%=self.title%></a></h2><% end %>
|
||||||
|
<% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %>
|
||||||
|
<% self:render_children() %>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
<%- if self.message then %>
|
||||||
|
<div><%=self.message%></div>
|
||||||
|
<%- end %>
|
||||||
|
<%- if self.errmessage then %>
|
||||||
|
<div class="error"><%=self.errmessage%></div>
|
||||||
|
<%- end %>
|
||||||
|
<% if not self.embedded then %>
|
||||||
|
<div class="cbi-page-actions">
|
||||||
|
<%-
|
||||||
|
if type(self.hidden) == "table" then
|
||||||
|
for k, v in pairs(self.hidden) do
|
||||||
|
-%>
|
||||||
|
<input type="hidden" id="<%=k%>" name="<%=k%>" value="<%=pcdata(v)%>" />
|
||||||
|
<%-
|
||||||
|
end
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<% if redirect then %>
|
||||||
|
<div style="float:left">
|
||||||
|
<input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<%- if self.flow and self.flow.skip then %>
|
||||||
|
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
|
||||||
|
<% end %>
|
||||||
|
<%- if self.submit ~= false then %>
|
||||||
|
<input class="cbi-button cbi-button-save" type="submit" value="
|
||||||
|
<%- if not self.submit then -%><%-:Submit-%><%-else-%><%=self.submit%><%end-%>
|
||||||
|
" />
|
||||||
|
<% end %>
|
||||||
|
<%- if self.reset ~= false then %>
|
||||||
|
<input class="cbi-button cbi-button-reset" type="reset" value="
|
||||||
|
<%- if not self.reset then -%><%-:Reset-%><%-else-%><%=self.reset%><%end-%>
|
||||||
|
" />
|
||||||
|
<% end %>
|
||||||
|
<%- if self.cancel ~= false and self.on_cancel then %>
|
||||||
|
<input class="cbi-button cbi-button-reset" type="submit" name="cbi.cancel" value="
|
||||||
|
<%- if not self.cancel then -%><%-:Cancel-%><%-else-%><%=self.cancel%><%end-%>
|
||||||
|
" />
|
||||||
|
<% end %>
|
||||||
|
<script type="text/javascript">cbi_d_update();</script>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<% end %>
|
Loading…
Reference in New Issue
Block a user