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
136bce95
Commit
136bce95
authored
May 11, 2018
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translations done
parent
d73821a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
FluxController.php
src/Controller/Backend/FluxController.php
+3
-2
list.html.twig
templates/Backend/flux/list.html.twig
+1
-8
en.yml
translations/en.yml
+6
-2
fr.yml
translations/fr.yml
+6
-2
No files found.
src/Controller/Backend/FluxController.php
View file @
136bce95
...
...
@@ -7,6 +7,7 @@ use Bolt\Controller\Backend\BackendBase;
use
Bolt\Extension\Appolo\Tourinsoft\Form\FluxType
;
use
Bolt\Extension\Appolo\Tourinsoft\Storage\Entity\Flux
;
use
Bolt\Extension\Appolo\Tourinsoft\Synchronisation\Synchronisation
;
use
Bolt\Translation\Translator
;
use
Silex\ControllerCollection
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -137,7 +138,7 @@ class FluxController extends BackendBase
$flux
=
$this
->
assertFLux
(
$request
->
get
(
'id'
));
$this
->
app
[
'storage'
]
->
delete
(
$flux
);
$this
->
app
[
'session'
]
->
getFlashBag
()
->
add
(
'success'
,
'Flux supprimé'
);
$this
->
app
[
'session'
]
->
getFlashBag
()
->
add
(
'success'
,
Translator
::
__
(
'appolo.tourinsoft.flux_delete'
)
);
$sync
=
new
Synchronisation
(
$this
->
config
,
$this
->
application
,
$flux
);
$sync
->
delete
();
...
...
@@ -154,7 +155,7 @@ class FluxController extends BackendBase
/** @var Flux $flux */
$flux
=
$fluxRepository
->
find
(
$id
);
if
(
!
$flux
){
$this
->
app
[
'session'
]
->
getFlashBag
()
->
add
(
'error'
,
'Flux inexistant'
);
$this
->
app
[
'session'
]
->
getFlashBag
()
->
add
(
'error'
,
Translator
::
__
(
'appolo.tourinsoft.flux_inexistant'
)
);
return
$this
->
redirectToRoute
(
'tourinsoft_admin_flux_index'
);
}
...
...
templates/Backend/flux/list.html.twig
View file @
136bce95
...
...
@@ -29,13 +29,7 @@
{%
for
item
in
flux
|
reverse
%}
<tr
class=
"dim"
id=
"item_1"
>
<td
class=
"id hidden-xs"
>
{{
item.id
}}
</td>
<td>
<span>
<strong>
{{
item.title
}}
</strong>
</span>
</td>
<td><span><strong>
{{
item.title
}}
</strong></span></td>
<td>
{{
item.code
}}
</td>
<td>
{{
item.key
}}
</td>
<td>
{{
item.contentType
}}
</td>
...
...
@@ -45,7 +39,6 @@
{{
__
(
'appolo.tourinsoft.select_an_action'
)
}}
<i
class=
"fa fa-info-sign"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu pull-right"
>
<li>
<a
href=
"
{{
path
(
'tourinsoft_admin_flux_sync'
,
{
'id'
:
item.id
}
)
}}
"
>
...
...
translations/en.yml
View file @
136bce95
...
...
@@ -19,4 +19,8 @@ appolo.tourinsoft.not_yet: Not yet
# Validator
appolo.tourinsoft.title_is_required
:
Title is required
appolo.tourinsoft.key_is_required
:
Key is required
appolo.tourinsoft.content_type_is_required
:
Content type is required
\ No newline at end of file
appolo.tourinsoft.content_type_is_required
:
Content type is required
# Flash Messages
appolo.tourinsoft.flux_delete
:
Flux deleted
appolo.tourinsoft.flux_inexistant
:
Flux inexistant
\ No newline at end of file
translations/fr.yml
View file @
136bce95
...
...
@@ -19,4 +19,8 @@ appolo.tourinsoft.not_yet: Pas encore
# Validator
appolo.tourinsoft.title_is_required
:
Le titre est requis
appolo.tourinsoft.key_is_required
:
La clé est requise
appolo.tourinsoft.content_type_is_required
:
Le type de contenu est requis
\ No newline at end of file
appolo.tourinsoft.content_type_is_required
:
Le type de contenu est requis
# Flash Messages
appolo.tourinsoft.flux_delete
:
Flux supprimé
appolo.tourinsoft.flux_inexistant
:
Flux inexistant
\ 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