This commit contains: * Refactor package code. * Add options for RPC, HTTP/HTTPS and BT. * Improve descriptions for some options. * New views for config files and log files. * Also updated translation for simplified Chinese. Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
22 lines
829 B
HTML
22 lines
829 B
HTML
<%#
|
|
Copyright 2017-2019 Xingwang Liao <kuoruan@gmail.com>
|
|
Licensed to the public under the MIT License.
|
|
-%>
|
|
|
|
<%+cbi/valueheader%>
|
|
<input data-update="change" type="text" class="cbi-input-text"<%=
|
|
attr("id", cbid) ..
|
|
attr("name", cbid) ..
|
|
attr("value", self:cfgvalue(section) or self.default) ..
|
|
ifattr(self.size, "size") ..
|
|
ifattr(self.placeholder, "placeholder") ..
|
|
ifattr(self.maxlength, "maxlength") ..
|
|
ifattr(self.datatype, "data-type", self.datatype) ..
|
|
ifattr(self.onmouseover, "onmouseover")
|
|
%> />
|
|
<%- if self.btntext then -%>
|
|
<div class="cbi-button cbi-button-neutral" title="<%=self.btntext%>" aria-label="<%=self.btntext%>"<%=
|
|
ifattr(self.btnclick, "onclick", self.btnclick)
|
|
%>><span style="font-weight: normal;"><%=self.btntext%></span></div>
|
|
<% end %>
|
|
<%+cbi/valuefooter%>
|