mirror of
https://git.dn42.dev/dn42/pingfinder.git
synced 2025-07-09 14:34:28 -07:00
46 lines
1.4 KiB
Smarty
46 lines
1.4 KiB
Smarty
{extends file='layout.tpl'}
|
|
|
|
{block name=meta}
|
|
{if $o.peer_id|default:'' != ''}
|
|
|
|
{elseif $o.msg|default:'' != ''}
|
|
<meta http-equiv="refresh" content="3; url=/peers/peer/{$rq->id|default:$o.peer_id:''}">
|
|
{elseif $o.err|default:'' != ''}
|
|
<meta http-equiv="refresh" content="3; url=/peers/peer/{$rq->id}">
|
|
{/if}
|
|
{/block}
|
|
|
|
{block name=content}
|
|
|
|
|
|
{if $o.peer_id|default:'' != ''}
|
|
<h1>Welcome to Peerfinder!</h1>
|
|
{elseif $o.msg|default:'' != ''}
|
|
<h1>User Update for Peerfinder!</h1>
|
|
{/if}
|
|
|
|
|
|
{if $o.err|default:'' != ''}
|
|
<div class='alert alert-danger'><b>ERROR:</b> {$o.err} </div>
|
|
{else if $o.msg|default:'' != ''}
|
|
<div class='alert alert-success'><b>Success:</b> {$o.msg} </div>
|
|
<h3>Peer ID: {$rq->id|default:$o.peer_id:''}</h3>
|
|
|
|
{else}
|
|
<form class="form-horizontal" action=/peers/peer/{$o.peer_id} method=POST>
|
|
|
|
<div class="form-group"><label class="col-sm-2 control-label" >Auth Pin </label><div class='col-sm-10'><input class=form-control type=password name=auth_pin /></div></div>
|
|
|
|
<hr/>
|
|
|
|
{include file='form.tpl'}
|
|
|
|
<div class="form-group"><label class="col-sm-2 control-label"> New Pin </label><div class='col-sm-10'><input class=form-control type=password name=peer_pin /></div></div>
|
|
<div class="form-group"><div class="col-sm-offset-2 col-sm-10"><button class="btn btn-primary" type=submit>Submit</button></div></div>
|
|
|
|
</form>
|
|
{/if}
|
|
|
|
<a href='/peers/script'>Ping Script</a>
|
|
{/block}
|