167 lines
8.7 KiB
XML
167 lines
8.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="invoiceinput_layout" name="Portal layout: invoice input" inherit_id="portal.portal_breadcrumbs" priority="35">
|
|
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
|
|
<li t-if="page_name == 'invoiceinput' or timesheet" t-attf-class="breadcrumb-item #{'active' if not invoiceinput else ''}">
|
|
<t>Vertragseingabe</t>
|
|
</li>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="myportal_docs_entry" name="My dss Portal Docs Entry">
|
|
<a t-att-href="url" t-att-title="title" class="list-group-item list-group-item-action d-flex align-items-center justify-content-between">
|
|
<t t-esc="title"/>
|
|
<t t-if='count'>
|
|
<span class="badge text-bg-secondary rounded-pill" t-esc="count"/>
|
|
</t>
|
|
<t t-elif="placeholder_count">
|
|
<span class="badge text-bg-secondary rounded-pill" t-att-data-placeholder_count="placeholder_count">
|
|
<i class="fa fa-spin fa-circle-o-notch"></i>
|
|
</span>
|
|
</t>
|
|
</a>
|
|
</template>
|
|
|
|
|
|
<template id="portal_my_home_invoiceinput" name="Show invoiceinput" inherit_id="portal.portal_my_home" priority="45">
|
|
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
|
|
<t t-call="DigitalSignage.myportal_docs_entry" >
|
|
<t t-set="title">Vertragseingabe</t>
|
|
<t t-set="url" t-value="'/my/invoiceinput'"/>
|
|
<t t-set="placeholder_count" t-value="'0'"/>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="invoiceinput_portal_breadcrumbs" name="Portal Breadcrumbs">
|
|
<ol t-if="page_name != 'home'" class="o_portal_submenu breadcrumb mb-0 py-2 flex-grow-1">
|
|
<li class="breadcrumb-item ms-1"><a href="/my/home" aria-label="Home" title="Home"><i class="fa fa-home"/></a></li>
|
|
<li class="breadcrumb-item">Kundenverträge</li>
|
|
</ol>
|
|
</template>
|
|
|
|
<template id="invoiceinput_portal_searchbar" name="Portal Search Bar">
|
|
<nav t-attf-class="navbar navbar-light navbar-expand-lg border py-0 mb-2 o_portal_navbar {{classes if classes else ''}} {{'mt-3 rounded' if breadcrumbs_searchbar else 'border-top-0' }}">
|
|
<!-- Navbar breadcrumb or title -->
|
|
<t t-if="breadcrumbs_searchbar">
|
|
<t t-call="DigitalSignage.invoiceinput_portal_breadcrumbs"/>
|
|
</t>
|
|
<span t-else="" class="navbar-brand mb-0 h1 me-auto" t-esc="title or 'No title'"/>
|
|
|
|
<!-- Collapse button -->
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#o_portal_navbar_content" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle filters">
|
|
<span class="navbar-toggler-icon small"/>
|
|
</button>
|
|
|
|
<!-- Collapsable content -->
|
|
<div class="collapse navbar-collapse" id="o_portal_navbar_content">
|
|
<div class="nav flex-column flex-lg-row ms-auto p-0 mb-3 mb-lg-0 mt-1 mt-lg-0">
|
|
<span>Willkommen <t t-esc="username"/></span>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</template>
|
|
|
|
<template id="portal_my_invoiceinput" name="My Documents">
|
|
<t t-call="portal.portal_layout">
|
|
<t t-call="website.eingabe-header"/>
|
|
<t t-set="breadcrumbs_searchbar" t-value="True"/>
|
|
<t t-call="DigitalSignage.invoiceinput_portal_searchbar">
|
|
<t t-set="title">Documents</t>
|
|
</t>
|
|
<t t-if="not documents">
|
|
<p>Es sind keine offnen Verträge vorhanden.</p>
|
|
</t>
|
|
<t t-else="">
|
|
<span>Dies sind nicht abgeschlossene Verträge.<br/></span>
|
|
</t>
|
|
|
|
<t t-if="documents" t-call="portal.portal_table">
|
|
<thead>
|
|
<tr class="thead-light">
|
|
<th class="text-left">Vertrag #</th>
|
|
<th class="text-left">Kennung</th>
|
|
<th class="text-left">Kunden Firma</th>
|
|
<th class="text-left">Kunden Name</th>
|
|
<th class="text-left">Feldname</th>
|
|
<th class="text-left">Create Date</th>
|
|
<th class="text-left">Status</th>
|
|
<th class="text-center">Weiter</th>
|
|
<th class="text-center">Fertig</th>
|
|
<th class="text-center">Abbruch</th>
|
|
<th class="text-center">Upload</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="documents" t-as="document">
|
|
<tr>
|
|
<td>
|
|
<t t-esc="document.contract_auto_id"/>
|
|
</td>
|
|
<td>
|
|
<t t-if="document.contract_name">
|
|
<t t-esc="document.contract_name"/>
|
|
</t>
|
|
<t t-else="">nicht eingegeben</t>
|
|
</td>
|
|
<td>
|
|
<t t-if="document.client_short_company">
|
|
<t t-esc="document.client_short_company"/>
|
|
</t>
|
|
<t t-else="">nicht eingegeben</t>
|
|
</td>
|
|
<td>
|
|
<t t-if="document.client_short_name">
|
|
<t t-esc="document.client_short_name"/>
|
|
</t>
|
|
<t t-else="">nicht eingegeben</t>
|
|
</td>
|
|
<td>
|
|
<t t-if="document.shortwerbe_feld_selected">
|
|
<t t-esc="document.shortwerbe_feld_selected"/>
|
|
</t>
|
|
<t t-else="">nicht eingegeben</t>
|
|
</td>
|
|
<td>
|
|
<t t-if="document.contract_create_date">
|
|
<t t-esc="document.contract_create_date"/>
|
|
</t>
|
|
<t t-else="">unbekannt</t>
|
|
</td>
|
|
<td>
|
|
<t t-esc="document.contract_state_name"/>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<a target="new" t-att-href="'/eingabe/continue?uuid=' + document.uuid" title="Continue" class="mr4">
|
|
<i class="fa fa-edit fa-1x" role="img" aria-label="Fortsetzen der Eingabe nach Abbruch"></i>
|
|
</a>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<a target="new" t-att-href="'/eingabe/finish?uuid=' + document.uuid" title="Finish" class="mr4">
|
|
<i class="fa fa-eject fa-1x" role="img" aria-label="Beenden der Eingabe und Übergabe"></i>
|
|
</a>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<a target="new" t-att-href="'/eingabe/cancel?uuid=' + document.uuid" title="Cancel" class="mr4">
|
|
<i class="fa fa-trash-o fa-1x" role="img" aria-label="Löschen eines nicht fertigen Vertrages"></i>
|
|
</a>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<a target="new" t-att-href="'/eingabe/upload?uuid=' + document.uuid" title="Finish" class="mr4">
|
|
<i class="fa fa-upload fa-1x" role="img" aria-label="Hochladen des Vertragsscans eines nicht fertigen Vertrages"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</t>
|
|
<br/>
|
|
<hr/>
|
|
<span><h4>Für einen neuen Vertrag bitte Projekt wählen.</h4><br/></span>
|
|
<t t-call="website.eingabe-phase1"/>
|
|
</t>
|
|
</template>
|
|
|
|
|
|
</odoo> |