game-data/views/project/add.erb

54 lines
1.6 KiB
Plaintext

<div class="grid-x grid-margin-x">
<div class="cell small-12">
<h1>Add new project</h1>
</div>
</div>
<div class="grid-x grid-margin-x">
<form class="cell small-12" action="/project/add" method="post">
<div class="grid-x grid-padding-x">
<div class="cell small-12">
<label for="project_name">
Project name
<input id="project_name" type="text" name="project_name" placeholder="Example hardware">
</label>
</div>
<div class="cell small-12">
<label for="project_description">
Project description:
<textarea id="project_description" cols="30" rows="10" name="project_description"></textarea>
</label>
</div>
</div>
<div class="grid-x grid-padding-x">
<div class="cell small-12 medium-6">
<label for="project_hardware">
Project hardware:
<select id="project_hardware" name="project_hardware[]" multiple>
<% hardware.each do |h| %>
<option value="<%= h.id %>"><%= h.name %></option>
<% end %>
</select>
</label>
</div>
<div class="cell small-12 medium-6">
<label for="project_benchmarks">
Project benchmarks:
<select id="project_benchmarks" name="project_benchmarks[]" multiple>
<% benchmarks.each do |b| %>
<option value="<%= b.id %>"><%= b.name %></option>
<% end %>
</select>
</label>
</div>
</div>
<input type="submit" class="button" value="Submit">
</form>
</div>