view website/issues/html/msg.index.html @ 8300:b99e76e76496

Make native date and number elements configurable Now for Number() and Integer() properties the browser-native number format can be configured with the use_browser_number_input config item in seciont [web]. The default is 'yes'. For Date() properties the config item is use_browser_date_input (also in section [web]) but the default is 'no'. In addition when defining Date() properties, these now have a parameter 'display_time' which defaults to 'yes' and a 'format' parameter which defaults to None. These set defaults for the field() method of the DateHTMLProperty which have the same parameters (but the display_time parameter of field() takes a boolean, not 'yes'/'no').
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 19 Feb 2025 12:38:06 +0100
parents c2d0d3e9099d
children
line wrap: on
line source

<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title" i18n:translate=""
 >List of messages - <span tal:replace="config/TRACKER_NAME"
 i18n:name="tracker"/></title>
<span metal:fill-slot="body_title" tal:omit-tag="python:1"
 i18n:translate="">Message listing</span>
<td class="content" metal:fill-slot="content">
<table tal:define="batch request/batch" class="messages">
 <tr><th colspan=3 class="header" i18n:translate="">Messages</th></tr>
 <tal:block tal:repeat="msg batch">
  <tr>
   <th><a tal:attributes="href string:msg${msg/id}"><tal:x replace="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>

 <metal:block use-macro="templates/issue.index/macros/batch-footer" />

</table>
</td>

</tal:block>

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