3words/views/index.html

45 lines
1.5 KiB
HTML
Raw Normal View History

{include="layout"}
2014-08-17 23:45:40 +02:00
{include="navbar"}
<div class="container">
{if="$message"}
<div class="alert alert-info">{$message}</div>
{/if}
2014-08-18 15:24:54 +02:00
<h1 class="text-center">{$site_name}!</h1>
2014-08-18 15:55:54 +02:00
<form method="POST">
<p class="text-center">Want to tell them who you are? <input name="author" type="text" class="input-xs" placeholder="Anonymous"></p>
<div class="row">
<div class="col-md-4 rowm">
<input name="word1" type="text" class="form-control" placeholder="First Word">
</div>
<div class="col-md-4 rowm">
<input name="word2" type="text" class="form-control" placeholder="Second Word">
</div>
<div class="col-md-4 rowm">
<input name="word3" type="text" class="form-control" placeholder="Third Word">
</div>
2014-08-18 00:00:05 +02:00
</div>
2014-08-18 15:55:54 +02:00
<div class="row">
<div class="col-md-4 col-md-offset-4">
<button type="submit" class="btn btn-primary btn-block btn-lg">Submit</button>
</div>
2014-08-18 00:00:05 +02:00
</div>
2014-08-18 15:55:54 +02:00
<input type="hidden" name="words">
</form>
2014-08-18 16:33:43 +02:00
{if="$recent_answers"}
2014-08-18 16:49:31 +02:00
<div class="row">
<div class="col-md-8">
<h4>Recent Answers by others:</h4>
<table class="table table-responsive table-bordered table-condensed">
<tbody>
{loop="$recent"}
<tr>
<td><b>{$value.author}</b> wrote that {$user_name} is <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> and <span class="label label-default">{$value.word3}</span></td>
</tr>
{/loop}
</tbody>
</table>
</div>
</div>
2014-08-18 16:33:43 +02:00
{/if}
2014-08-17 23:45:40 +02:00
</div>
{include="footer"}