2013-08-19 14:28:12 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Layout add nav and footer -->
|
|
|
|
|
|
|
|
<template id="footer_custom" inherit_id="website.layout" name="Custom Footer">
|
2013-08-21 08:52:46 +00:00
|
|
|
<xpath expr="//body/footer//div[@name='info']/ul" position="inside">
|
|
|
|
<li t-foreach="project_ids" t-as="project_id"><a t-attf-href="/project/#{ project_id.id }/"><t t-esc="project_id.name"/></a></li>
|
2013-08-19 14:28:12 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Page -->
|
|
|
|
|
2013-08-21 08:52:46 +00:00
|
|
|
<template id="index" name="Project">
|
2013-08-19 14:28:12 +00:00
|
|
|
<t t-call="website.layout">
|
2013-08-21 08:52:46 +00:00
|
|
|
<t t-set="title">Project</t>
|
2013-08-19 14:28:12 +00:00
|
|
|
<div class="container">
|
2013-08-21 08:52:46 +00:00
|
|
|
<h4 t-field="project_id.name"/>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th t-foreach="stages" t-as="stage">
|
|
|
|
<span t-field="stage_id.name"/>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td t-foreach="stages" t-as="stage">
|
|
|
|
<div t-foreach="task_ids" t-as="task_id" class="thumbnail">
|
|
|
|
<a t-attf-href="/task/#{ task_id.id }/"><span t-field="task_id.name"/></a>
|
|
|
|
<div>
|
|
|
|
Assigned to <span t-field="task_id.user_id"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span t-foreach="task_id.categ_ids" t-as="categ_id" class="label">
|
|
|
|
<t t-esc="categ_id.name"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<small>
|
|
|
|
<i class="icon-time"></i> <span t-field="task_id.date_start"/><br/>
|
|
|
|
<t t-if="task_id.date_end">Ending Date: <span t-field="task_id.date_end"/></t>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-08-19 14:28:12 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|