Разработка веб-портала с использованием CMS PLONE. Мбого И.А. - 21 стр.

UptoLike

Составители: 

40
typeDescMsgId = 'description_edit_image'
factory_type_information = {
'allow_discussion': 0,
'immediate_view': 'base_view',
'global_allow': 1,
'properties' : 'base_metadata',
}
registerType(tender, PROJECTNAME)
Файл tenders_view.pt. Файлы шаблонов хранятся в директории skins и
имеют расширение *.pt
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
metal:use-macro="here/main_template/macros/master"
i18n:domain="plone">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<div metal:use-
macro="here/document_actions/macros/document_actions">
Document actions (print, sendto etc)
</div>
<h1 tal:content="here/title_or_id"
class="documentFirstHeading">
Title or id
</h1>
<table class="listing">
<tr>
<th>Наименование продукции, товаров и услуг</th>
<th>Конкурсная документация</th>
<th>Максимальная цена контракта, руб.</th>
<th>Дата размещения на сайте</th>
<th>Дата окончания срока подачи заявок</th>
<th>Результаты рассмотрения конкурса</th>
</tr>
<tal:block tal:define="results python:
here.listFolderContents(contentFilter={'portal_type':('tender',)});">
<tr tal:repeat="result results" class="stx">
<td><span tal:content="result/title">title</span></td>
<td><a tal:condition="result/notification/getSize" href
41
="" tal:attributes="href
result/notification/absolute_url">извещение</a><br>
<span tal:condition="not:
result/notification/getSize">нет материалов</span><br>
<a href =""
tal:condition="result/documentation/getSize | nothing"
tal:attributes="href
result/documentation/absolute_url">документация</a>
</td>
<td><span tal:replace="result/contract_price |
nothing">contract_price goes here</span></td>
<td><span tal:replace="result/publication_date/dd
|nothing">date</span>.
<span tal:replace="result/publication_date/mm
|nothing">month</span>.
<span tal:replace="result/publication_date/yy
|nothing">year</span>
</td>
<td><span tal:replace="result/cutoff_date1/dd
|nothing">cutoff_date1 goes here date</span>.
<span tal:replace="result/cutoff_date1/mm
|nothing">cutoff_date1 goes here month</span>.
<span tal:replace="result/cutoff_date1/yy
|nothing">cutoff_date1 goes here year</span>
<span tal:define=" existing
exists:result/cutoff_date2" tal:condition="existing">
<br>
Срок продлен до:
<span tal:content="result/cutoff_date2/dd
|nothing">cutoff_date2 goes here date</span>.
<span tal:content="result/cutoff_date2/mm
|nothing">cutoff_date2 goes here month</span>.
<span tal:content="result/cutoff_date2/yy
|nothing">cutoff_date2 goes here year</span>.
</span>
<span tal:define=" existing
exists:result/cutoff_date3" tal:condition="existing">
<br>
Срок продлен до:
<span tal:content="result/cutoff_date3/dd
|nothing">cutoff_date3 goes here date</span>.
<span tal:content="result/cutoff_date3/mm
|nothing">cutoff_date3 goes here month</span>.
<span tal:content="result/cutoff_date3/yy
|nothing">cutoff_date3 goes here year</span>.
</span>
</td>
<td >