Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Oct 29, 2024
1 parent 130c984 commit 564b3a5
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions go/admin/templates/add_new_executions.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
<div id="content">
<form>
<label class="text-lg font-semibold mt-4">Information</label>
<div class="flex flex-row gap-4">
<div>
<label class="label">Source (execution's trigger/reason)</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
name="source"
value="admin"
/>
</div>
<div>
<label class="label">SHA</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
class="form-control"
name="sha"
/>
</div>
<div>
<label class="label">Source (execution's trigger/reason)</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
name="source"
value="admin"
/>
</div>
<br>
<div>
<label class="label">SHA</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
type="text"
class="form-control"
name="sha"
/>
</div>
<br>
<label class="text-lg font-semibold mt-4">Workloads</label>
Expand Down Expand Up @@ -153,6 +152,7 @@
hx-target="#response"
class="bg-green-500 hover:green text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
type="submit"
onclick="clearHelperText()"
>
Add Execution
</button>
Expand All @@ -177,6 +177,10 @@
}
});

function clearHelperText() {
document.getElementById("response").innerHTML = "";
}

function toggleProfilingFields() {
const checkbox = document.getElementById('enableProfilingCheckbox');
const profilingFields = document.getElementById('profilingFields');
Expand Down

0 comments on commit 564b3a5

Please sign in to comment.