preview.tpl (1396B)
1 {{template "header.tpl" $}} 2 {{ with index .Msg 0 }} 3 4 <div id="topic"> 5 <div class="msg"> 6 <span class="echo">{{.Echo}}</span><br> 7 <span class="subj">{{.Subj}}</span><br> 8 <span class="info">{{.From}}({{.Addr}}) — {{.To}}<br>{{.Date | fdate}}</span><br> 9 <div class="text"> 10 <br> 11 {{. | msg_text}} 12 <br> 13 </div> 14 </div> 15 </div> 16 17 <table id="edit"> 18 {{ if eq $.Echo "" }} 19 <form method="post" enctype="application/x-www-form-urlencoded" action="{{$.PfxPath}}/new"> 20 {{ else }} 21 <form method="post" enctype="application/x-www-form-urlencoded" action="{{$.PfxPath}}/{{.Echo}}/new"> 22 {{ end }} 23 <tr><td class="even"> 24 {{ if eq $.Echo "" }} 25 <input type="text" name="echo" class="echo" placeholder="{{.Echo}}" value="{{.Echo}}"><br> 26 {{ end }} 27 <input type="text" name="to" class="to" placeholder="{{.To}}" value="{{.To}}"><br> 28 <input type="text" name="subj" class="subj" placeholder="{{.Subj}}" value="{{.Subj}}"><br> 29 <input type="hidden" name="repto" value="{{ . | repto}}"> 30 <input type="hidden" name="id" value="{{ .MsgId }}"> 31 <textarea type="text" name="msg" class="message" cols=60 row=16 placeholder="Hi, All!">{{.Text}}</textarea> 32 </td></tr> 33 34 <tr><td class="odd center"> 35 <button class="form-button" type="submit" name="action" value="Submit">Submit</button> 36 <button class="form-button" type="submit" name="action" value="Preview">Preview</button> 37 </td></tr> 38 </form> 39 40 </table> 41 {{end}} 42 {{template "footer.tpl"}}