Added ability to create projects
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
{{ template "header" . }}
|
||||
|
||||
<div class="row">
|
||||
<h2>Add a project</h2>
|
||||
<h2>Create a project</h2>
|
||||
|
||||
<form class="twelve columns" action="/project/add" method="POST">
|
||||
<form class="twelve columns" action="/project/create" method="POST">
|
||||
<div class="row">
|
||||
<label for="project_title">
|
||||
Project title:
|
||||
<input id="project_title" class="u-full-width" type="text" name="project_title" placeholder="My hardware benchmarking project">
|
||||
<label for="project_name">
|
||||
Project name:
|
||||
<input id="project_name" class="u-full-width" type="text" name="project_name" placeholder="My hardware benchmarking project">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<div class="row">
|
||||
<h2>Projects</h2>
|
||||
<a href="/project/add">Add a project</a>
|
||||
<a href="/project/create">Create a new project</a>
|
||||
|
||||
<table class="twelve columns">
|
||||
<thead>
|
||||
@ -15,7 +15,7 @@
|
||||
<tbody>
|
||||
{{ range $p := .projects }}
|
||||
<tr>
|
||||
<td><a href="/project/{{ $p.Id }}">{{ $p.Name }}</a></td>
|
||||
<td><a href="/project/{{ $p.ID }}">{{ $p.Name }}</a></td>
|
||||
<td>{{ $p.CreatedAt.Format "01/02/2006 15:04am" }}</td>
|
||||
<td>{{ $p.UpdatedAt.Format "01/02/2006 15:04am" }}</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user