styling
This commit is contained in:
parent
5d6fe231e3
commit
2a5f8f80cb
|
@ -9,6 +9,6 @@
|
||||||
<p>Damit sie aktiv wird, muss der Knoten neugestartet werden.</p>
|
<p>Damit sie aktiv wird, muss der Knoten neugestartet werden.</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="<%=disp.build_url("wizard", "completed", "reboot")%>">Jetzt neustarten!</a>
|
<a class="btn primary" href="<%=disp.build_url("wizard", "completed", "reboot")%>">Jetzt neustarten!</a>
|
||||||
</p>
|
</p>
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<%
|
<%
|
||||||
local disp = require "luci.dispatcher"
|
local disp = require "luci.dispatcher"
|
||||||
local f = io.popen("/etc/init.d/fastd show-key ffhl_mesh_vpn", "r")
|
local f = io.popen("/etc/init.d/fastd show_key ffhl_mesh_vpn", "r")
|
||||||
local key = f:read("*a")
|
local key = f:read("*a")
|
||||||
f:close()
|
f:close()
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h2>Schlüsselaustausch</h2>
|
<h2>Schlüsselaustausch</h2>
|
||||||
<p>Dies ist der öffentliche Schlüssel deines Freifunkknotens. Bitte schicke ihn an freifunk.luebeck@asta.uni-luebeck.de um ihn auf den Freifunkservern eintragen zu lassen. Sobald der Schlüssel eingetragen wurde, kann dein Knoten das Mesh-VPN nutzen.</p>
|
<p>Dies ist der öffentliche Schlüssel deines Freifunkknotens. Bitte schicke ihn an freifunk.luebeck@asta.uni-luebeck.de um ihn auf den Freifunkservern eintragen zu lassen. Sobald der Schlüssel eingetragen wurde, kann dein Knoten das Mesh-VPN nutzen.</p>
|
||||||
<pre>
|
<div style="text-align: center;font-size: 2em;line-height: 1em; background: #f5f5f5; border: 1px solid #ececec; margin-bottom: 0.5em; padding: 0.5em">
|
||||||
<%=key%>
|
<%=key%>
|
||||||
</pre>
|
</div>
|
||||||
<%+ffhl-wizard/nav%>
|
<%+ffhl-wizard/nav%>
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
|
@ -2,15 +2,18 @@
|
||||||
local nav = require "luci.tools.ffhl-wizard.nav"
|
local nav = require "luci.tools.ffhl-wizard.nav"
|
||||||
local predecessor, successor = nav.get()
|
local predecessor, successor = nav.get()
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<% if predecessor then %>
|
|
||||||
<a href="<%=luci.dispatcher.build_url("wizard", predecessor.href)%>">
|
|
||||||
Zurück
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% if not have_form and successor then %>
|
<div class="actions">
|
||||||
<a href="<%=luci.dispatcher.build_url("wizard", successor.href)%>">
|
|
||||||
|
<% if successor then %>
|
||||||
|
<a class="btn primary" href="<%=luci.dispatcher.build_url("wizard", successor.href)%>">
|
||||||
Weiter
|
Weiter
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if predecessor then %>
|
||||||
|
<a class="btn" href="<%=luci.dispatcher.build_url("wizard", predecessor.href)%>">
|
||||||
|
Zurück
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h2>Willkommen auf deinem Freifunkknoten!</h2>
|
<h2>Willkommen auf deinem Freifunkknoten!</h2>
|
||||||
<p>Dieser Wizard hilft dir deinen Freifunkknoten einzurichten.</p>
|
<p>Dieser Wizard hilft dir deinen Freifunkknoten einzurichten.</p>
|
||||||
|
|
||||||
<% if not have_form and successor then %>
|
<div class="actions">
|
||||||
|
<% if successor then %>
|
||||||
<a class="btn primary" href="<%=luci.dispatcher.build_url("wizard", successor.href)%>">
|
<a class="btn primary" href="<%=luci.dispatcher.build_url("wizard", successor.href)%>">
|
||||||
Knoten neu einrichten
|
Knoten neu einrichten
|
||||||
</a>
|
</a>
|
||||||
|
@ -16,5 +17,6 @@
|
||||||
<a class="btn" href="<%=luci.dispatcher.build_url("admin", "system", "flashops")%>">
|
<a class="btn" href="<%=luci.dispatcher.build_url("admin", "system", "flashops")%>">
|
||||||
Firmware upgrade einspielen
|
Firmware upgrade einspielen
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
<div class="actions">
|
||||||
<% if redirect then %>
|
<% if redirect then %>
|
||||||
<div style="float:left">
|
<div style="float:left">
|
||||||
<input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
|
<input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
|
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
|
||||||
<% end %>
|
<% end %>
|
||||||
<%- if self.submit ~= false then %>
|
<%- if self.submit ~= false then %>
|
||||||
<input class="cbi-button cbi-button-save" type="submit" value="
|
<input class="cbi-button cbi-button-save btn primary" type="submit" value="
|
||||||
<%- if not self.submit then -%>Weiter<%-else-%><%=self.submit%><%end-%>
|
<%- if not self.submit then -%>Weiter<%-else-%><%=self.submit%><%end-%>
|
||||||
" />
|
" />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -51,11 +52,16 @@
|
||||||
<%- if not self.cancel then -%><%-:Cancel-%><%-else-%><%=self.cancel%><%end-%>
|
<%- if not self.cancel then -%><%-:Cancel-%><%-else-%><%=self.cancel%><%end-%>
|
||||||
" />
|
" />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<%
|
||||||
|
local nav = require "luci.tools.ffhl-wizard.nav"
|
||||||
|
local predecessor, successor = nav.get()
|
||||||
|
%>
|
||||||
|
<% if predecessor then %>
|
||||||
|
<a class="btn" href="<%=luci.dispatcher.build_url("wizard", predecessor.href)%>">
|
||||||
|
Zurück
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
<script type="text/javascript">cbi_d_update();</script>
|
<script type="text/javascript">cbi_d_update();</script>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% have_form = true %>
|
|
||||||
|
|
||||||
<%+ffhl-wizard/nav%>
|
|
||||||
|
|
Loading…
Reference in New Issue