view roundup/templates/classic/html/issue.item @ 1120:c26471971d18

Exposed the Batch mechanism through the top-level "utils" variable. See the keyword.item template for an example of how it can be used.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 11 Sep 2002 23:54:26 +0000
parents a95428868bf4
children 36ec30d286ea
line wrap: on
line source

<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
<form method="POST" onSubmit="return submit_once()"
      enctype="multipart/form-data">

<input type="hidden" name=":template" value="item">
<input type="hidden" name=":required" value="title">

<table class="form">
<tr>
 <th nowrap>Title</th>
 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
</tr>

<tr>
 <th nowrap>Priority</th>
 <td tal:content="structure context/priority/menu">priority</td>
 <th nowrap>Status</th>
 <td tal:content="structure context/status/menu">status</td>
</tr>

<tr>
 <th nowrap>Superseder</th>
 <td>
  <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
  <span tal:replace="structure python:db.issue.classhelp('id,title')" />
  <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
   <br>View: <a tal:attributes="href string:issue${sup/id}"
                tal:content="sup/id"></a>
  </span>
 </td>
 <th nowrap>Nosy List</th>
 <td>
  <span tal:replace="structure context/nosy/field" />
  <span tal:replace="structure python:db.user.classhelp('username,realname,address,phone')" />
 </td>
</tr>

<tr>
 <th nowrap>Assigned To</th>
 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
 <th nowrap>Topics</th>
 <td>
  <span tal:replace="structure context/topic/field" />
  <span tal:replace="structure db/keyword/classhelp" />
 </td>
</tr>

<tr>
 <th nowrap>Change Note</th>
 <td colspan=3>
  <textarea name=":note" wrap="hard" rows="5" cols="60"></textarea>
 </td>
</tr>

<tr>
 <th nowrap>File</th>
 <td colspan=3><input type="file" name=":file" size="40"></td>
</tr>

<tr>
 <td>&nbsp;</td>
 <td colspan=3 tal:content="structure context/submit">
  submit button will go here
 </td>
</tr>
</table>

<span tal:condition="context/id" tal:content="structure string:Created on
<b>${context/creation}</b> by <b>${context/creator}</b>, last
changed <b>${context/activity}</b>.">activity info</span>

<tal:block tal:condition="context/id">
 <table class="messages" tal:condition="context/messages">
  <tr><th colspan=3 class="header">Messages</th></tr>
  <tal:block tal:repeat="msg context/messages/reverse">
   <tr>
    <th><a tal:attributes="href string:msg${msg/id}"
           tal:content="string:msg${msg/id}"></a></th>
    <th tal:content="string:Author: ${msg/author}">author</th>
    <th tal:content="string:Date: ${msg/date}">date</th>
   </tr>
   <tr>
    <td colspan="3"><pre tal:content="msg/content">content</pre></td>
   </tr>
  </tal:block>
 </table>

 <table class="files" tal:condition="context/files">
  <tr><th colspan="2" class="header">Files</th></tr>
  <tr><th>File name</th><th>Uploaded</th></tr>
  <tr tal:repeat="file context/files">
   <td>
    <a tal:attributes="href string:file${file/id}/${file/name}"
       tal:content="file/name">dld link</a>
   </td>
   <td>
    <span tal:content="file/creator">creator's name</span>,
    <span tal:content="file/creation">creation date</span>
   </td>
  </tr>
 </table>

 <tal:block tal:replace="structure context/history" />

</tal:block>

</form>

Roundup Issue Tracker: http://roundup-tracker.org/