summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm
diff options
context:
space:
mode:
authorXingwang Liao <kuoruan@gmail.com>2019-03-29 17:09:37 +0800
committerXingwang Liao <kuoruan@gmail.com>2019-07-01 14:28:54 +0800
commitf90de782a758ad1c702e2ae9403e415d8592eac5 (patch)
tree0412c837b306840342f9aff8f85b3c33c2c9cb14 /applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm
parent9a979e6db5de1c268dfd35099e58187439919df9 (diff)
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>
Diffstat (limited to 'applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm')
-rw-r--r--applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm22
1 files changed, 22 insertions, 0 deletions
diff --git a/applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm b/applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm
new file mode 100644
index 0000000000..487e107b6d
--- /dev/null
+++ b/applications/luci-app-aria2/luasrc/view/aria2/value_with_btn.htm
@@ -0,0 +1,22 @@
+<%#
+ 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%>