2021-12-27 02:25:03 +02:00
|
|
|
extend templates/layout.pug
|
|
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
.container
|
|
|
|
|
.center
|
|
|
|
|
h1 Create Campaign
|
|
|
|
|
|
|
|
|
|
.row
|
|
|
|
|
.col.s12
|
2022-01-06 02:00:49 +02:00
|
|
|
form.row(action=urlEndpoint, method="post")
|
2021-12-27 02:25:03 +02:00
|
|
|
.col.s12.input-field
|
|
|
|
|
input#name(type="text", name="name", value=campaign.name)
|
2022-01-06 02:00:49 +02:00
|
|
|
label(for="name") Name
|
|
|
|
|
.col.s12.input-field
|
|
|
|
|
input#description(type="text", name="description", value=campaign.description)
|
|
|
|
|
label(for="description") Description
|
2021-12-27 18:48:38 +02:00
|
|
|
if project
|
2021-12-27 20:59:55 +02:00
|
|
|
input(type="hidden", name="projectId", value=project.id)
|
|
|
|
|
.col.s12.input-field
|
|
|
|
|
input(id=project.id+"-satoshis",type="number", name="satoshis", placeholder="100000 satoshis", step=1, min=1, max=2100000000000000, required)
|
|
|
|
|
label(for=project.id+"-satoshis") Default satoshi's goal for the #{project.name} translations
|
2022-01-05 03:04:43 +02:00
|
|
|
if translationArtifactVersions
|
|
|
|
|
each translationArtifactVersion in translationArtifactVersions
|
|
|
|
|
input(type="hidden", name="translationArtifactVersions", value=translationArtifactVersion.id)
|
2021-12-27 20:59:55 +02:00
|
|
|
.col.s12.input-field
|
2022-01-05 03:04:43 +02:00
|
|
|
input(id=translationArtifactVersion.id+"-satoshis",type="number", name="satoshis", placeholder="100000 satoshis", step=1, min=1, max=2100000000000000, required)
|
|
|
|
|
label(for=translationArtifactVersion.id+"-satoshis") Satoshi's required for the #{translationArtifactVersion.name} translation
|
2021-12-27 02:25:03 +02:00
|
|
|
.col.s12
|
|
|
|
|
button.btn.black(type="submit") create campaign
|