Made some more style changes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-07-26 01:08:35 -04:00
parent 541b5236f0
commit 0231ebad2d
8 changed files with 50 additions and 30 deletions

View File

@ -13,4 +13,5 @@ table
#wrapper #wrapper
background: white background: white
padding: 1.5rem 2rem padding: 1.5rem 2rem
border: 1px solid #bbb
border-radius: 8px border-radius: 8px

View File

@ -30,7 +30,11 @@
</div> </div>
</div> </div>
<input class="btn btn-primary" type="submit" value="Create Benchmark"> <div class="row">
<div class="col-12">
<input class="btn btn-primary w-100" type="submit" value="Create Benchmark">
</div>
</div>
</form> </form>
</div> </div>

View File

@ -30,7 +30,11 @@
</div> </div>
</div> </div>
<input class="btn btn-primary" type="submit" value="Submit Changes"> <div class="row">
<div class="col-12">
<input class="btn btn-primary w-100" type="submit" value="Submit Changes">
</div>
</div>
</form> </form>
</div> </div>

View File

@ -22,7 +22,11 @@
</div> </div>
</div> </div>
<input class="btn btn-primary" type="submit" value="Create Hardware"> <div class="row">
<div class="col-12">
<input class="btn btn-primary w-100" type="submit" value="Create Hardware">
</div>
</div>
</form> </form>
</div> </div>

View File

@ -22,7 +22,11 @@
</div> </div>
</div> </div>
<input class="btn btn-primary" type="submit" value="Create Hardware"> <div class="row">
<div class="col-12">
<input class="btn btn-primary w-100" type="submit" value="Submit Changes">
</div>
</div>
</form> </form>
</div> </div>

View File

@ -7,13 +7,13 @@
<div class="row"> <div class="row">
<form class="col-12" action="/test/add" method="post"> <form class="col-12" action="/test/add" method="post">
<div class="row mb-3"> <div class="row mb-0 mb-md-3">
<div class="col-12 col-md-6 mb-3"> <div class="col-12 col-md-6 mb-3 mb-md-0">
<label for="test_name">Test name</label> <label for="test_name">Test name</label>
<input id="test_name" class="form-control" type="text" name="test_name" placeholder="My hardware test (01/99)"> <input id="test_name" class="form-control" type="text" name="test_name" placeholder="My hardware test (01/99)">
</div> </div>
<div class="col-12 col-md-6 mb-3"> <div class="col-12 col-md-6 mb-3 mb-md-0">
<label for="test_hardware">Hardware to test</label> <label for="test_hardware">Hardware to test</label>
<select id="test_hardware" class="form-select" name="test_hardware"> <select id="test_hardware" class="form-select" name="test_hardware">
<% for h in hardware %> <% for h in hardware %>
@ -21,8 +21,10 @@
<% end %> <% end %>
</select> </select>
</div> </div>
</div>
<div class="col-12 col-md-4 mb-3"> <div class="row mb-0 mb-md-3">
<div class="col-12 col-md-4 mb-3 mb-md-0">
<label for="test_benchmarks">Benchmarks</label> <label for="test_benchmarks">Benchmarks</label>
<select id="test_benchmarks" class="form-select" name="test_benchmarks[]" multiple> <select id="test_benchmarks" class="form-select" name="test_benchmarks[]" multiple>
<% for b in benchmarks %> <% for b in benchmarks %>
@ -31,14 +33,15 @@
</select> </select>
</div> </div>
<div class="col-12 col-md-8 mb-3"> <div class="col-12 col-md-8 mb-3 mb-md-0">
<label for="test_description">Test description</label> <label for="test_description">Test description</label>
<textarea id="test_description" class="form-control" name="test_description" placeholder="This is my test for a hardware..."></textarea> <textarea id="test_description" class="form-control" name="test_description" placeholder="This is my test for a hardware..."></textarea>
</div> </div>
</div>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<input class="btn btn-primary" type="submit" value="Create Test"> <input class="btn btn-primary w-100" type="submit" value="Create Test">
</div> </div>
</div> </div>
</form> </form>

View File

@ -1,32 +1,32 @@
<div class="grid-x grid-margin-x"> <div class="row">
<div class="cell small-12"> <div class="col-12">
<h1>Editing: <%= hardware.name %></h1> <h1>Editing: <%= hardware.name %></h1>
</div> </div>
</div> </div>
<div class="grid-x grid-margin-x"> <div class="row">
<form class="cell small-12" action="/hardware/<%= hardware.id %>/edit" method="post"> <form class="col-12" action="/hardware/<%= hardware.id %>/edit" method="post">
<div class="grid-x grid-padding-x"> <div class="row mb-3">
<div class="cell medium-9"> <div class="col-12 col-md-9">
<label> <label for="hardware_name">Hardware name</label>
Hardware name <input id="hardware_name" class="form-control" type="text" name="hardware_name" placeholder="Example hardware" value="<%= hardware.name %>">
<input type="text" name="hardware_name" placeholder="Example hardware" value="<%= hardware.name %>">
</label>
</div> </div>
<div class="cell medium-3"> <div class="col-12 col-md-3">
<label> <label for="hardware_type">Type</label>
Type <select id="hardware_type" class="form-control" name="hardware_type">
<select name="hardware_type">
<option value="gpu" <% if hardware.type == 'gpu' %>selected<% end %>>Graphics card</option> <option value="gpu" <% if hardware.type == 'gpu' %>selected<% end %>>Graphics card</option>
<option value="cpu" <% if hardware.type == 'cpu' %>selected<% end %>>Processor</option> <option value="cpu" <% if hardware.type == 'cpu' %>selected<% end %>>Processor</option>
</select> </select>
</label>
</div> </div>
</div> </div>
<input type="submit" class="button" value="Submit"> <div class="row">
<div class="col-12">
<input class="btn btn-primary w-100" type="submit" value="Submit Changes">
</div>
</div>
</form> </form>
</div> </div>

View File

@ -26,7 +26,7 @@
<% tests.each do |t| %> <% tests.each do |t| %>
<tr> <tr>
<td><a href="/test/<%= t.id %>"><%= t.name %></a></td> <td><a href="/test/<%= t.id %>"><%= t.name %></a></td>
<td><%= t.benchmark.length %></td> <td><%= t.benchmarks.length %></td>
<td><%= date_format(t.created_at) %></td> <td><%= date_format(t.created_at) %></td>
<td><%= date_format(t.updated_at) %></td> <td><%= date_format(t.updated_at) %></td>
</tr> </tr>