mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 10:42:59 +02:00
related to #1462 Status verification before user edition
This commit is contained in:
@@ -22,6 +22,7 @@ jQuery(".cancel-icon").click(function() {
|
||||
});
|
||||
|
||||
const color_icons = ["icon-red", "icon-blue", "icon-yellow", "icon-purple", "icon-green"];
|
||||
const users_key = "{"Users"|@translate}"
|
||||
|
||||
{*<-- Translation keys -->*}
|
||||
|
||||
@@ -552,7 +553,7 @@ function lineConstructor(line) {
|
||||
newLine.find(".detail-item-3").attr('title', line.details.agent);
|
||||
} else if (line.details.users_string && line.action != "logout" && line.action != "login") {
|
||||
newLine.find(".detail-item-3").html(line.details.users_string);
|
||||
newLine.find(".detail-item-3").attr('title', line.details.users_string);
|
||||
newLine.find(".detail-item-3").attr('title', users_key + ": " +line.details.users_string);
|
||||
} else {
|
||||
newLine.find(".detail-item-3").remove();
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ months = [
|
||||
|
||||
/* Template variables */
|
||||
connected_user = {$connected_user};
|
||||
connected_user_status = "{$connected_user_status}";
|
||||
owner_id = {$owner};
|
||||
let groups_arr_name = [{$groups_arr_name}];
|
||||
let groups_arr_id = [{$groups_arr_id}];
|
||||
groups_arr = groups_arr_id.map((elem, index) => [elem, groups_arr_name[index]]);
|
||||
@@ -560,7 +562,7 @@ $(".icon-help-circled").tipTip({
|
||||
</div>
|
||||
<div class="user-property-email">
|
||||
<p class="user-property-label">{'Email Adress'|@translate}</p>
|
||||
<input type="text" class="user-property-input" value="contact@jessy-pinkman.com" />
|
||||
<input type="text" class="user-property-input" value="contact@jessy-pinkman.com" disabled="false"/>
|
||||
</div>
|
||||
<div class="user-property-status">
|
||||
<p class="user-property-label">{'Status'|@translate}
|
||||
@@ -2353,4 +2355,12 @@ Advanced filter
|
||||
display:inline-block;
|
||||
max-width:500px;
|
||||
}
|
||||
|
||||
.notClickable {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.notClickable:hover {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user