Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Template
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Modulus
Services
Template
Commits
1a17eeed
Commit
1a17eeed
authored
Apr 14, 2020
by
Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug menu_more
parent
e188ce9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
example.md
example.md
+2
-2
src/Compose/Template3Bt4.php
src/Compose/Template3Bt4.php
+4
-2
No files found.
example.md
View file @
1a17eeed
...
...
@@ -62,13 +62,13 @@
'route_prefix'
=>
$route_prefix
,
'can_prefix'
=>
$can_prefix
,
'menu'
=>
[
'display'
=>
true
,
'display'
=>
true
,
// Affichage du menu
'is_readable'
=>
true
,
'is_editable'
=>
true
,
'is_deletable'
=>
true
,
'is_duplicable'
=>
false
,
'tags'
=>
array
(
[
'template'
=>
'[
module|ged|document|%s
]'
,
'key'
=>
'id'
]
[
'template'
=>
'[
module|ged|document|%s
]'
,
'key'
=>
'id'
]
),
'more'
=>
array
([
'label'
=>
'<i class="fa fa-unlock mr-1"></i> RAZ validation'
,
...
...
src/Compose/Template3Bt4.php
View file @
1a17eeed
...
...
@@ -69,7 +69,7 @@ class Template3Bt4
*/
public
function
renderListHead
()
:
string
{
$template
=
'<th scope="col" class="text-nowrap">%s%s</th>'
.
PHP_EOL
;
$template
=
'<th scope="col" class="text-nowrap
%s
">%s%s</th>'
.
PHP_EOL
;
$render
=
''
;
...
...
@@ -81,8 +81,10 @@ class Template3Bt4
foreach
(
$columns
as
$column
)
{
$sortable
=
data_get
(
$column
,
'sortable'
);
$class
=
data_get
(
$column
,
'class'
);
$render
.=
vsprintf
(
$template
,
[
is_null
(
$class
)
?
''
:
' '
.
$class
,
data_get
(
$column
,
'label'
),
is_null
(
$sortable
)
?
''
:
col_sort
(
$sortable
)
]);
...
...
@@ -285,7 +287,7 @@ class Template3Bt4
$menu_more
=
data_get
(
$this
->
_menu
,
'more'
);
if
(
count
(
$menu_more
)
>
0
)
{
if
(
!
empty
(
$menu_more
)
&&
count
(
$menu_more
)
>
0
)
{
$template
=
'<a class="dropdown-item%s"%s>'
.
PHP_EOL
;
$template
.=
' %s'
.
PHP_EOL
;
$template
.=
'</a>'
.
PHP_EOL
;
...
...
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