publiccode.si/site/layouts/partials/functions/sign-form.html

50 lines
2.2 KiB
HTML

<form action="https://forms.fsfe.org/email" method="post">
<input name="appid" type="hidden" value="pmpc-sign" />
<label class="sign-input form-na">
<input name="name" placeholder="{{ .Site.Params.action.form.name }}" type="text" required />
</label>
<label class="sign-input form-em">
<input name="confirm" placeholder="{{ .Site.Params.action.form.email }}" type="email" required />
</label>
<br />
<label class="sign-input form-cn">
<select name="country">
<option value="">{{ .Site.Params.action.form.country }}</option>
{{ $json := getJSON "data/countries/countries.json" }}
{{ range sort $json "name" "asc" }}
<option value="{{ .name }}">{{ .name }}</option>
{{ end }}
</select>
</label>
<label class="sign-input form-zp">
<input name="zip" placeholder="{{ .Site.Params.action.form.zip }}" type="text" />
</label>
<label class="sign-input form-co">
<input name="comment" placeholder="{{ .Site.Params.action.form.comment }}" type="text" maxlength="140" />
</label>
<div class="form-pe">
<div>
<label class="form-pe" for="permissionPriv">
<input name="permissionPriv" id="permissionPriv" value="yes" type="checkbox" required /> {{ replace .Site.Params.action.form.permPriv "privacy/" ("/privacy" | relLangURL) | markdownify }}
</label>
</div>
<div>
<label class="form-pe" for="permissionPub">
<input name="permissionPub" id="permissionPub" value="yes" type="checkbox" /> {{ replace .Site.Params.action.form.permPub "openletter/all-signatures" ("/openletter/all-signatures" | relLangURL) | markdownify}}
</label>
</div>
<div>
<label class="form-pe" for="permissionNews">
<input name="permissionNews" id="permissionNews" value="yes" type="checkbox" checked="checked" /> {{ .Site.Params.action.form.permNews | markdownify }}
</label>
</div>
</div>
<label id="honey"> <!-- Honeypot for spam -->
<p>Please do not put anything here:</p>
<input name="url" type="text" />
</label>
<br />
<button name="action" value="sign" type="submit" class="btn btn-default btn-xl">{{ .Site.Params.action.form.submit }}</button>
</form>