edit.tpl (981B)
1 {{template "header.tpl" $}} 2 {{ $msg := index .Msg 0 }} 3 {{ with $msg }} 4 <table id="edit"> 5 <form method="post" enctype="application/x-www-form-urlencoded" action="{{$.PfxPath}}/{{.MsgId}}/edit"> 6 <tr><td class="odd"> 7 <input type="hidden" name="id" value="{{.MsgId}}"> 8 <input type="hidden" name="repto" value="{{ . | repto}}"> 9 <input type="text" name="echo" class="echo" placeholder="{{.Echo}}" value="{{.Echo}}"><br> 10 <input type="text" name="to" class="to" placeholder="{{.To}}" value="{{.To}}"><br> 11 <input type="text" name="subj" class="subj" placeholder="{{.Subj}}" value="{{.Subj}}"><br> 12 <textarea type="text" name="msg" class="message" cols=60 row=16 placeholder="Text here."> 13 {{.Text}} 14 </textarea> 15 </td></tr> 16 17 <tr><td class="odd center"> 18 <button class="form-button" type="submit" name="action" value="Submit">Submit</button> 19 <button class="form-button" type="submit" name="action" value="Preview">Preview</button> 20 </td></tr> 21 </form> 22 23 </table> 24 {{ end }} 25 {{template "footer.tpl"}}