diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-14 06:15:40 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-14 06:15:40 +1000 |
| commit | 88ee626cb3686dc176cd7911b073c4e65fa54d34 (patch) | |
| tree | ffd4d27de8b6cce5a43add9fa4222b1d50f1e500 /src/marlin.web/Views/VCS/ListSecret.cshtml | |
| parent | df0737e55afeb5c01eb39909605970d1d3a73ffc (diff) | |
feat: ui cleanup
Diffstat (limited to 'src/marlin.web/Views/VCS/ListSecret.cshtml')
| -rw-r--r-- | src/marlin.web/Views/VCS/ListSecret.cshtml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/marlin.web/Views/VCS/ListSecret.cshtml b/src/marlin.web/Views/VCS/ListSecret.cshtml index 25db7fe..84e3061 100644 --- a/src/marlin.web/Views/VCS/ListSecret.cshtml +++ b/src/marlin.web/Views/VCS/ListSecret.cshtml @@ -1,5 +1,19 @@ @model (VersionControlSource Source, List<ISecret> Secrets) +<form method="post" asp-action="SetAccessSecret" asp-route-sourceId="@Model.Source.Id"> + <label> + Access Secret + <select name="secretId"> + <option value="">(none)</option> + @foreach (var secret in Model.Secrets) + { + <option value="@secret.Id" selected="@(secret.Id == Model.Source.AccessSecretId)">@secret.Label</option> + } + </select> + </label> + <button type="submit">Save</button> +</form> + <a asp-action="CreateSecret" asp-route-sourceId="@Model.Source.Id">New</a> <table> @@ -42,4 +56,4 @@ </tbody> </table> -<a asp-action="Details", asp-route-id="@Model.Source.Id">back</a> +<a asp-action="Details" asp-route-id="@Model.Source.Id">back</a> |
