|
From: Benjamin C. <bc...@us...> - 2002-04-11 15:50:04
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv5125/templates/default
Modified Files:
bugattachmentform.html bugdisplay.html
Log Message:
Cleaned up the attachment interface
Index: bugattachmentform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugattachmentform.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- bugattachmentform.html 9 Apr 2002 23:27:03 -0000 1.4
+++ bugattachmentform.html 11 Apr 2002 15:49:58 -0000 1.5
@@ -1,16 +1,25 @@
+{if $smarty.request.use_js}
+ {include file="header-popup.html" page_title="Add Attachment"}
+{else}
+ {include file="header.html" page_title="Add Attachment"}
+{/if}
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
<input type="hidden" name="bugid" value="{$bugid}">
-<table border="0" width="640">
+<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
+<table border="0" align="center">
<tr>
- <td colspan="2">
+ <td colspan="2" align="center">
Please choose a file to upload and enter a one-line description.
+ <br>
Maximum file size: {$max_size} bytes
+ <br>
+ <br>
</td>
</tr>
{if $error}
- <tr>
- <td colspan="2" class="error">{$error}</td>
- </tr>
+ <tr>
+ <td colspan="2" class="error">{$error}</td>
+ </tr>
{/if}
<tr>
<td>
@@ -29,9 +38,14 @@
</td>
</tr>
<tr>
- <td colspan="2">
- <input type="submit" value="Upload attachment">
+ <td colspan="2" align="center">
+ <input type="submit" name="submit" value="Upload attachment">
</td>
</tr>
</table>
</form>
+{if $smarty.request.use_js}
+ {include file="admin/footer-popup.html"}
+{else}
+ {include file="admin/footer.html"}
+{/if}
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- bugdisplay.html 10 Apr 2002 15:21:07 -0000 1.24
+++ bugdisplay.html 11 Apr 2002 15:49:58 -0000 1.25
@@ -1,26 +1,31 @@
{include file="header.html" page_title="Edit Bug #$bug_id"}
<script language="JavaScript">
<!--
-versions = new Array();
-components = new Array();
-versions['All'] = new Array(new Array('','All'));
-components['All'] = new Array(new Array('','All'));
-{project_js no_all=true}
+ versions = new Array();
+ components = new Array();
+ versions['All'] = new Array(new Array('','All'));
+ components['All'] = new Array(new Array('','All'));
+ {project_js no_all=true}
-{literal}
-function updateMenus(f) {
- sel = f.project_id[f.project_id.selectedIndex].text;
- f.version_id.length = versions[sel].length;
- for (var x = 0; x < versions[sel].length; x++) {
- f.version_id.options[x].value = versions[sel][x][0];
- f.version_id.options[x].text = versions[sel][x][1];
- }
- f.component_id.length = components[sel].length;
- for (var x = 0; x < components[sel].length; x++) {
- f.component_id.options[x].value = components[sel][x][0];
- f.component_id.options[x].text = components[sel][x][1];
- }
-}
+ {literal}
+ function updateMenus(f) {
+ sel = f.project_id[f.project_id.selectedIndex].text;
+ f.version_id.length = versions[sel].length;
+ for (var x = 0; x < versions[sel].length; x++) {
+ f.version_id.options[x].value = versions[sel][x][0];
+ f.version_id.options[x].text = versions[sel][x][1];
+ }
+ f.component_id.length = components[sel].length;
+ for (var x = 0; x < components[sel].length; x++) {
+ f.component_id.options[x].value = components[sel][x][0];
+ f.component_id.options[x].text = components[sel][x][1];
+ }
+ }
+
+ function popupAtt(id) {
+ window.open('attachment.php?use_js=1&bugid='+id, 'ewin', 'dependent=yes, width=350, height=200, scrollbars=auto');
+ return false;
+ }
{/literal}
//-->
</script>
@@ -157,7 +162,7 @@
<table border="0" cellpadding="0">
<tr>
<td colspan="2">Attachments:</td>
- <td colspan="3" align="right"><a href="attachment.php?bug_id={$bug_id}">Create attachment</a></td>
+ <td colspan="3" align="right"><a href="attachment.php?bugid={$bug_id}" onClick="return popupAtt({$bug_id})">Create attachment</a></td>
</tr>
<tr><td colspan="5" height="2" bgcolor="#ffffff"><spacer type="block" height="2" width="2"></td></tr>
<tr>
|