Files
mantra.press/server/views/artifact-version-approval-form.pug

29 lines
2.0 KiB
Plaintext

extend templates/layout.pug
block content
.container
.center
h1 License Approval for #{artifactVersion.artifact.name} - #{artifactVersion.tag}
.row
.col.s12
form.row(action=`/v/${artifactVersion.id}/approval/add`, method="post")
.col.s12.input-field
input#name(type="text", name="name", value=artifactVersionApproval.name, placeholder="Creative Commons/Copyright agreement")
label(for="name") Name of license/approval for the content to be translated
.col.s12.input-field
input#conditions(type="text", name="conditions", value=artifactVersionApproval.conditions, placeholder="The following dictate how the produced translations shall be treated")
label(for="conditions") Summary of the conditions required to get approval (optional)
.col.s12.input-field
textarea#description.materialize-textarea(name="description", placeholder="Describe the approval being given in sufficient detail.")= artifactVersionApproval.description
label(for="description") Detailed description of license/approval
.col.s12.input-field
input(id="satoshis",type="number", name="satoshis", placeholder="100000 satoshis", step=1, min=1, max=2100000000000000)
label(for="satoshis") Satoshis required to unlock the approval
.col.s12.input-field
p
label
input#isApproved(type="checkbox", name="isApproved", checked=artifactVersionApproval.approvedAt!=null)
span Approval already granted
.col.s12
button.btn.black(type="submit") add approval