Commit c57d1018 authored by Tristan Cavelier's avatar Tristan Cavelier

Description helper added to jio dashboard

parent 211709cf
......@@ -24,6 +24,7 @@
<button onclick="fillMemoryDescription()">Memory</button>
<button onclick="fillLocalDescription()">Local</button>
<button onclick="fillDavDescription()">WebDAV</button>
<button onclick="fillDavBasicDescription()">WebDAV Basic</button>
<button onclick="fillERP5Description()">ERP5</button>
<button onclick="fillCustomDescription()">Custom</button> -
<button onclick="fillLastDescription()">Last</button>
......@@ -217,9 +218,14 @@ function fillLocalDescription() {
function fillDavDescription() {
select("#storagedescription").value = JSON.stringify({
"type": "dav",
"auth_type": "basic",
"username": "<username>",
"password": "<password>"
"url": "<url>"
}, null, " ")
}
function fillDavBasicDescription() {
select("#storagedescription").value = JSON.stringify({
"type": "dav",
"url": "<url>",
"basic_login": "<btoa(username + ':' + password)>"
}, null, " ")
}
function fillERP5Description() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment