Create a new leaderboard
This commit is contained in:
parent
c1817a24be
commit
beea5e57c1
7 changed files with 104 additions and 5 deletions
17
templates/leaderboard/new.phtml
Normal file
17
templates/leaderboard/new.phtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<form role="form" class="ajax row col-xs-12 col-sm-6 col-sm-offset-3" method="post" action="/leaderboard/create" onsubmit="return false">
|
||||
<h1>New Leaderboard</h1>
|
||||
<?php
|
||||
echo $this->html->div(
|
||||
array('class' => 'form-group'),
|
||||
$this->html->input(array(
|
||||
'label' => 'Name',
|
||||
'name' => 'name',
|
||||
'class' => 'form-control input-lg required',
|
||||
'placeholder' => 'What shall we call this leaderboard?',
|
||||
'autocomplete' => 'off',
|
||||
'autofocus' => 'autofocus',
|
||||
))
|
||||
);
|
||||
?>
|
||||
<button type="submit" class="btn btn-success btn-lg">Make it so!</button>
|
||||
</form>
|
|
@ -1,3 +1,19 @@
|
|||
<h1>My Leaderboards</h1>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<h1>My Leaderboards</h1>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6 text-right">
|
||||
<a class="btn btn-success" href="/leaderboard/new">New Leaderboard</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($this->module['leaderboards'])
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div class="lead">You have no leaderboards, <a href="/leaderboard/new">want to create one?</a></div>';
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue