Changing database schema a bit
This commit is contained in:
@ -9,9 +9,9 @@
|
||||
<form class="twelve columns" action="/test/add" method="POST">
|
||||
<div class="row">
|
||||
<div class="three columns">
|
||||
<label for="test_date_tag">
|
||||
Test date tag:
|
||||
<input id="test_date_tag" class="u-full-width" type="text" name="test_date_tag" placeholder="(XX/YY)">
|
||||
<label for="test_title">
|
||||
Test title:
|
||||
<input id="test_title" class="u-full-width" type="text" name="test_title" placeholder="My test">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<table class="twelve columns">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Date Tag</td>
|
||||
<td>Title</td>
|
||||
<td>Created at</td>
|
||||
<td>Last updated</td>
|
||||
</tr>
|
||||
@ -18,7 +18,7 @@
|
||||
<tbody>
|
||||
{% for t in tests %}
|
||||
<tr>
|
||||
<td><a href="/test/{{ t.id }}">{{ t.dateTag }} {{ t.getHardware().name }}</a></td>
|
||||
<td><a href="/test/{{ t.id }}">{{ t.title }}</a></td>
|
||||
<td>{{ t.createdAt | date('m/d/Y g:ia') }}</td>
|
||||
<td>{{ t.updatedAt | date('m/d/Y g:ia') }}</td>
|
||||
</tr>
|
||||
|
@ -1,10 +1,10 @@
|
||||
{% extends 'layouts/default.twig' %}
|
||||
|
||||
{% block title %}Test: {{ test.getHardware().name }} - {{ test.dateTag }}{% endblock %}
|
||||
{% block title %}Test: {{ test.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<h2>Test: {{ test.getHardware().name }} - {{ test.dateTag }}</h2>
|
||||
<h2>Test: {{ test.title }}</h2>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
Reference in New Issue
Block a user