From fa078c84b81f891aa800ca602fbc7d7ec3d02753 Mon Sep 17 00:00:00 2001 From: therazer Date: Tue, 9 Nov 2010 21:30:54 +0100 Subject: added browser for files, too + little patches --- module/web/templates/default/pathchooser.html | 29 +++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'module/web/templates/default/pathchooser.html') diff --git a/module/web/templates/default/pathchooser.html b/module/web/templates/default/pathchooser.html index 3c5329f09..100754cad 100644 --- a/module/web/templates/default/pathchooser.html +++ b/module/web/templates/default/pathchooser.html @@ -11,16 +11,29 @@ { close(); } + function setInvalid() { + document.forms[0].send.disabled = 'disabled'; + document.forms[0].p.style.color = '#FF0000'; + } + function setValid() { + document.forms[0].send.disabled = ''; + document.forms[0].p.style.color = '#000000'; + } + function setFile(file) + { + document.forms[0].p.value = file; + setValid(); + + } - +
- - + +
- @@ -30,12 +43,16 @@ {% for file in files %} - + {% ifequal type 'folder' %} + + {% else %} + + {% endifequal %} -- cgit v1.2.3
Name
- parent directory + parent directory
{% ifequal file.type 'dir' %}{{ file.name|truncate:25 }}{% else %}{{ file.name|truncate:25 }}{% endifequal %}{% ifequal file.type 'dir' %}{{ file.name|truncate:25 }}{% else %}{{ file.name|truncate:25 }}{% endifequal %}{% ifequal file.type 'dir' %}{{ file.name|truncate:25 }}{% else %}{{ file.name|truncate:25 }}{% endifequal %}{{ file.size|floatformat:-2 }} {{ file.unit }} {% ifequal file.type 'dir' %}directory{% else %}{{ file.ext }}{% endifequal %} {{ file.modified|date:"d.m.Y - H:i:s" }}