Files
mantra.press/server/views/library-form.pug

42 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-12-19 18:17:51 +02:00
extend templates/layout.pug
block content
.container
.center
h1 Library
2022-01-15 00:59:30 +02:00
.row
.col.s12
form.row(action="/library/add", method="post")
.col.s12.input-field
input#name(type="text", name="name", value=artifact.name)
label(for="name") Artifact Name
.col.s12.input-field
input#url(type="text", name="url", value=artifact.url)
label(for="url") Artifact Url
if artifact.id == null
2021-12-19 18:17:51 +02:00
.col.s12.input-field
2022-01-15 00:59:30 +02:00
input#version(type="text", name="version", value=artifact.version)
label(for="version") First Version Number
.col.s12.input-field
p
label
2022-06-17 22:55:52 +02:00
input(type="radio", name="visibility", value="public")
2022-01-15 00:59:30 +02:00
span Public
br
small Anyone can see and add translations
p
label
2022-06-17 22:55:52 +02:00
input(type="radio", name="visibility", value="permissioned")
2022-01-15 00:59:30 +02:00
span Permissioned
br
small Anyone can see but restrict translations
p
label
2022-06-17 22:55:52 +02:00
input(type="radio", name="visibility", value="private")
2022-01-15 00:59:30 +02:00
span Private
br
small Restrict who can see and translate project
.col.s12
button.btn.black(type="submit") add artifact