Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VBcms-2-0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Sofiane Lasri
VBcms-2-0
Commits
e386ff78
Commit
e386ff78
authored
3 years ago
by
Sofiane Lasri
Browse files
Options
Downloads
Patches
Plain Diff
16H01 - userGroups settings
parent
cc75b02f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
vbcms-admin/css/manager.css
+39
-0
39 additions, 0 deletions
vbcms-admin/css/manager.css
vbcms-admin/includes/settings/groups.php
+22
-2
22 additions, 2 deletions
vbcms-admin/includes/settings/groups.php
vbcms-content/translations/FR.php
+3
-0
3 additions, 0 deletions
vbcms-content/translations/FR.php
with
64 additions
and
2 deletions
vbcms-admin/css/manager.css
+
39
−
0
View file @
e386ff78
...
@@ -818,3 +818,42 @@ header .menu-item{
...
@@ -818,3 +818,42 @@ header .menu-item{
77
.
5
%
{
color
:
transparent
;
}
77
.
5
%
{
color
:
transparent
;
}
100
%
{
color
:
#FFC107
;
}
100
%
{
color
:
#FFC107
;
}
}
}
.plusMenu
{
position
:
fixed
;
display
:
none
;
background-color
:
white
;
border-radius
:
5px
;
overflow
:
hidden
;
}
.plusMenu
ul
{
padding
:
0px
;
margin
:
0px
;
min-width
:
150px
;
list-style
:
none
;
}
.plusMenu
ul
li
{
padding-bottom
:
7px
;
padding-top
:
7px
;
color
:
black
;
background-color
:
white
;
margin
:
.25em
;
border-radius
:
5px
;
padding-left
:
.5em
;
padding-right
:
.5em
;
}
.plusMenu
ul
li
.danger
{
color
:
#DC3545
;
}
.plusMenu
ul
li
:hover
{
background-color
:
var
(
--mainBrown
);
color
:
white
;
}
.plusMenu
ul
li
.danger
:hover
{
background-color
:
#DC3545
;
color
:
white
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vbcms-admin/includes/settings/groups.php
+
22
−
2
View file @
e386ff78
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
<td>
<td>
<span class="text-muted">'
.
$usersCount
.
' <i class="fas fa-user"></i></span>
<span class="text-muted">'
.
$usersCount
.
' <i class="fas fa-user"></i></span>
</td>
</td>
<td>
<td
label="plusMenu"
>
<div class="roundedLink" data-toggle="tooltip" data-placement="top" title="Plus"><i class="fas fa-ellipsis-h"></i></div>
<div class="roundedLink" data-toggle="tooltip" data-placement="top" title="Plus"
onclick="showPlusMenu('
.
$userGroup
[
'groupId'
]
.
')"
><i class="fas fa-ellipsis-h"></i></div>
</td>
</td>
</tr>'
);
</tr>'
);
}
}
...
@@ -51,6 +51,15 @@
...
@@ -51,6 +51,15 @@
</div>
</div>
</div>
</div>
<div
class=
"plusMenu border"
id=
"plusMenu"
>
<ul>
<li><span>
<?=
translate
(
'rename'
)
?>
</span></li>
<li><span>
Copier le nom (slug)
</span></li>
<li><span>
Copier l'identifiant (ID)
</span></li>
<li
class=
"danger"
><span>
<?=
translate
(
'deleteGroup'
)
?>
</span></li>
</ul>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
$
(
'
.userCard
'
).
hover
(
function
()
{
$
(
'
.userCard
'
).
hover
(
function
()
{
...
@@ -63,4 +72,15 @@ $(function() {
...
@@ -63,4 +72,15 @@ $(function() {
});
});
});
});
function
showPlusMenu
(
groupId
){
$
(
'
#plusMenu
'
).
css
(
"
top
"
,
event
.
clientY
);
$
(
'
#plusMenu
'
).
css
(
"
left
"
,
event
.
clientX
);
$
(
'
#plusMenu
'
).
css
(
"
display
"
,
"
block
"
);
}
$
(
document
).
click
(
function
(
event
)
{
if
(
$
(
'
#plusMenu
'
).
css
(
'
display
'
)
!=
'
none
'
&&
$
(
event
.
target
).
closest
(
"
.plusMenu
"
).
attr
(
'
id
'
)
!=
'
plusMenu
'
&&
$
(
event
.
target
).
closest
(
"
td
"
).
attr
(
"
label
"
)
!=
'
plusMenu
'
){
$
(
'
#plusMenu
'
).
css
(
"
display
"
,
"
none
"
);
}
});
</script>
</script>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vbcms-content/translations/FR.php
+
3
−
0
View file @
e386ff78
...
@@ -53,6 +53,7 @@ $translation["theme"] = "Thème";
...
@@ -53,6 +53,7 @@ $translation["theme"] = "Thème";
$translation
[
"cancel"
]
=
"Annuler"
;
$translation
[
"cancel"
]
=
"Annuler"
;
$translation
[
"visualize"
]
=
"Visualiser"
;
$translation
[
"visualize"
]
=
"Visualiser"
;
$translation
[
"commands"
]
=
"Commandes"
;
$translation
[
"commands"
]
=
"Commandes"
;
$translation
[
"rename"
]
=
"Renommer"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
...
@@ -108,6 +109,8 @@ $translation["noCommandSpecified"] = "Aucune commande de spcécifiée";
...
@@ -108,6 +109,8 @@ $translation["noCommandSpecified"] = "Aucune commande de spcécifiée";
$translation
[
"noPostData"
]
=
"Pas de donnée POST :("
;
$translation
[
"noPostData"
]
=
"Pas de donnée POST :("
;
$translation
[
"modifyLocalAccount"
]
=
"Modifier le compte local"
;
$translation
[
"modifyLocalAccount"
]
=
"Modifier le compte local"
;
$translation
[
"createGroup"
]
=
"Créer un groupe"
;
$translation
[
"createGroup"
]
=
"Créer un groupe"
;
$translation
[
"deleteGroup"
]
=
"Supprimer le groupe"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
$translation
[
"sample"
]
=
"sample"
;
...
...
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