Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
“daffadev-inc” committed May 21, 2022
1 parent 9c67cd6 commit 1125637
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 28 deletions.
7 changes: 6 additions & 1 deletion ui/theme/default/bandwidth-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10" style="display:flex;justify-content:space-between;align-items:center;">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button><a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
<button class="btn btn-primary waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Submit']}</button><a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
</div>
</div>
</form>
Expand All @@ -59,5 +59,10 @@
</div>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}bandwidth/list")
}
</script>

{include file="sections/darkmode.tpl"}
7 changes: 6 additions & 1 deletion ui/theme/default/bandwidth-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10" style="display:flex;justify-content:space-between;align-items:center;">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Submit']}</button><a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
<button class="btn btn-primary waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Submit']}</button><a href="{$_url}bandwidth/list">{$_L['Cancel']}</a>
</div>
</div>
</form>
Expand All @@ -60,5 +60,10 @@
</div>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}bandwidth/list")
}
</script>

{include file="sections/footer.tpl"}
12 changes: 8 additions & 4 deletions ui/theme/default/customers-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
</ion-item>

<div class="form-group">
<div class="col-md-12">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button>
<div class="col-md-12 flex">
<button class="btn btn-primary waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Save']}</button> <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div>
</div>
</form>
Expand All @@ -51,6 +51,10 @@
</ion-card>
</div>
</div>

</ion-content>
<script>
function myBtn() {
location.replace("{$_url}customers/list")
}
</script>

{include file="sections/footer.tpl"}
10 changes: 7 additions & 3 deletions ui/theme/default/customers-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@
</ion-item>

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10 flex">
<button class="btn btn-primary waves-effect waves-light" type="submit">{$_L['Save']}</button> <a href="{$_url}customers/list">{$_L['Cancel']}</a>
<div class="col-md-12 flex">
<button class="btn btn-primary waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Save']}</button> <a href="{$_url}customers/list">{$_L['Cancel']}</a>
</div>
</div>
</form>
</ion-list>
</ion-card>
</div>
</div>
</ion-content>
<script>
function myBtn() {
location.replace("{$_url}customers/list")
}
</script>
{include file="sections/footer.tpl"}
Binary file removed ui/theme/default/default.zip
Binary file not shown.
7 changes: 6 additions & 1 deletion ui/theme/default/hotspot-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10 flex">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button><a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
<button class="btn btn-success waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Save']}</button><a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
</div>
</div>
</form>
Expand All @@ -127,5 +127,10 @@
</div>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}services/hotspot")
}
</script>

{include file="sections/footer.tpl"}
7 changes: 6 additions & 1 deletion ui/theme/default/hotspot-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10 flex">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button><a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
<button class="btn btn-success waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Save']}</button><a href="{$_url}services/hotspot">{$_L['Cancel']}</a>
</div>
</div>
</form>
Expand All @@ -124,5 +124,10 @@
</div>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}services/hotspot")
}
</script>

{include file="sections/footer.tpl"}
38 changes: 26 additions & 12 deletions ui/theme/default/prepaid-edit.tpl
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{include file="sections/header.tpl"}
<ion-header translucent>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button onclick="history.back()"><ion-icon name="arrow-back-outline"></ion-icon></ion-button>
</ion-buttons>
<ion-title>{$_L['Recharge_Account']}</ion-title>
</ion-toolbar>
</ion-header>

<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{$_L['Recharge_Account']}</h3></div>
<div class="panel-body">
<ion-content fullscreen class="ion-padding">

<div class="row">
<div class="m-lr">
<ion-card class="panel panel-default panel-hovered panel-stacked mb30"><ion-card-content>
<form class="form-horizontal" method="post" role="form" action="{$_url}prepaid/edit-post">
<input type="hidden" name="id" value="{$d['id']}">
<div class="form-group">
<label class="col-md-2 control-label">{$_L['Select_Account']}</label>
<div class="col-md-6">
<div class="col-md-10">
<input type="text" class="form-control" id="username" name="username" value="{$d['username']}" readonly>
</div>
</div>

<div class="form-group">
<label class="col-md-2 control-label">{$_L['Service_Plan']}</label>
<div class="col-md-6">
<div class="col-md-10">
<select id="id_plan" name="id_plan" class="form-control">
{foreach $p as $ps}
<option value="{$ps['id']}" {if $d['plan_id'] eq $ps['id']} selected {/if}>{$ps['name_plan']}</option>
Expand All @@ -27,7 +35,7 @@

<div class="form-group">
<label class="col-md-2 control-label">{$_L['Created_On']}</label>
<div class="col-md-6">
<div class="col-md-10">
<div class="input-group date" id="datepicker1">
<input type="text" class="form-control" id="recharged_on" name="recharged_on" value="{$d['recharged_on']}">
<span class="input-group-addon ion ion-calendar"></span>
Expand All @@ -36,7 +44,7 @@
</div>
<div class="form-group">
<label class="col-md-2 control-label">{$_L['Expires_On']}</label>
<div class="col-md-6">
<div class="col-md-10">
<div class="input-group date" id="datepicker2">
<input type="text" class="form-control" id="expiration" name="expiration" value="{$d['expiration']}">
<span class="input-group-addon ion ion-calendar"></span>
Expand All @@ -45,15 +53,21 @@
</div>

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Edit']}</button>
Or <a href="{$_url}prepaid/list">{$_L['Cancel']}</a>
<div class="col-lg-offset-2 col-lg-10 flex">
<button class="btn btn-success waves-effect waves-light" type="submit" onclick="myBtn()">{$_L['Edit']}</button> <a href="{$_url}prepaid/list">{$_L['Cancel']}</a>
</div>
</div>
</form>
</ion-card-content>
</ion-card>
</div>
</div>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}prepaid/list")
}
</script>

{include file="sections/footer.tpl"}
11 changes: 8 additions & 3 deletions ui/theme/default/users-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,20 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10 flex">
<button class="btn btn-success waves-effect waves-light" type="submit">{$_L['Save']}</button><a href="{$_url}settings/users">{$_L['Cancel']}</a>
<button class="btn btn-success waves-effect waves-light" type="submit" onclick="myFunc()">{$_L['Save']}</button><a href="{$_url}settings/users">{$_L['Cancel']}</a>
</div>
</div>
</ion-card-content>
</form>

</ion-card-content>
</ion-card>
</div>
</div>
</div>
</div>
<script>
function myFunc() {
location.replace("{$_url}settings/users")
}
</script>

{include file="sections/footer.tpl"}
7 changes: 6 additions & 1 deletion ui/theme/default/voucher-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit" style="float:right">{$_L['Generate']}</button>
<button class="btn btn-success waves-effect waves-light" type="submit" onclick="myBtn()" style="float:right">{$_L['Generate']}</button>
</div>
</div>
</form>
Expand All @@ -66,5 +66,10 @@
</ion-card>
</div>
</div>
<script>
function myBtn() {
location.replace("{$_url}prepaid/voucher")
}
</script>

{include file="sections/footer.tpl"}
4 changes: 3 additions & 1 deletion ui/theme/default/voucher.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
<td align="center">{if $ds['status'] eq '0'} <label class="btn-tag btn-tag-success">Not Use</label> {else} <label class="btn-tag btn-tag-danger">Used</label> {/if}</td>
<td align="center">{if $ds['user'] eq '0'} - {else} {$ds['user']} {/if}</td>
<td>
<a href="{$_url}prepaid/voucher-delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm cdelete">{$_L['Delete']}</a>
<ion-buttons>
<ion-button href="{$_url}prepaid/voucher-delete/{$ds['id']}" id="{$ds['id']}" class="cdelete"><ion-icon name="trash" color="danger" slot="start"></ion-icon><ion-label>{$_L['Delete']}</ion-label></ion-button>
</ion-buttons>
</td>
</tr>
{/foreach}
Expand Down

0 comments on commit 1125637

Please sign in to comment.