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:56:02 +02:00
{if="$recent_public"}
2014-08-18 16:51:07 +02:00
<div class="row recent-margin">
2014-08-18 16:58:18 +02:00
<div class="col-md-offset-2 col-md-8">
2014-08-18 16:49:31 +02:00
<h4>Recent Answers by others:</h4>
<table class="table table-responsive table-bordered table-condensed">
<tbody>
2014-08-18 16:56:02 +02:00
{loop="$words"}
2014-08-18 16:49:31 +02:00
<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"}