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
2fd13a21
Commit
2fd13a21
authored
5 years ago
by
Matthieu Fesselier
Browse files
Options
Downloads
Patches
Plain Diff
feature: embed drive previews
parent
b401d66c
No related branches found
No related tags found
1 merge request
!4
feature: embed drive previews
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/main.css
+8
-0
8 additions, 0 deletions
css/main.css
index.html
+33
-1
33 additions, 1 deletion
index.html
with
41 additions
and
1 deletion
css/main.css
+
8
−
0
View file @
2fd13a21
...
...
@@ -187,6 +187,14 @@ label > div{
padding-top
:
1.5rem
;
}
/* embed */
.invoices-list
widget-embed-drive
{
background
:
#d1d1d1
;
width
:
100%
;
display
:
block
;
text-align
:
center
;
}
/* Action menu =========================== */
div
[
name
=
"actions"
]
{
display
:
flex
;
...
...
This diff is collapsed.
Click to expand it.
index.html
+
33
−
1
View file @
2fd13a21
...
...
@@ -148,6 +148,12 @@
</template>
</sib-widget>
<sib-widget
name=
"widget-embed-drive"
>
<template>
<embed
src=
"${value}"
width=
"560px"
height=
"800px"
/>
</template>
</sib-widget>
<!-- /widgets ==================================== -->
...
...
@@ -315,6 +321,7 @@
<h2>
Factures des indépendants
</h2>
<sib-router
default-route=
"freelance-invoice-list"
>
<sib-route
name=
"freelance-invoice-list"
></sib-route>
<sib-route
name=
"edit-freelance-invoice"
></sib-route>
<sib-route
name=
"add-freelance-invoice"
class=
"button"
>
Importer une facture
</sib-route>
</sib-router>
</header>
...
...
@@ -337,16 +344,41 @@
></sib-form>
</dialog>
<dialog
id=
"edit-freelance-invoice"
class=
"invoice-form"
>
<h2>
Modifier une facture
</h2>
<sib-form
bind-resources
data-fields=
"first-line, second-line, uploadUrl"
set-first-line=
"freelanceFullname, identifier"
set-second-line=
"invoicingDate, htAmount"
label-freelanceFullname=
"Nom du prestataire"
label-identifier=
"Numéro de la prestation"
label-invoicingDate=
"Date de facturation"
label-uploadUrl=
"Lien de la facture"
label-htAmount=
"Montant HT"
widget-invoicingDate=
"sib-form-date"
widget-htAmount=
"sib-form-number"
next=
"freelance-invoice-list"
></sib-form>
</dialog>
<sib-display
id=
"freelance-invoice-list"
data-src=
"http://127.0.0.1:8000/freelance-invoices/"
data-fields=
"invoice-title"
data-fields=
"invoice-title
, invoice-hidden
"
set-invoice-title=
"invoice-main, invoice-aside"
set-invoice-main=
"invoice-header, invoice-footer"
set-invoice-aside=
"state"
set-invoice-header=
"freelanceFullname, identifier"
set-invoice-footer=
"invoicingDate, htAmount"
set-invoice-hidden=
"actions, uploadUrl"
set-actions=
"edit, duplicate"
label-edit=
"Éditer"
label-duplicate=
"Dupliquer"
action-edit=
"edit-freelance-invoice"
action-duplicate=
"duplicate-invoice"
widget-htAmount=
"widget-money"
widget-uploadUrl=
"widget-embed-drive"
></sib-display>
</section>
<!-- /freelance ==================================== -->
...
...
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