* luci/libs: improved cbi templates
* luci/modules: fix layout of sshkeys page in admin-full
This commit is contained in:
parent
027effe9c8
commit
8591d4e396
3 changed files with 23 additions and 21 deletions
|
@ -18,7 +18,9 @@ $Id$
|
||||||
<% if self.title and #self.title > 0 then -%>
|
<% if self.title and #self.title > 0 then -%>
|
||||||
<legend><%=self.title%></legend>
|
<legend><%=self.title%></legend>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<% if self.description and #self.description > 0 then -%>
|
||||||
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
|
<%- end %>
|
||||||
<% if self.addremove then -%>
|
<% if self.addremove then -%>
|
||||||
<div class="cbi-section-remove right">
|
<div class="cbi-section-remove right">
|
||||||
<input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del%>" />
|
<input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del%>" />
|
||||||
|
|
|
@ -21,8 +21,8 @@ end
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<!-- tblsection -->
|
<!-- tblsection -->
|
||||||
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
|
||||||
<h2><%=self.title%></h2>
|
<legend><%=self.title%></legend>
|
||||||
<div class="cbi-section-descr"><%=self.description%></div>
|
<div class="cbi-section-descr"><%=self.description%></div>
|
||||||
<div class="cbi-section-node">
|
<div class="cbi-section-node">
|
||||||
<%- local count = 0 -%>
|
<%- local count = 0 -%>
|
||||||
|
@ -104,5 +104,5 @@ end
|
||||||
</div>
|
</div>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
<!-- /tblsection -->
|
<!-- /tblsection -->
|
||||||
|
|
|
@ -12,28 +12,28 @@ You may obtain a copy of the License at
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h1><%:system%></h1>
|
|
||||||
<h2><%:a_s_sshkeys%></h2>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div><%:a_s_sshkeys1%></div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<form method="post" action="<%=controller%>/admin/system/sshkeys">
|
<form method="post" action="<%=controller%>/admin/system/sshkeys">
|
||||||
<div class="cbi-section-node" style="width: 100%">
|
<div class="cbi-map">
|
||||||
<div class="cbi-value">
|
<h1><%:a_s_sshkeys%></h1>
|
||||||
<div class="cbi-value-field">
|
<div class="cbi-map-descr">
|
||||||
<textarea style="width: 100%" rows="10" name="data"><%=cnt%></textarea>
|
<%:a_s_sshkeys1%>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<fieldset class="cbi-section">
|
||||||
|
<legend><%:a_s_sshkeys%></legend>
|
||||||
|
<textarea style="width: 100%" rows="10" name="data" wrap="off"><%=cnt%></textarea>
|
||||||
|
<% if msg then -%>
|
||||||
|
<div class="cbi-error"><%:error%>: <%=msg%></div>
|
||||||
|
<% end %>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<input type="submit" value="<%:save%>" />
|
<input type="submit" value="<%:save%>" class="cbi-button cbi-button-save" />
|
||||||
<input type="reset" value="<%:reset%>" />
|
<input type="reset" value="<%:reset%>" class="cbi-button cbi-button-reset" />
|
||||||
</div>
|
</div>
|
||||||
<% if msg then %><br /><div class="error"><%:error%>: <%=msg%></div><% end %>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<%+footer%>
|
<%+footer%>
|
Loading…
Reference in a new issue