Newer
Older
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>SIB invoicing</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Style -->
<link rel="stylesheet" href="css/main.css">
<!-- Scripts-->
<!-- <script src="/lib/webcomponentsjs/webcomponents-loader.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.2.7/webcomponents-loader.js"></script>
<script type="module" src="https://cdn.happy-dev.fr/sib-core/sib-display.js"></script>
<script type="module" src="https://cdn.happy-dev.fr/sib-router/sib-router.js"></script>
<main>
<section id="clients-invoices" class="invoices_list invoices_list--clients">
<header>
<h2>Factures pour le client</h2>
<sib-route name="invoice-list"></sib-route>
<sib-route name="add-invoice">Créer une nouvelle facture</sib-route>
<sib-route name="show-invoice" id-prefix="http://invoicing-module.happy-dev.fr/invoices/client-invoices/"></sib-route>
data-src="http://invoicing-module.happy-dev.fr/invoices/client-invoices/"
data-fields="title, identifier, creationDate, htAmount, tvaRate"
<!-- <sib-form
id="edit-invoice"
data-fields="title, identifier, creationDate, htAmount, tvaRate"
next="invoice-list"
bind-resources
></sib-form> -->
data-src="http://invoicing-module.happy-dev.fr/invoices/client-invoices/"
template-batches="batch-list-template"
data-fields="invoice-section, batches"
set-invoice-section="invoice-main, invoice-aside"
set-invoice-main="invoice-header, invoice-footer"
set-invoice-aside="state"
set-invoice-header="title, identifier"
set-invoice-footer="creationDate, htAmount"
></sib-display>
<template id="money-template">
<div name="htAmount-template">${value} € HT</div>
</template>
<template id="batch-list-template">
<sib-router class="invoice-detail-menu" default-route="invoice-list">
<sib-route name="edit-invoice">
<sib-link data-src="${value['@id']}" next="show-invoice">Editer</sib-link>
</sib-route>
<sib-route name="show-invoice">
<div>Aperçu client</div>
</sib-route>
<sib-route name="download-invoice">
<div>Télécharger</div>
</sib-route>
<sib-route name="duplicate-invoice">
<div>Dupliquer</div>
</sib-route>
</sib-router>
data-src="${value['@id']}"
template-tasks="task-list-template"
data-fields="batch-section-header, batch-section-body, batch-section-footer"
value-amount="Montants"
value-ht-total="Total HT"
set-batch-section-footer="ht-total, htAmount"
></sib-display>
</template>
<template id="task-list-template">
<sib-display
class="tasks-list"
data-src="${value['@id']}"
data-fields="title, htAmount"
></sib-display>
</template>
<sib-display
id="show-invoice"
data-fields="title, htAmount"
bind-resources
></sib-display>
<section id="freelances-invoices" class="invoices_list invoices_list--freelances">
<header>
<h2>Factures des indépendants</h2>
<sib-router default-route="freelance-invoice-list" use-hash>
<sib-route name="freelance-invoice-list"></sib-route>
<sib-route name="add-freelance-invoice">Importer une facture</sib-route>
</sib-router>
</header>
<sib-form
id="add-freelance-invoice"
data-src="http://invoicing-module.happy-dev.fr/invoices/freelance-invoices/"
data-fields="freelanceFullname, identifier, invoicingDate, htAmount, tvaRate, uploadUrl"
next="freelance-invoice-list"
></sib-form>
data-src="http://invoicing-module.happy-dev.fr/invoices/freelance-invoices/"
data-fields="freelance-invoice-body, freelance-invoice-aside"
set-freelance-invoice-body="freelance-invoice-header, freelance-invoice-footer"
set-freelance-invoice-aside="state"
set-freelance-invoice-header="freelanceFullname, identifier"
set-freelance-invoice-footer="invoicingDate, htAmount"