Core

/views/vpage/Load.html (735 B)

 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
27
28
29
{% import (
"{{{ .Package }}}/app"
"{{{ .Package }}}/app/controller/cutil"
"{{{ .Package }}}/views/layout"
) %}

{% code type Load struct {
layout.Basic
URL string
Title string
Message string
HideInstructions bool
} %}

{% func (p *Load) Body(as *app.State, ps *cutil.PageState) %}
{%- code
if p.Message == "" {
p.Message = "Please wait as your request is processed..."
}
-%}
<div class="card">
<h3>{%s p.Title %}</h3>
<p>{%s p.Message %}</p>
{%- if !p.HideInstructions -%}
<div class="mt"><em>Please avoid refreshing the browser or navigating away, your page is loading</em></div>
{%- endif -%}
</div>
<meta http-equiv="refresh" content="0; url={%s p.URL %}">
{% endfunc %}