luci/applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm
Xingwang Liao f90de782a7
luci-app-aria2: Refactor, new views and more options
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>
2019-07-01 14:28:54 +08:00

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%>