[Python-checkins] r88808 - in tracker/instances/python-dev/html: issue.item.html issue.item.js
martin.v.loewis
python-checkins at python.org
Mon Mar 28 17:58:05 CEST 2011
Author: martin.v.loewis
Date: Mon Mar 28 17:58:05 2011
New Revision: 88808
Log:
Fold forms.
Modified:
tracker/instances/python-dev/html/issue.item.html
tracker/instances/python-dev/html/issue.item.js
Modified: tracker/instances/python-dev/html/issue.item.html
==============================================================================
--- tracker/instances/python-dev/html/issue.item.html (original)
+++ tracker/instances/python-dev/html/issue.item.html Mon Mar 28 17:58:05 2011
@@ -27,7 +27,7 @@
replace="context/id" i18n:name="id" /> Editing</span>
</tal:block>
-<td class="content" metal:fill-slot="content">
+<div class="content" metal:fill-slot="content">
<p tal:condition="python:not (context.is_view_ok()
or request.user.hasRole('Anonymous'))" i18n:translate="">
@@ -38,12 +38,22 @@
Please login with your username and password.</p>
<div tal:condition="context/is_view_ok">
+ <p style="display:none" id="condensed" tal:condition="context/id">
+ This is an <b tal:content="context/status"/>
+ <b tal:content="context/type"/> issue<tal:block
+ tal:condition="context/stage"> in stage
+ <b tal:content="context/stage"/></tal:block><tal:block
+ tal:condition="context/components"> applying to
+ <b tal:content="context/components"/></tal:block><tal:block tal:condition="context/versions"> in
+ <b tal:content="context/versions"/></tal:block>.
+ <a href="javascript:unfold()">Unfold edit form</a>
+ </p>
<form method="POST" name="itemSynopsis"
onSubmit="return submit_once()" enctype="multipart/form-data"
tal:attributes="action context/designator">
-<fieldset><legend>classification</legend>
+<fieldset id="classification"><legend>classification</legend>
<table class="form">
<tr>
<th class="required" i18n:translate="">
@@ -85,7 +95,7 @@
</fieldset>
<fieldset><legend>process</legend>
-<table class="form">
+<table class="form" id="processfields">
<tr tal:condition="context/id">
<th i18n:translate="">
<a href="http://docs.python.org/devguide/triaging.html#status"
@@ -185,7 +195,8 @@
name="@note" rows="10" cols="72"></textarea>
</td>
</tr>
-
+</table>
+<table class="form">
<tr tal:condition="context/is_edit_ok">
<th><tal:block i18n:translate="">File</tal:block>:</th>
<td colspan="3">
@@ -347,6 +358,6 @@
</div>
-</td>
+</div>
</tal:block>
Modified: tracker/instances/python-dev/html/issue.item.js
==============================================================================
--- tracker/instances/python-dev/html/issue.item.js (original)
+++ tracker/instances/python-dev/html/issue.item.js Mon Mar 28 17:58:05 2011
@@ -1,4 +1,11 @@
window.onload = function () {
+ var condensed = document.getElementById("condensed");
+ if(condensed) {
+ condensed.style.display = "block";
+ document.getElementById("classification").style.display="none";
+ document.getElementById("processfields").style.display="none";
+ }
+
// create the input button and use it to replace the span/placeholder --
// users without javascript won't notice anything.
// This might eventually be replaced by jquery
@@ -41,3 +48,10 @@
nosy.style.display = 'inline';
nosy.style.width = new_width + "px";
}
+
+function unfold() {
+ document.getElementById("condensed").style.display = "none";
+ document.getElementById("classification").style.display = "block";
+ document.getElementById("processfields").style.display = "block";
+
+}
More information about the Python-checkins
mailing list