Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
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
6
Merge Requests
6
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
agplv3
kohinos-tav
Commits
5f3b56a7
Commit
5f3b56a7
authored
Mar 06, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show presta products in presta admin
parent
7b23e444
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
3 deletions
+32
-3
admin.css
assets/css/admin.css
+11
-0
admin.4de55830.css
public/build/admin.4de55830.css
+0
-0
entrypoints.json
public/build/entrypoints.json
+1
-1
manifest.json
public/build/manifest.json
+1
-1
sw.js
public/sw.js
+0
-0
PrestataireAdmin.php
src/Admin/PrestataireAdmin.php
+18
-0
infos.html.twig
templates/themes/kohinos/presta/block/infos.html.twig
+1
-1
No files found.
assets/css/admin.css
View file @
5f3b56a7
...
...
@@ -2155,3 +2155,13 @@ https://github.com/sonata-project/SonataAdminBundle/issues/4022
height
:
0.1px
!important
;
opacity
:
0.01
!important
;
}
.prestataire-products-families-row
{
display
:
flex
;
gap
:
10px
;
}
.prestataire-products-families-row
.form-group
{
flex-basis
:
50%
;
margin-bottom
:
5px
;
}
\ No newline at end of file
public/build/admin.
5dc0eea7
.css
→
public/build/admin.
4de55830
.css
View file @
5f3b56a7
This diff is collapsed.
Click to expand it.
public/build/entrypoints.json
View file @
5f3b56a7
...
...
@@ -15,7 +15,7 @@
"/build/admin.86a2d986.js"
],
"css"
:
[
"/build/admin.
5dc0eea7
.css"
"/build/admin.
4de55830
.css"
]
}
}
...
...
public/build/manifest.json
View file @
5f3b56a7
{
"build/app.css"
:
"/build/app.c40ef51c.css"
,
"build/app.js"
:
"/build/app.94b71822.js"
,
"build/admin.css"
:
"/build/admin.
5dc0eea7
.css"
,
"build/admin.css"
:
"/build/admin.
4de55830
.css"
,
"build/admin.js"
:
"/build/admin.86a2d986.js"
,
"build/runtime.js"
:
"/build/runtime.6ad5c9da.js"
,
"build/images/fa-solid-900.svg"
:
"/build/images/fa-solid-900.a838c42a.svg"
,
...
...
public/sw.js
View file @
5f3b56a7
This diff is collapsed.
Click to expand it.
src/Admin/PrestataireAdmin.php
View file @
5f3b56a7
...
...
@@ -21,6 +21,7 @@ use App\Exporter\CustomDoctrineORMQuerySourceIterator;
use
App\Form\Type\ContactEntityFormType
;
use
App\Form\Type\GeolocPrestataireFormType
;
use
App\Form\Type\UserFormType
;
use
App\Form\Type\PrestataireProductFamilyFormType
;
use
Doctrine\ORM\Query
;
use
FOS\CKEditorBundle\Form\Type\CKEditorType
;
use
FOS\UserBundle\Event\UserEvent
;
...
...
@@ -369,6 +370,23 @@ class PrestataireAdmin extends AbstractAdmin
->
end
();
}
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'presta_extra_data'
))
{
$formMapper
->
tab
(
'Prestataire'
)
->
with
(
'Prestataire'
,
[
'class'
=>
'col-md-6'
])
->
add
(
'prestataireProductFamilies'
,
CollectionType
::
class
,
[
'label'
=>
'Produits que le prestataire a renseigné'
,
'entry_type'
=>
PrestataireProductFamilyFormType
::
class
,
'required'
=>
false
,
'disabled'
=>
true
,
'entry_options'
=>
[
'attr'
=>
[
'class'
=>
'prestataire-products-families-row'
],
],
])
->
end
()
->
end
();
}
// @TODO : add tags model transformer if add new from text
// ->get('etats')
// ->addModelTransformer(new CallbackTransformer(
...
...
templates/themes/kohinos/presta/block/infos.html.twig
View file @
5f3b56a7
...
...
@@ -10,7 +10,7 @@
{%
block
blockcontent
%}
{%
set
form
=
getPrestataireInfosForm
(
app.user
)
%}
{#
Create "template" as a macro for a
product family entry in the form collection #}
{#
Use macro as a template : macro for a prestataire
product family entry in the form collection #}
{%
import
_self
as
formMacros
%}
{%
macro
printPrestataireProductFamilyForm
(
prestataireProductFamilyForm
,
formName
=
""
)
%}
<div
class=
"presta-products-family"
>
...
...
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