~yerinalexey/gobin

ref: 478164c98843185c65508a38552befc51838da7b gobin/templates/new.html -rw-r--r-- 564 bytes
478164c9 — Alexey Yerin Add option to set log file 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{ define "new" }}
<!DOCTYPE html>
<html>
  <head>
    {{ template "head" }}
  </head>
  <body>
    {{ template "header" }}

    <form class="form" action="/new" method="POST">
      <textarea
        class="form__field"
        name="contents"
        placeholder="Paste contents"
      ></textarea>

      <div class="form__checkbox">
        <label for="public">Is public?</label>
        <input type="checkbox" name="public" id="public" />
      </div>

      <input class="form__button" type="submit" value="Paste!" />
    </form>
  </body>
</html>
{{ end }}