luci-app-dockerman: add btn css class to button input 4265/head
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 7 Jul 2020 15:00:40 +0000 (17:00 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 13 Jul 2020 10:54:29 +0000 (12:54 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-dockerman/luasrc/view/dockerman/cbi/inlinebutton.htm
applications/luci-app-dockerman/luasrc/view/dockerman/cbi/inlinevalue.htm
applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm
applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm

index b1b193257197ebf39327808b425b771517efb052..a061a6dba64534dfd473a44c71858224f497fd76 100644 (file)
@@ -1,6 +1,6 @@
 <div style="display: inline-block;">
        <% if self:cfgvalue(section) ~= false then %>
-               <input class="cbi-button cbi-button-<%=self.inputstyle or "button" %>" type="submit"" <% if self.disable then %>disabled <% end %><%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> />
+               <input class="btn cbi-button cbi-button-<%=self.inputstyle or "button" %>" type="submit"" <% if self.disable then %>disabled <% end %><%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> />
        <% else %>
                -
        <% end %>
index 51c97f5c975bb91172052a167d11e536f3db8a6d..e4b0cf7a080bc253346201df8c9466efd6540bec 100644 (file)
@@ -28,6 +28,6 @@
                ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist })
        %> />
        <%- if self.password then -%>
-               <div class="cbi-button cbi-button-neutral" title="<%:Reveal/hide password%>" onclick="var e = this.previousElementSibling; e.type = (e.type === 'password') ? 'text' : 'password'">∗</div>
+               <div class="btn cbi-button cbi-button-neutral" title="<%:Reveal/hide password%>" onclick="var e = this.previousElementSibling; e.type = (e.type === 'password') ? 'text' : 'password'">∗</div>
        <% end %>
 </div>
index c0778329fffaecc2bbe20f0ae8c6e907c55e3840..8be43fbddbbae1f30b08d1f45695717caf5e6d36 100644 (file)
@@ -11,8 +11,8 @@
   </div>
   <br>
   <div class="cbi-value-field">
-    <input type="button"" class="cbi-button cbi-button-action important" id="upload" name="upload" value="<%:Upload%>" />
-    <input type="button"" class="cbi-button cbi-button-action important" id="download" name="download" value="<%:Download%>" />
+    <input type="button"" class="btn cbi-button cbi-button-action important" id="upload" name="upload" value="<%:Upload%>" />
+    <input type="button"" class="btn cbi-button cbi-button-action important" id="download" name="download" value="<%:Download%>" />
   </div>
 </div>
 <script type="text/javascript">
index eafb65490ae3cdc37cb93cf18952db302ba803cc..6587087b6df197ac56696f82239f4d05d9f1f475 100644 (file)
@@ -1,7 +1,7 @@
 <input type="text" class="cbi-input-text" name="isrc" placeholder="http://host/image.tar" id="isrc" />
 <input type="text" class="cbi-input-text" name="itag" placeholder="repository:tag" id="itag" />
 <div style="display: inline-block;">
-  <input type="button"" class=" cbi-button cbi-button-add" id="btnimport" name="import" value="<%:Import%>" />
+  <input type="button"" class="btn cbi-button cbi-button-add" id="btnimport" name="import" value="<%:Import%>" />
   <input type="file" id="file_import" style="visibility:hidden; position: absolute;top: 0px; left: 0px;" />
 </div>
 
index 4fe34e1bad6e73182e2809ddbf5aa0e655d5bb30..3ea4bd06638e72a9a9c87422c17a50a2cfd4fa87 100644 (file)
@@ -1,5 +1,5 @@
 <div style="display: inline-block;">
-  <input type="button"" class="cbi-button cbi-button-add" id="btnload" name="load" value="<%:Load%>" />
+  <input type="button"" class="btn cbi-button cbi-button-add" id="btnload" name="load" value="<%:Load%>" />
   <input type="file" id="file_load" style="visibility:hidden; position: absolute;top: 0px; left: 0px;" accept="application/x-tar" />
 </div>
 <script type="text/javascript">
index 50d88740d95209b845d36d835f3690014b740361..1b130b4ec6630a7e7c1ad2ebc35f7e883d13acb8 100644 (file)
@@ -82,7 +82,7 @@
   }
 
   function show_reslov_dialog() {
-    document.getElementById('dialog_reslov') || document.body.insertAdjacentHTML("beforeend", '<div id="dialog_reslov"><div class="dialog_box"><div class="dialog_line"></div><div class="dialog_line"><span><%:Plese input <docker create/run> command line:%></span><br><span id="cmd-line-status"></span></div><div class="dialog_line"><textarea class="cbi-input-textarea" id="dialog_reslov_text" style="width: 100%; height:100%;" rows="15" onkeyup="clear_text()"></textarea></div><div class="dialog_line" style="text-align: right;"><input type="button" class="cbi-button cbi-button-apply" type="submit" value="<%:Submit%>" onclick="reslov_container()" /> <input type="button" class="cbi-button cbi-button-reset" type="reset" value="<%:Cancel%>" onclick="close_reslov_dialog()" /></div><div class="dialog_line"></div></div></div>')
+    document.getElementById('dialog_reslov') || document.body.insertAdjacentHTML("beforeend", '<div id="dialog_reslov"><div class="dialog_box"><div class="dialog_line"></div><div class="dialog_line"><span><%:Plese input <docker create/run> command line:%></span><br><span id="cmd-line-status"></span></div><div class="dialog_line"><textarea class="cbi-input-textarea" id="dialog_reslov_text" style="width: 100%; height:100%;" rows="15" onkeyup="clear_text()"></textarea></div><div class="dialog_line" style="text-align: right;"><input type="button" class="btn cbi-button cbi-button-apply" type="submit" value="<%:Submit%>" onclick="reslov_container()" /> <input type="button" class="btn cbi-button cbi-button-reset" type="reset" value="<%:Cancel%>" onclick="close_reslov_dialog()" /></div><div class="dialog_line"></div></div></div>')
     document.body.classList.add('dialog-reslov-active')
     let s = document.getElementById('cmd-line-status')
     s.innerHTML = ""
@@ -90,6 +90,6 @@
   }
 </script>
 <%+cbi/valueheader%>
-<input type="button" class="cbi-button cbi-button-apply" value="<%:Command line%>" onclick="show_reslov_dialog()" />
+<input type="button" class="btn cbi-button cbi-button-apply" value="<%:Command line%>" onclick="show_reslov_dialog()" />
 
 <%+cbi/valuefooter%>