view templates/classic/html/issue.item.html @ 2365:3a80831ecebe

If the target platform is win32, create .bat files... ...instead of *nix shell scripts. Target platform is set to "win32" if main command is 'bdist_wininst' or if the command is 'bdist' and it has the list of formats (from command line or config file) and the first item on that list is wininst. Otherwise target platform is set to current (build) platform.
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Wed, 26 May 2004 10:00:53 +0000
parents 975500ced7fa
children c2908812624a
line wrap: on
line source

<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title"> 
<tal:x condition="context/id"
       replace="string:Issue ${context/id}: ${context/title}" />
<tal:x condition="not:context/id">New Issue</tal:x>
- <tal:x replace="config/TRACKER_NAME" />
</title> 
<span metal:fill-slot="body_title" tal:omit-tag="python:1">
 <tal:x tal:condition="not:context/id">New</tal:x> 
  Issue<tal:x replace="context/id" />
   <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
 </span>

<td class="content" metal:fill-slot="content">

<form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
      enctype="multipart/form-data" tal:attributes="action context/designator">

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

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

<tr>
 <th>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', property='superseder')" />
  <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>Nosy List</th>
 <td>
  <span tal:replace="structure context/nosy/field" />
  <span tal:replace="structure
python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
 </td>
</tr>

<tr>
 <th>Assigned To</th>
 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
 <th>Topics</th>
 <td>
  <span tal:replace="structure context/topic/field" />
  <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
 </td>
</tr>

<tr tal:condition="context/is_edit_ok">
 <th>Change Note</th>
 <td colspan=3>
  <textarea tal:content="request/form/@note/value | default"
            name="@note" wrap="hard" rows="5" cols="80"></textarea>
 </td>
</tr>

<tr tal:condition="context/is_edit_ok">
 <th>File</th>
 <td colspan=3><input type="file" name="@file" size="40"></td>
</tr>

<tr tal:condition="context/is_edit_ok">
 <td>
  &nbsp;
  <input type="hidden" name="@template" value="item">
  <input type="hidden" name="@required" value="title,priority">
 </td>
 <td colspan=3 tal:content="structure context/submit">
  submit button will go here
 </td>
</tr>

</table>

</form>

<table class="form" tal:condition="not:context/id">
<tr>
 <td>Note:&nbsp;</td>
 <th class="required">highlighted</th>
 <td>&nbsp;fields are required.</td>
</tr>
</table>

<p 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> by <b>${context/actor}</b>.">activity info
</p>

<table class="files" tal:condition="context/files">
 <tr><th colspan="5" class="header">Files</th></tr>
 <tr><th>File name</th><th>Uploaded</th><th>Type</th><th>Edit</th>
    <th>Remove</th></tr>
 <tr tal:repeat="file context/files">
  <td>
   <a tal:attributes="href file/download_url"
      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>
  <td tal:content="file/type" />
  <td><a tal:condition="file/is_edit_ok"
          tal:attributes="href string:file${file/id}">edit</a>
  </td>
  <td>
   <form style="padding:0" tal:condition="context/is_edit_ok"
         tal:attributes="action string:issue${context/id}">
    <input type="hidden" name="@remove@files" tal:attributes="value file/id">
    <input type="hidden" name="@action" value="edit">
    <input type="submit" value="remove">
   </form>
  </td>
 </tr>
</table>

<table class="messages" tal:condition="context/messages">
 <tr><th colspan="4" 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} (view)"></a></th>
   <th tal:content="string:Author: ${msg/author}">author</th>
   <th tal:content="string:Date: ${msg/date}">date</th>
   <th>
    <form style="padding:0" tal:condition="context/is_edit_ok"
          tal:attributes="action string:issue${context/id}">
     <input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
     <input type="hidden" name="@action" value="edit">
     <input type="submit" value="remove">
    </form>
   </th>
  </tr>
  <tr>
   <td colspan="4" class="content">
    <pre tal:content="structure msg/content/hyperlinked">content</pre>
   </td>
  </tr>
 </tal:block>
</table>

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

</td>

</tal:block>

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