Just a simple site to publish surveys. Nothing fancy, mostly done because I need it.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<style>
|
|
|
|
|
#question-list {
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
grid-template-columns: 1fr 60px;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h1>Results of Survey "{{ .Survey.Title }}"</h1>
|
|
|
|
|
|
|
|
|
|
<block>
|
|
|
|
|
<p>{{ .Survey.Description }}</p>
|
|
|
|
|
<bar>
|
|
|
|
|
<span>{{ .Survey.Date }}</span> <span>{{ .Survey.State }}</span>
|
|
|
|
|
<span>Respondents: {{ .Survey.Respondents }}</span>
|
|
|
|
|
</bar>
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<h2>Questions</h2>
|
|
|
|
|
|
|
|
|
|
<grid id="question-list">
|
|
|
|
|
{{ range .Survey.Questions }}
|
|
|
|
|
<label for="question-{{ .Id }}">{{ .Question }}</label>
|
|
|
|
|
<span>{{.Result}}%</span>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</grid>
|
|
|
|
|
|
|
|
|
|
<a href="/">View More Surveys</a>
|