Commits

Anonymous committed 84e0ab8

Revert form folding.

Comments (0)

Files changed (2)

html/issue.item.html

   replace="context/id" i18n:name="id" /> Editing</span>
 </tal:block>
 
-<div class="content" metal:fill-slot="content">
+<td class="content" metal:fill-slot="content">
 
 <p tal:condition="python:not (context.is_view_ok()
  or request.user.hasRole('Anonymous'))" i18n:translate="">
  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 id="classification"><legend>classification</legend>
+<fieldset><legend>classification</legend>
 <table class="form">
 <tr>
  <th class="required" i18n:translate="">
 </fieldset>
 
 <fieldset><legend>process</legend>
-<table class="form" id="processfields">
+<table class="form">
 <tr tal:condition="context/id">
   <th i18n:translate="">
     <a href="http://docs.python.org/devguide/triaging.html#status"
 
 
 </tr>
-</table>
-<table class="form">
 <tr tal:condition="context/is_edit_ok">
  <th>
    <a href="http://docs.python.org/devguide/triaging.html#generating-special-links-in-a-comment"
             name="@note" rows="10" cols="72"></textarea>
  </td>
 </tr>
+
 <tr tal:condition="context/is_edit_ok">
  <th><tal:block i18n:translate="">File</tal:block>:</th>
  <td colspan="3">
 
 </div>
 
-</div>
+</td>
 
 </tal:block>

html/issue.item.js

 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
     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";
-
-}