Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sib-invoicing
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Components
sib-invoicing
Commits
09403011
Commit
09403011
authored
6 years ago
by
clairezed
Browse files
Options
Downloads
Patches
Plain Diff
Feature: show invoice and edit form
parent
206a607b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/main.css
+2
-1
2 additions, 1 deletion
css/main.css
index.html
+54
-35
54 additions, 35 deletions
index.html
with
56 additions
and
36 deletions
css/main.css
+
2
−
1
View file @
09403011
...
...
@@ -71,8 +71,9 @@ sib-display [name="invoice-header"], [name="freelance-invoice-header"] {
margin
:
0.5em
0
;
}
.invoices_list
.invoice-detail-menu
>
div
{
.invoices_list
.invoice-detail-menu
>
sib-route
{
padding
:
0.3em
0.5em
;
cursor
:
pointer
;
}
.batches-list
>
div
>
sib-display
>
div
{
...
...
This diff is collapsed.
Click to expand it.
index.html
+
54
−
35
View file @
09403011
...
...
@@ -15,6 +15,7 @@
<link
rel=
"import"
href=
"https://cdn.happy-dev.fr/sib-core/sib-display.html"
/>
<link
rel=
"import"
href=
"https://cdn.happy-dev.fr/sib-router/sib-router.html"
/>
</head>
<body>
<main>
<section
id=
"clients-invoices"
class=
"invoices_list invoices_list--clients"
>
...
...
@@ -23,24 +24,31 @@
<sib-router
default-route=
"invoice-list"
use-hash
>
<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://127.0.0.1:8000/invoices/client-invoices/"
></sib-route>
</sib-router>
</header>
<sib-form
id=
"add-invoice"
<sib-form
id=
"add-invoice"
data-src=
"http://127.0.0.1:8000/invoices/client-invoices/"
data-fields=
"title, identifier, creationDate, htAmount, tvaRate"
data-fields=
"title, identifier, creationDate, htAmount, tvaRate"
next=
"invoice-list"
></sib-form>
<!-- <sib-form
id="edit-invoice"
data-fields="title, identifier, creationDate, htAmount, tvaRate"
next="invoice-list"
bind-resources
></sib-form> -->
<sib-display
id=
"invoice-list"
data-src=
"http://127.0.0.1:8000/invoices/client-invoices/"
id=
"invoice-list"
data-src=
"http://127.0.0.1:8000/invoices/client-invoices/"
template-htAmount=
"money-template"
template-batches=
"batch-list-template"
data-fields=
"invoice-section, batches"
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-main=
"invoice-header, invoice-footer"
set-invoice-aside=
"state"
set-invoice-header=
"title, identifier"
set-invoice-footer=
"creationDate, htAmount"
></sib-display>
...
...
@@ -50,26 +58,36 @@
</template>
<template
id=
"batch-list-template"
>
<div
class=
"invoice-detail-menu"
>
<div>
Dupliquer
</div>
<div>
Editer
</div>
<div>
Aperçu client
</div>
<div>
Télécharger
</div>
</div>
<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>
<sib-display
class=
"batches-list"
data-src=
"${value['@id']}"
template-tasks=
"task-list-template"
data-src=
"${value['@id']}"
template-tasks=
"task-list-template"
data-fields=
"batch-section-header, batch-section-body, batch-section-footer"
value-amount=
"Montant
"
value-ht-total=
"Total HT"
value-amount=
"Montant
s"
value-ht-total=
"Total HT"
set-batch-section-header=
"title, amount"
set-batch-section-body=
"tasks"
set-batch-section-body=
"tasks"
set-batch-section-footer=
"ht-total, htAmount"
></sib-display>
</template>
<template
id=
"task-list-template"
>
<p>
test affichage
</p>
<sib-display
class=
"tasks-list"
data-src=
"${value['@id']}"
...
...
@@ -77,13 +95,11 @@
></sib-display>
</template>
<!-- <sib-display
bind-resources
data-src="http://127.0.0.1:8000/invoices/client-invoices/1/"
id-suffix="batches"
data-fields="title, htAmount"
></sib-display> -->
<sib-display
id=
"show-invoice"
data-fields=
"title, htAmount"
bind-resources
></sib-display>
</section>
...
...
@@ -95,21 +111,24 @@
<sib-route
name=
"add-freelance-invoice"
>
Importer une facture
</sib-route>
</sib-router>
</header>
<sib-form
id=
"add-freelance-invoice"
<sib-form
id=
"add-freelance-invoice"
data-src=
"http://127.0.0.1:8000/invoices/freelance-invoices/"
data-fields=
"freelanceFullname, identifier, invoicingDate, htAmount, tvaRate, uploadUrl"
next=
"freelance-invoice-list"
></sib-form>
data-fields=
"freelanceFullname, identifier, invoicingDate, htAmount, tvaRate, uploadUrl"
next=
"freelance-invoice-list"
></sib-form>
<sib-display
id=
"freelance-invoice-list"
data-src=
"http://127.0.0.1:8000/invoices/freelance-invoices/"
data-fields=
"freelance-invoice-body, freelance-invoice-aside"
data-src=
"http://127.0.0.1:8000/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"
set-freelance-invoice-aside=
"state"
set-freelance-invoice-header=
"freelanceFullname, identifier"
set-freelance-invoice-footer=
"invoicingDate, htAmount"
template-htAmount=
"money-template"
></sib-display>
</section>
</main>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment