Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(view): add placeholder for reason field #3

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion view/request.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import (
"slices"
)

const reasonPlaceholder = `Protein Language Model을 활용해 Protein의 특성을 예측하는 연구를 진행하고 있습니다. GPU 1장에서 모델 fine-tuning과 evaulation을 진행하고자 합니다.
Huggingface상의 facebook/esm2_t33_650M_UR50D (약 3GB) 및 facebook/esm2_t36_3B_UR50D (약 11GB) 두 모델 종류를 사용합니다.
모델을 fine-tuning하고, 스토리지에 원본 및 fine-tuned weight를 저장할 필요가 있어 150GiB를 요청드립니다.`

templ PageRequestForm() {
@page("Workspace Request Form") {
<h1 class="mb-4 text-xl font-bold">Workspace request form</h1>
Expand All @@ -20,7 +24,7 @@ templ PageRequestForm() {
}
</select>
<label class={ "col-start-1", classLabel } for="userdata">Reason</label>
<textarea class="resize-none" id="userdata" name="userdata" rows="10" required></textarea>
<textarea class="resize-none" id="userdata" name="userdata" rows="10" placeholder={ reasonPlaceholder } required></textarea>
@reqQuotaInput("GPUs", "quota-gpu", "")
@reqQuotaInput("Storage", "quota-storage", "GiB")
<p class="col-start-2 text-sm text-gray-500">
Expand Down
97 changes: 57 additions & 40 deletions view/request_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.