Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tourinsoft
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bolt Extensions
Tourinsoft
Commits
1cbde7e6
Commit
1cbde7e6
authored
May 14, 2018
by
Frédéric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style + Js
parent
fa034f40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
4 deletions
+52
-4
TourinsoftExtension.php
src/TourinsoftExtension.php
+20
-1
list.html.twig
templates/Backend/flux/list.html.twig
+10
-3
tourinsoft.css
web/css/tourinsoft.css
+15
-0
tourinsoft.js
web/js/tourinsoft.js
+7
-0
No files found.
src/TourinsoftExtension.php
View file @
1cbde7e6
...
...
@@ -2,6 +2,9 @@
namespace
Bolt\Extension\Appolo\Tourinsoft
;
use
Bolt\Asset\File\JavaScript
;
use
Bolt\Asset\File\Stylesheet
;
use
Bolt\Controller\Zone
;
use
Bolt\Extension\Appolo\Tourinsoft\Controller\Backend\FluxController
;
use
Bolt\Extension\DatabaseSchemaTrait
;
use
Bolt\Extension\SimpleExtension
;
...
...
@@ -82,7 +85,6 @@ class TourinsoftExtension extends SimpleExtension
parent
::
registerServices
(
$app
);
// TODO: Change the autogenerated stub
}
/**
* @param string $type
* @param string $data
...
...
@@ -113,5 +115,21 @@ class TourinsoftExtension extends SimpleExtension
];
}
/**
* {@inheritdoc}
*/
protected
function
registerAssets
()
{
return
[
JavaScript
::
create
(
'js/tourinsoft.js'
)
->
setLate
(
true
)
->
setPriority
(
5
)
->
setZone
(
Zone
::
BACKEND
),
Stylesheet
::
create
(
'css/tourinsoft.css'
)
->
setLate
(
true
)
->
setPriority
(
5
)
->
setZone
(
Zone
::
BACKEND
)
];
}
}
\ No newline at end of file
templates/Backend/flux/list.html.twig
View file @
1cbde7e6
...
...
@@ -10,9 +10,13 @@
{%
endblock
page_title
%}
{%
block
page_main
%}
<div
class=
"row"
>
<div
id=
"loader-wrapper"
>
<div
id=
"loader"
>
Synchronisation en cours. Merci de patienter.
</div>
</div>
<div
class=
"row flux_listing"
>
<div
class=
"col-md-8"
>
<div
class=
"buic-listing"
>
<div
class=
"buic-listing
"
>
<!-- tableau -->
<table
class=
" dashboardlisting listing"
>
<tbody
class=
"sortable striping_odd ui-sortable"
>
...
...
@@ -41,7 +45,7 @@
</button>
<ul
class=
"dropdown-menu pull-right"
>
<li>
<a
href=
"
{{
path
(
'tourinsoft_admin_flux_sync'
,
{
'id'
:
item.id
}
)
}}
"
>
<a
href=
"
{{
path
(
'tourinsoft_admin_flux_sync'
,
{
'id'
:
item.id
}
)
}}
"
class=
"tourinsoft_syncrhonize"
>
<i
class=
"fa fa-refresh"
></i>
{{
__
(
'appolo.tourinsoft.synchronize'
)
}}
</a>
...
...
@@ -107,4 +111,6 @@
</aside>
<!-- / sidebar -->
</div>
{%
endblock
page_main
%}
\ No newline at end of file
web/css/tourinsoft.css
0 → 100644
View file @
1cbde7e6
#loader-wrapper
{
width
:
100%
;
height
:
50vh
;
background-color
:
#33363e
;
color
:
#CCC
;
display
:
none
;
}
#loader-wrapper
#loader
{
position
:
relative
;
text-align
:
center
;
top
:
50%
;
font-size
:
2em
;
}
\ No newline at end of file
web/js/tourinsoft.js
0 → 100644
View file @
1cbde7e6
$
(
document
).
ready
(
function
()
{
$
(
'.tourinsoft_syncrhonize'
).
click
(
function
(
e
)
{
$
(
'.flux_listing'
).
fadeOut
();
$
(
'#loader-wrapper'
).
fadeIn
();
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment