Files
archery/views/build-new.ejs
Cory Sanin 12cf09d408
All checks were successful
App Image CI / Build app image (push) Successful in -1m12s
Docker Image CI / Build build images (arch) (push) Successful in -5s
Docker Image CI / Build build images (artix) (push) Successful in -38s
NPM Audit Check / Check NPM audit (push) Successful in -2m13s
add clone button for build parameters
2025-09-17 23:34:55 -05:00

33 lines
1.8 KiB
Plaintext

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<%- include("head", locals) %>
</head>
<body class="preload">
<%- include("navigation", locals) %>
<div class="content">
<h1>Start a build</h1>
<form action="/build" method="post" class="grid-2col">
<label for="repoTxt">Repo</label> <input type="text" name="repo" id="repoTxt" required <% if (typeof query.repo === 'string') { %>value="<%= query.repo %>"<% } %> />
<label for="commitTxt">Commit</label> <input type="text" name="commit" id="commitTxt" <% if (typeof query.commit === 'string') { %>value="<%= query.commit %>"<% } %> />
<label for="patchTxt">Patch</label> <textarea name="patch" id="patchTxt"><% if (typeof query.patch === 'string') { %><%= query.patch %><% } %></textarea>
<label for="distroTxt">Distro</label>
<select name="distro" id="distroTxt" required>
<option value="arch" <% if (query.distro === 'arch') { %>selected<% } %>>Arch</option>
<option value="artix" <% if (query.distro === 'artix') { %>selected<% } %>>Artix</option>
</select>
<label for="dependsTxt">Dependencies</label>
<select name="dependencies" id="dependsTxt" required>
<option value="stable" <% if (query.dependencies === 'stable') { %>selected<% } %>>Stable</option>
<option value="testing" <% if (query.dependencies === 'testing') { %>selected<% } %>>Testing</option>
<option value="staging" <% if (query.dependencies === 'staging') { %>selected<% } %>>Staging</option>
</select>
<div class="span-2"><button type="submit">Build</button></div>
</form>
</div>
<%- include("footer", locals) %>
</body>
</html>