add custom-notes field to admins and customers, fixes #1471
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
10
templates/Sparkle/admin/admins/admins_admin.tpl
vendored
10
templates/Sparkle/admin/admins/admins_admin.tpl
vendored
@@ -60,5 +60,15 @@
|
||||
<a href="{$linker->getLink(array('section' => 'admins', 'page' => $page, 'action' => 'delete', 'id' => $row['adminid']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" />
|
||||
</a>
|
||||
<if $row['custom_notes'] != ''>
|
||||
<img src="templates/{$theme}/assets/img/icons/info.png" class="notes" data-id="{$row['loginname']}" alt="{$lng['usersettings']['custom_notes']['title']}" title="{$lng['usersettings']['custom_notes']['title']}" />
|
||||
</if>
|
||||
</td>
|
||||
</tr>
|
||||
<if $row['custom_notes'] != ''>
|
||||
<tr class="notes_block" id="notes_{$row['loginname']}">
|
||||
<td colspan="5">
|
||||
{$row['custom_notes']}
|
||||
</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
@@ -66,12 +66,21 @@
|
||||
</a>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" />
|
||||
</a>
|
||||
<if $islocked == 1>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'unlock', 'id' => $row['customerid']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/unlock.png" alt="{$lng['panel']['unlock']}" title="{$lng['panel']['unlock']}" />
|
||||
</a>
|
||||
<if $islocked == 1>
|
||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'unlock', 'id' => $row['customerid']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/unlock.png" alt="{$lng['panel']['unlock']}" title="{$lng['panel']['unlock']}" />
|
||||
</a>
|
||||
</if>
|
||||
<if $row['custom_notes'] != ''>
|
||||
<img src="templates/{$theme}/assets/img/icons/info.png" class="notes" data-id="{$row['loginname']}" alt="{$lng['usersettings']['custom_notes']['title']}" title="{$lng['usersettings']['custom_notes']['title']}" />
|
||||
</if>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<if $row['custom_notes'] != ''>
|
||||
<tr class="notes_block" id="notes_{$row['loginname']}">
|
||||
<td colspan="6">
|
||||
{$row['custom_notes']}
|
||||
</td>
|
||||
</tr>
|
||||
</if>
|
||||
|
||||
4
templates/Sparkle/assets/css/main.css
vendored
4
templates/Sparkle/assets/css/main.css
vendored
@@ -1401,3 +1401,7 @@ table thead th.tablesorter-headerDesc {
|
||||
border: 1px solid #ccc;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.notes_block {
|
||||
display: none;
|
||||
}
|
||||
|
||||
4
templates/Sparkle/assets/js/main.js
vendored
4
templates/Sparkle/assets/js/main.js
vendored
@@ -40,6 +40,10 @@ $(document).ready(function() {
|
||||
$(".tipper").tipper({
|
||||
direction: "right"
|
||||
});
|
||||
// Enable notes
|
||||
$(".notes").click(function() {
|
||||
$("#notes_" + $(this).attr("data-id")).toggle("slow");
|
||||
})
|
||||
// Enable reset search click
|
||||
$(".resetsearch").click(function() {
|
||||
$(".searchtext").val("");
|
||||
|
||||
Reference in New Issue
Block a user