Skip to content

Commit

Permalink
1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PadowYT2 committed May 16, 2023
1 parent a3e9021 commit 118d039
Show file tree
Hide file tree
Showing 10 changed files with 551 additions and 693 deletions.
241 changes: 108 additions & 133 deletions custom/panel_templates/Default/badges/badges.tpl
Original file line number Diff line number Diff line change
@@ -1,139 +1,114 @@
{include file='header.tpl'}

<body id="page-top">

<!-- Wrapper -->
<div id="wrapper">

<!-- Sidebar -->
{include file='sidebar.tpl'}

<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">

<!-- Main content -->
<div id="content">

<!-- Topbar -->
{include file='navbar.tpl'}

<!-- Begin Page Content -->
<div class="container-fluid">

<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">

<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>

<section class="content">
{if isset($SUCCESS)}
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fa fa-check"></i> {$SUCCESS_TITLE}</h5>
{$SUCCESS}
</div>
{/if}

{if isset($ERRORS) && count($ERRORS)}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
<ul>
{foreach from=$ERRORS item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}


<div class="float-md">
<a href="{$NEW_BDG_LINK}" class="btn btn-primary" type="button">{$NEW_BADGES}
</i></a>
</div>
<hr>
{if count($BADGES_LIST)}
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{foreach from=$BADGES_LIST item=badge}
<tr>
<td>
<strong><a href="{$badge.edit_link}">{$badge.name}<strong class="float-md-right">{$POSTS}
{$badge.require_posts}</strong></strong></a>
</td>
<td>
<div class="float-md-right">
<a class="btn btn-warning btn-sm" href="{$badge.edit_link}"><i
class="nav-icon fas fa-edit fa-fw"></i></a>
<button class="btn btn-danger btn-sm" type="button"
onclick="showDeleteModal('{$badge.delete_link}')"><i
class="nav-icon fas fa-trash fa-fw"></i></button>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}

</section>

</div>


<!-- Modal Form -->

<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{$ARE_YOU_SURE}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{$CONFIRM_DELETE}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{$NO}</button>
<a href="#" id="delete" class="btn btn-primary">{$YES}</a>
</div>
</div>
</div>
</div>


</div>

{include file='footer.tpl'}


</div>
</div>
<!-- ./wrapper -->


{include file='scripts.tpl'}

<script type="text/javascript">
function showDeleteModal(id) {
$('#delete').attr('href', id);
$('#deleteModal').modal().show();
}
</script>

<!-- Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main content -->
<div id="content">
<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>
<section class="content">
{if isset($SUCCESS)}
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fa fa-check"></i> {$SUCCESS_TITLE}</h5>
{$SUCCESS}
</div>
{/if}
{if isset($ERRORS) && count($ERRORS)}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
<ul>
{foreach from=$ERRORS item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}
<div class="float-md">
<a href="{$NEW_BDG_LINK}" class="btn btn-primary" type="button">{$NEW_BADGES}
</i></a>
</div>
<hr>
{if count($BADGES_LIST)}
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{foreach from=$BADGES_LIST item=badge}
<tr>
<td>
<strong><a href="{$badge.edit_link}">{$badge.name}<strong
class="float-md-right">{$POSTS}
{$badge.require_posts}</strong></strong></a>
</td>
<td>
<div class="float-md-right">
<a class="btn btn-warning btn-sm" href="{$badge.edit_link}"><i
class="nav-icon fas fa-edit fa-fw"></i></a>
<button class="btn btn-danger btn-sm" type="button"
onclick="showDeleteModal('{$badge.delete_link}')"><i
class="nav-icon fas fa-trash fa-fw"></i></button>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
</section>
</div>
<!-- Modal Form -->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{$ARE_YOU_SURE}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{$CONFIRM_DELETE}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{$NO}</button>
<a href="#" id="delete" class="btn btn-primary">{$YES}</a>
</div>
</div>
</div>
</div>
</div>
{include file='footer.tpl'}
</div>
</div>
<!-- ./wrapper -->
{include file='scripts.tpl'}
<script type="text/javascript">
function showDeleteModal(id) {
$('#delete').attr('href', id);
$('#deleteModal').modal().show();
}
</script>
</body>

</html>
Loading

0 comments on commit 118d039

Please sign in to comment.