Browse Source

Web UI: cosmetic improvements to torrent upload dialog

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
8f22279428
  1. 8
      src/webui/html/upload.html
  2. 17
      src/webui/html/uploadframe.html
  3. 1
      src/webui/webui.qrc

8
src/webui/html/upload.html

@ -13,11 +13,13 @@ function hideAll() {
</head> </head>
<body> <body>
<br/> <br/>
<iframe id="upload_frame" name="upload_frame" style="width:1px;height:1px;border:0px;" src="javascript:false;"></iframe>
<center> <center>
<h1 class="vcenter"><img class="vcenter" title="Download local torrent" src="theme/list-add"/>_(Download local torrent)</h1> <h1 class="vcenter"><img class="vcenter" title="Download local torrent" src="theme/list-add"/>_(Download local torrent)</h1>
<iframe src="uploadframe.html" frameborder="0" style="padding: 10px; height: 80px; width: 500px;" id="myiframe"> <form action="/command/upload" enctype="multipart/form-data" method="post" id="uploadForm" target="upload_frame">
<p>Your Web browser does not support iframes</p> <input type="file" name="torrentfile" id="torrentfile" size="40"/><br/><br/>
</iframe> <input type="submit" value="_(Download)" id="upButton"/>
</form>
</center> </center>
</body> </body>
</html> </html>

17
src/webui/html/uploadframe.html

@ -1,17 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>_(Download local torrent)</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
</head>
<body>
<center>
<form action="/command/upload" enctype="multipart/form-data" method="post" name="uploadForm">
<input type="file" name="torrentfile" id="torrentfile" size="40"/><br/><br/>
<input type="submit" value="_(Download)" id="upButton"/>
</form>
</center>
</body>
</html>

1
src/webui/webui.qrc

@ -4,7 +4,6 @@
<file>html/download.html</file> <file>html/download.html</file>
<file>html/addtrackers.html</file> <file>html/addtrackers.html</file>
<file>html/upload.html</file> <file>html/upload.html</file>
<file>html/uploadframe.html</file>
<file>html/about.html</file> <file>html/about.html</file>
<file>html/filters.html</file> <file>html/filters.html</file>
<file>html/transferlist.html</file> <file>html/transferlist.html</file>

Loading…
Cancel
Save