Commit c57d1018 authored by Tristan Cavelier's avatar Tristan Cavelier

Description helper added to jio dashboard

parent 211709cf
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<button onclick="fillMemoryDescription()">Memory</button> <button onclick="fillMemoryDescription()">Memory</button>
<button onclick="fillLocalDescription()">Local</button> <button onclick="fillLocalDescription()">Local</button>
<button onclick="fillDavDescription()">WebDAV</button> <button onclick="fillDavDescription()">WebDAV</button>
<button onclick="fillDavBasicDescription()">WebDAV Basic</button>
<button onclick="fillERP5Description()">ERP5</button> <button onclick="fillERP5Description()">ERP5</button>
<button onclick="fillCustomDescription()">Custom</button> - <button onclick="fillCustomDescription()">Custom</button> -
<button onclick="fillLastDescription()">Last</button> <button onclick="fillLastDescription()">Last</button>
...@@ -217,9 +218,14 @@ function fillLocalDescription() { ...@@ -217,9 +218,14 @@ function fillLocalDescription() {
function fillDavDescription() { function fillDavDescription() {
select("#storagedescription").value = JSON.stringify({ select("#storagedescription").value = JSON.stringify({
"type": "dav", "type": "dav",
"auth_type": "basic", "url": "<url>"
"username": "<username>", }, null, " ")
"password": "<password>" }
function fillDavBasicDescription() {
select("#storagedescription").value = JSON.stringify({
"type": "dav",
"url": "<url>",
"basic_login": "<btoa(username + ':' + password)>"
}, null, " ") }, null, " ")
} }
function fillERP5Description() { 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