-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
551 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">×</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">×</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">×</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">×</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">×</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">×</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> |
Oops, something went wrong.