Merge pull request #2325 from YuriPet/master
[oweals/luci.git] / modules / luci-mod-system / luasrc / view / admin_system / sshkeys.htm
1 <%+header%>
2
3 <style type="text/css">
4         .cbi-dynlist {
5                 max-width: 100%;
6         }
7 </style>
8
9 <div class="cbi-map">
10         <h2><%:SSH-Keys%></h2>
11
12         <div class="cbi-section-descr">
13                 <%_Public keys allow for the passwordless SSH logins with a higher security compared to the use of plain passwords. In order to upload a new key to the device, paste an OpenSSH compatible public key line or drag a <code>.pub</code> file into the input field.%>
14         </div>
15
16         <div class="cbi-section-node">
17                 <div class="cbi-dynlist" name="sshkeys">
18                         <p class="spinning"><%:Loading SSH keys…%></p>
19                         <div class="add-item" ondragover="dragKey(event)" ondrop="dropKey(event)">
20                                 <input class="cbi-input-text" type="text" placeholder="<%:Paste or drag SSH key file…%>" onkeydown="if (event.keyCode === 13) addKey(event)" />
21                                 <button class="cbi-button" onclick="addKey(event)"><%:Add key%></button>
22                         </div>
23                 </div>
24         </div>
25 </div>
26
27 <script type="application/javascript" src="<%=resource%>/view/system/sshkeys.js"></script>
28
29 <%+footer%>