Exemple #1
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />-->\n    <title>Rentfox | Sign in</title>\n\t')
        # SOURCE LINE 7
        runtime._include_file(context, u'externalfiles.html', _template_uri)
        __M_writer(u'\n</head>\n<body id="signinpage">\n    <div id="eventStatus">loading...</div>\t\n    <div id="foxhelper">\n            <img src="/styles/img/foxhelper_shadow.png" class="thefox" />\n            <div class="foxpanel"><div class="panelwrap">\n                    <div class="display">\n                        <div class="wrap">\n                            \n                            <div class="default view on">\n')
        # SOURCE LINE 18
        if c.error:
            # SOURCE LINE 19
            __M_writer(u'                                <div class="error on">')
            __M_writer(escape(c.error))
            __M_writer(u'</div>\n')
            pass
        # SOURCE LINE 21
        __M_writer(u'                                <form method="post" action="')
        __M_writer(escape(c.path))
        __M_writer(u'" id="signInForm">\n                                    <label for="username">Username</label>\n                                    <input type="text" id="username" name="username" />\n                                    \n                                    <label for="password">Password</label>\n                                    <input type="password" id="password" name="password" />\n\n                                    \n                                    <div class="action">\n                                        <a class="button primary" id="signInButton"><span>Sign in to Rentfox &raquo;</span></a>\n                                    </div>\n                                </form>\n                                \n                                <div class="links">\n                                    <a class="link forgotEmail">Password recovery</a> | \n                                    <a class="link signup" href="/#signup">Sign up</a>\n                                </div>\n                            </div>\n                            \n                            <div class="emailReminder view">\n                                <div class="error" id="emailError"></div>\n                                <label for="email">Enter your email</label>\n                                <input type="text" id="email" />\n                                <div class="action">\n                                    <a class="button primary" id="remindMe"><span>Let\'s figure this out!</span></a>\n                                </div>\n                                <div class="links">\n                                    <a class="link back">&laquo; Back to sign in page</a>\n                                </div>\n                            </div>\n                            \n                            <div class="hint view">\n                                <h2>Secret Reminder</h2>\n                                <div class="info hint" id="passwordSecret"></div>\n                                \n                                <div class="info email">\n                                    If the hint above didn\'t help, I also sent you\n                                    an email to with directions to reset your password. \n                                    <em id="emailRecoveryDestination">[email protected]</em>\n                                </div>\n                            \n                                <div class="action">\n                                    <a class="button primary" id="signInAgain"><span>Back to sign in page &raquo;</span></a>\n                                </div>\n                                \n                                \n                                \n                            </div>\n                            \n                        </div>\n                    </div>\n            </div></div>\n    </div>\n    <a href="/" class="footer">Rentfox Homepage</a>\n    \n    <script type="text/javascript">\n        $(document).ready(function(){\n            signin = new SignIn;\n        });\n    </script>\n    \n</body>\n</html>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #2
0
def render_content(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        catalog_items = context.get('catalog_items', UNDEFINED)
        def content():
            return render_content(context)
        __M_writer = context.writer()
        __M_writer('\r\n    <div class="col-md-3" id="left_col">\r\n        ')
        runtime._include_file(context, '/store/templates/left_col.html', _template_uri)
        __M_writer('\r\n    </div>\r\n    <div class="col-md-9" id="items">\r\n        <div class="col-md-11" id="search_bar">\r\n            <ul class="nav navbar-nav navbar-right" id="navbar-right">\r\n                <form class="navbar-form navbar-left" role="search">\r\n                    <div class="form-group">\r\n                        <input type="text" id="search_input" class="form-control" placeholder="Search the store">\r\n                    </div>\r\n                    <button type="button" id="search_button" class="btn btn-primary">Search</button>\r\n                </form>\r\n            </ul>\r\n        </div>\r\n')
        for item in catalog_items:
            __M_writer('            <div class="col-md-3 item_display">\r\n                <a href="/store/index.itemview/')
            __M_writer(str(item.id))
            __M_writer('">\r\n                    <img class="item_photo" src="/static')
            __M_writer(str(item.photo))
            __M_writer('"/>\r\n                    <br>\r\n                    <p class="product_name">\r\n                        <b>')
            __M_writer(str(item.name))
            __M_writer('</b>\r\n                    </p>\r\n                </a>\r\n                <br>\r\n                <p class="product_name">\r\n                    Sold by: ')
            __M_writer(str(item.manufacturer))
            __M_writer('\r\n                </p>\r\n                <br>\r\n                <p class="product_name">Qty on hand: ')
            __M_writer(str(item.quantity_on_hand))
            __M_writer('</p>\r\n                <br>\r\n                <p class="product_name">$')
            __M_writer(str(item.price))
            __M_writer('</p>\r\n            </div>\r\n')
        __M_writer('    </div>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #3
0
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        # SOURCE LINE 1
        runtime._include_file(context, u'/header.mako', _template_uri)
        context.write(u'\n        <div class="box" id="alerts">\n            <h1>Alerts</h1>\n    ')
        # SOURCE LINE 4

        cells = ''
        prevdate = None
        n = len(c.alerts)
        i = 0
        for a in c.alerts:
            date = a[0]
            diff = a[5]
            i += 1
            if i == 1:
                cells += '<tr><td>%s</td><td>' % date
                prevdate = date
            elif date != prevdate:
                cells += '</td></tr>\n<tr><td>%s</td><td>' % date
                prevdate = date
        
            if diff > 0:
                status = "improvement"
            else:
                status = "regression"
            # Colors range from 150 to 0
            # This was hound empirically. Colors max out at 25% change
            color = 150 - abs(int(diff * 600))
            if color < 0:
                color = 0
            if diff < 0:
                # Shade of red
                hexcol = "#FF%02X%02X" % (color, color)
            else:
                # Shade of green
                hexcol = "#%02XFF%02X" % (color, color)
            u = h.url_for(controller='plot', action='showbench', id=a[1])
            div = h.content_tag('div', '%.2f%%  - %s v.%s (%s)<br />' %(diff*100, a[2], a[3], a[4]), style='background-color: %s;' % hexcol)
            cells += h.content_tag('a', div, href=u)
            if i == n:
                cells += '</td></tr>\n'
        
        
        __M_locals.update(dict([(__M_key, locals()[__M_key]) for __M_key in ['a','status','hexcol','i','cells','n','color','prevdate','u','date','diff','div'] if __M_key in locals()]))
        # SOURCE LINE 40
        context.write(u'\n            <table><tr><th>Date</th><th>Change</th></tr>\n            ')
        # SOURCE LINE 42
        context.write(unicode(cells))
        context.write(u'\n            </table>\n        </div>\n\t\t')
        # SOURCE LINE 45
        runtime._include_file(context, u'/footer.mako', _template_uri)
        context.write(u'\n')
        return ''
    finally:
        context.caller_stack.pop_frame()
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        course_date_blocks = context.get('course_date_blocks', UNDEFINED)
        static = _mako_get_namespace(context, 'static')
        __M_writer = context.writer()
        __M_writer(u'\n')
        __M_writer(u'\n\n')
        __M_writer(u'\n\n')
        __M_writer(u'\n<h3 class="hd hd-6 handouts-header">')
        __M_writer(filters.html_escape(filters.decode.utf8(_("Important Course Dates"))))
        __M_writer(u'</h3>\n')
        __M_writer(u'\n')
        for course_date in course_date_blocks:
            __M_writer(u'    ')
            runtime._include_file(context, u'dates-summary.html', _template_uri, course_date=course_date)
            __M_writer(u'\n')
        __M_writer(u'\n')
        def ccall(caller):
            def body():
                __M_writer = context.writer()
                __M_writer(u"\n    DateUtilFactory.transform('.localized-datetime');\n")
                return ''
            return [body]
        context.caller_stack.nextcaller = runtime.Namespace('caller', context, callables=ccall(__M_caller))
        try:
            __M_writer(filters.html_escape(filters.decode.utf8(static.require_module_async(class_name=u'DateUtilFactory',module_name=u'js/dateutil_factory'))))
        finally:
            context.caller_stack.nextcaller = None
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        session = context.get('session', UNDEFINED)
        hasattr = context.get('hasattr', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>Insert title here</title>\n</head>\n<body>\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'headbar.mako', _template_uri)
        __M_writer(u'\n\u7ba1\u7406\u5458\u767b\u5f55\u6210\u529f!')
        # SOURCE LINE 9
        __M_writer(escape(session['username']))
        __M_writer(u'\n<br>\n<a href="/index/adminlogout">[\u9000\u51fa]</a>\n<br>\n<div>\n\t<form action="/adminop/addserver" method="post">\n\t\t\u5927\u533a\u540d\uff1a<input type="text" name="bigservername" />\n\t\t\u533a\u540d\uff1a<input type="text" name="servername" />\n\t\t<input type="submit" value="\u6dfb\u52a0\u533a\u4fe1\u606f" />\n\t</form>\n')
        # SOURCE LINE 19
        if hasattr(c,"errorMsg"):
            # SOURCE LINE 20
            __M_writer(u'\t\t')
            __M_writer(escape(c.errorMsg))
            __M_writer(u'\n')
            pass
        # SOURCE LINE 22
        __M_writer(u'</div>\n\n<a>\n</body>\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #6
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        str = context.get('str', UNDEFINED)
        room_dict = context.get('room_dict', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            '<!DOCTYPE html>\r\n<html lang="en">\r\n<head>\r\n    <meta charset="UTF-8">\r\n    <link href="/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>\r\n    <title>Main</title></head>\r\n<body> '
        )
        runtime._include_file(context, 'shared/menu.mako', _template_uri)
        __M_writer(
            '\r\n<div class="container">\r\n    <form action="/rooms/filter" method="post">\r\n        <label for="date_start">Date Start:</label>\r\n        <input pattern="\\d{4}/\\d{2}/\\d{2}" name="date_start" id="date_start" class="form-control" placeholder="2016/11/18" type="text">\r\n        <label for="date_end">Date End:</label>\r\n        <input pattern="\\d{4}/\\d{2}/\\d{2}" name="date_end" id="date_end" class="form-control" placeholder="2016/11/21" type="text">\r\n        <button class="btn btn-lg btn-primary btn-block" type="submit">Filter</button>\r\n    </form>\r\n    <table class="table table-striped">\r\n        <thead>\r\n        <tr>\r\n            <th>Room Name</th>\r\n            <th>ID</th>\r\n        </tr>\r\n        </thead>\r\n        <tbody>\r\n'
        )
        for room in room_dict:
            __M_writer(
                '        <tr>\r\n            <td><a href="/reservation/make/')
            __M_writer(str(room_dict[room]['id']))
            __M_writer('">')
            __M_writer(str(room_dict[room]['name']))
            __M_writer('</a></td>\r\n            <td>')
            __M_writer(str(str(room_dict[room]['id'])))
            __M_writer('</td>\r\n        </tr>\r\n')
        __M_writer(
            '        </tbody>\r\n    </table>\r\n</div>\r\n</body>\r\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        # SOURCE LINE 1
        runtime._include_file(context, u'/header.mako', _template_uri)
        context.write(u'\n        <div class="box" id="overview">\n            <h1>Overview</h1>\n            ')
        # SOURCE LINE 4

        img = ''
        for bid in c.benchids:
            s = '/img/thumbnails/%s.png' %(bid)
            i = h.tag('img', open=False, src=s, width=300, height=240, alt='Benchmark id:'+str(bid))
            u = h.url_for(controller='plot', action='showbench', id=bid)
            img += h.content_tag('a', i, href=u, title='Benchmark id: '+str(bid))+'\n'
                    
        
        __M_locals.update(dict([(__M_key, locals()[__M_key]) for __M_key in ['i','bid','u','s','img'] if __M_key in locals()]))
        # SOURCE LINE 11
        context.write(u'\n            ')
        # SOURCE LINE 12
        context.write(unicode(img))
        context.write(u'\n        </div>\n\t\t')
        # SOURCE LINE 14
        runtime._include_file(context, u'/footer.mako', _template_uri)
        context.write(u'\n')
        return ''
    finally:
        context.caller_stack.pop_frame()
Exemple #8
0
def render_book_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        latex_escape = context.get('latex_escape', UNDEFINED)
        contribs = context.get('contribs', UNDEFINED)
        _session = context.get('_session', UNDEFINED)
        show_ids = context.get('show_ids', UNDEFINED)
        event = context.get('event', UNDEFINED)
        def book_body():
            return render_book_body(context)
        __M_writer = context.writer()
        __M_writer('\n')
        for contrib in contribs:
            if contrib.can_access(_session.user):
                __M_writer('            \\fancyhead[L]{\\small \\rmfamily \\color{gray} \\truncateellipses{')
                __M_writer(latex_escape(str(encode_if_unicode(event.title ))))
                __M_writer('}{300pt} / ')
                __M_writer(latex_escape(str(encode_if_unicode(_("Book of Abstracts") ))))
                __M_writer('}\n            \\fancyhead[R]{}\n\n            \\phantomsection\n            \\addcontentsline{toc}{chapter}{')
                __M_writer(latex_escape(str(encode_if_unicode(contrib.title ))))
                __M_writer(' ')
                __M_writer(str(encode_if_unicode(('{0}').format(contrib.friendly_id) if show_ids else '')))
                __M_writer('\n            }\n\n            ')
                runtime._include_file(context, 'inc/contribution_condensed.tpl', _template_uri, contrib=contrib)
                __M_writer('\n            \\vspace{3em}\n\n\n            \\fancyfoot[C]{\\small \\rmfamily \\color{gray} ')
                __M_writer(str(encode_if_unicode( latex_escape(_("Page {0}"), ignore_braces=True).format(r"\thepage") )))
                __M_writer('}\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        discussion_visibility = context.get('discussion_visibility', UNDEFINED)
        discussion_id = context.get('discussion_id', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n')
        # SOURCE LINE 2
        runtime._include_file(context, u'_underscore_templates.html', _template_uri)
        __M_writer(u'\n\n<div class="discussion-module" data-discussion-id="')
        # SOURCE LINE 4
        __M_writer(filters.html_escape(filters.decode.utf8(discussion_id )))
        __M_writer(u'" data-discussion-visibility="')
        __M_writer(filters.decode.utf8(discussion_visibility))
        __M_writer(u'">\n    <a class="discussion-show control-button" href="javascript:void(0)" data-discussion-id="')
        # SOURCE LINE 5
        __M_writer(filters.html_escape(filters.decode.utf8(discussion_id )))
        __M_writer(u'" data-discussion-visibility="')
        __M_writer(filters.decode.utf8(discussion_visibility))
        __M_writer(u'"><span class="show-hide-discussion-icon"></span><span class="button-text"></span></a>\n    <a class="discussion-show-default control-button" href="javascript:void(0)" data-discussion-id="')
        # SOURCE LINE 6
        __M_writer(filters.html_escape(filters.decode.utf8(discussion_id )))
        __M_writer(u'" data-discussion-visibility="')
        __M_writer(filters.decode.utf8(discussion_visibility))
        __M_writer(u'" style="display:none;"><span class="show-hide-discussion-icon"></span><span class="button-text">Show Discussion</span></a>\n    <a href="#" class="new-post-btn"><span class="icon icon-edit new-post-icon"></span>')
        # SOURCE LINE 7
        __M_writer(filters.decode.utf8(_("New Topic")))
        __M_writer(u'</a>    \n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        hasattr = context.get('hasattr', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>\u8bf7\u786e\u8ba4\u90ae\u4ef6</title>\n</script>\n\n</head>\n<body>\n')
        # SOURCE LINE 10
        runtime._include_file(context, u'headbar.mako', _template_uri)
        __M_writer(u'\n')
        # SOURCE LINE 11
        if hasattr(c,"errorMsg"):
            # SOURCE LINE 12
            __M_writer(u'\t')
            __M_writer(escape(c.errorMsg))
            __M_writer(u' \n')
            # SOURCE LINE 13
        else:
            # SOURCE LINE 14
            __M_writer(u'\t<p>\u7cfb\u7edf\u5df2\u7ecf\u5411\u60a8\u7684\u90ae\u7bb1\u53d1\u9001\u4e00\u4efd\u90ae\u4ef6\uff0c\u8bf7\u9a8c\u8bc1\u90ae\u4ef6\u4e2d\u7684\u94fe\u63a5\u4fe1\u606f\u5373\u53ef\u5b8c\u6210\u6ce8\u518c\u3002</p>\n')
            pass
        # SOURCE LINE 16
        __M_writer(u'</body>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #11
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        def body_content():
            __M_caller = context.caller_stack._push_frame()
            try:
                next = context.get('next', UNDEFINED)
                __M_writer = context.writer()
                # SOURCE LINE 47
                __M_writer(u'\n\t\t\t\t\t')
                # SOURCE LINE 48
                __M_writer(unicode(next.body()))
                __M_writer(u'\n\t\t\t\t')
                return ''
            finally:
                context.caller_stack._pop_frame()
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n\t<!-- Primary navigation -->\n\t<nav id="primary">\n\t\t<ul>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../syslog"><span class="glyph dashboard"></span>syslog\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../dashboard"><span class="glyph pencil"></span>\u6d41\u91cf\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../icmp"><span class="glyph eye"></span>\u8fde\u901a\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n                            <li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t<li class="bottom">\n\t\t\t\t<a href="/logout">\n\t\t\t\t\t<span class="glyph quit"></span>\n\t\t\t\t\t\u9000\u51fa\u7cfb\u7edf\n          </a>\n\t\t\t</li>\n\t\t</ul>\n\t</nav>\n\t<!-- Secondary navigation -->\n\t<nav id="secondary" style="width:10px; overflow:hidden;">\n\t\t<ul>\n\t\t\t<li><a href="../charts/linechart.html">Line chart</a></li>\n\t\t\t<li><a href="../charts/barchart.html">Bar chart</a></li>\n\t\t\t<li><a href="../charts/realtime.html">Realtime chart</a></li>\n\t\t\t<li><a href="../charts/piechart.html">Pie chart</a></li>\n\t\t</ul>\n\n\t\t<div id="notifications">\n\t\t\t<ul>\n\t\t\t</ul>\n\t\t</div>\n\t</nav>\n\t\n\t<section id="maincontainer">\n\t\t<div id="main" class="container_12">\n\t\t')
        # SOURCE LINE 46
        runtime._include_file(context, u'/shared/header.html', _template_uri)
        __M_writer(u'\n\t\t\t\t')
        # SOURCE LINE 49
        __M_writer(u'\n\t\t\t\t')
        # SOURCE LINE 50
        __M_writer(unicode(body_content()))
        __M_writer(u'\n\t\t</div>\n\t</section>\n\n\t\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,title,benutzer,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(benutzer=benutzer,title=title,pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer('\r\n')
        runtime._include_file(context, 'header.html', _template_uri, title=title)
        __M_writer('\r\n\r\n<ul class="breadcrumb" style="margin-bottom: 5px;">\r\n\t<li><a href="/">Startseite</a></li>\r\n    <li class="active">Administration</li>\r\n</ul>\r\n\r\n<br/>\r\n\r\n\r\n\r\n<div class="panel panel-default">\r\n    <div class="panel-heading">Benutzer</div>\r\n    <div class="panel-body">\r\n       \r\n\t\t<table class="table table-striped table-hover ">\r\n\t\t\t<thead>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th>Benutzername</th>\r\n\t\t\t\t\t<th>Passwort</th>\r\n\t\t\t\t\t<th>Gruppe</th>\r\n\t\t\t\t\t<th style="width: 290px;"></th>\r\n\t\t\t\t</tr>\r\n\t\t\t</thead>\r\n\t\t\t<tbody>\r\n')
        for nutzer in benutzer:
            __M_writer('\t\t\t\t\t<form method="POST" action="/administration">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<input type="hidden" name="originalusername" value="')
            __M_writer(filters.decode.utf8(nutzer["Benutzername"]))
            __M_writer('"/>\r\n\t\t\t\t\t\t\t<td><input class="form-control" type="text" name="username" value="')
            __M_writer(filters.decode.utf8(nutzer["Benutzername"]))
            __M_writer('"/></td>\r\n\t\t\t\t\t\t\t<td><input class="form-control" type="password" name="password" value="NO CHANGE"/></td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<select class="form-control" name="role">\r\n\t\t\t\t\t\t\t\t\t<option \r\n')
            if nutzer["Rolle"]=="Administrator": 
                __M_writer('\t\t\t\t\t\t\t\t\t\tselected="selected"\r\n')
            __M_writer('\t\t\t\t\t\t\t\t\t>Administrator</option>\r\n\t\t\t\t\t\t\t\t\t<option\r\n')
            if nutzer["Rolle"]=="Bearbeiter": 
                __M_writer('\t\t\t\t\t\t\t\t\t\tselected="selected"\r\n')
            __M_writer('\t\t\t\t\t\t\t\t\t>Bearbeiter</option>\r\n\t\t\t\t\t\t\t\t\t<option \r\n')
            if nutzer["Rolle"]=="Jedermann": 
                __M_writer('\t\t\t\t\t\t\t\t\t\tselected="selected"\r\n')
            __M_writer('\t\t\t\t\t\t\t\t\t>Jedermann</option>\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td><button name="action" value="save" class="btn btn-primary">Speichern</button>\r\n\t\t\t\t\t\t\t<button name="action" value="delete" class="btn btn-warning">Löschen</button></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</form>\r\n')
        __M_writer('\t\t\t</tbody>\r\n\t\t</table>\r\n\t\t\t   \r\n    </div>\r\n</div>\r\n\r\n<form style="float:right;" method="POST" action="/administration">\r\n\t<button name="action" value="add" class="btn btn-raised btn-material-green"><i class="mdi-content-add"></i></button>\r\n</form>\r\n<div style="clear:both;"></div>\r\n<br>\r\n\r\n\r\n')
        runtime._include_file(context, 'footer.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #13
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<div class= "position">\n')
        # SOURCE LINE 2
        runtime._include_file(context, u'menu.mako', _template_uri)
        __M_writer(u'\n<script type="text/javascript">\n$(document).ready(function() {\n\tdocument.getElementById(\'master\').focus();\n\tif ("')
        # SOURCE LINE 6
        __M_writer(escape(c.addflag))
        __M_writer(u'" == "adduser")\n\t\talert("')
        # SOURCE LINE 7
        __M_writer(escape(c.messageuser))
        __M_writer(u'");\n\treturn false;\n});\n</script>\n\n<form id="frmmenu" name="frmmenu">\n\n<div id="formarea" class="position">\n<fieldset id="fieldset_start"><legend ><strong><h3>Welcome</h3></strong></legend>  \n<p id="firstpara">\n<center><font size=6 ><b>GNUKhata A Free And Open Source Accounting Software</b></font></center>\n<h3 align= "center"><font size=5>http://gnukhata.org</h3><bR>\n<hr style="color:#0044FF" width= "90%" height = "80%" id="separator"><br>\n\t<table id="tbl" align="center">\n\t<tr>\n\t\t<td align="left"><font color="#0022FF">\n\t\t\t<ul>\n\t\t\t\t<li><font size="4"><i> &nbsp; Shortcuts are now enabled, go to "Help > Shortcut Keys" to see the various Shortcuts</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; A detailed version of Help is available in the Help section of the menu bar</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; Currently Funded By National Mission For Education Through ICT(NMEICT)</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; Contact us for reporting any bugs, queries or complaints regarding the software</font></i></li>\n\t\t\t</ul>\n\t\t</td>\n\t</tr>\n\t</table>\n</fieldset>\n\n</center>\n<input type="hidden" id="orgname" name="orgname" value="')
        # SOURCE LINE 35
        __M_writer(escape(c.orgname))
        __M_writer(u'">\n<input type="hidden" id="financialfrom" name="financialfrom" value="')
        # SOURCE LINE 36
        __M_writer(escape(c.financialfrom))
        __M_writer(u'">\n<input type="hidden" id="financialto" name="financialto" value="')
        # SOURCE LINE 37
        __M_writer(escape(c.financialto))
        __M_writer(u'">\n<br><br>\n</div>\n</form>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #14
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 1
        runtime._include_file(context, u'renew_0.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #15
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 1
        runtime._include_file(context, u'renew_0.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #16
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:

        def body_content():
            __M_caller = context.caller_stack._push_frame()
            try:
                next = context.get("next", UNDEFINED)
                __M_writer = context.writer()
                # SOURCE LINE 75
                __M_writer(u"\n\t\t\t\t\t")
                # SOURCE LINE 76
                __M_writer(unicode(next.body()))
                __M_writer(u"\n\t\t\t\t")
                return ""
            finally:
                context.caller_stack._pop_frame()

        current_user = context.get("current_user", UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n\t<!-- Primary navigation -->\n\t<nav id="primary">\n\t\t<ul>\n')
        # SOURCE LINE 9
        if current_user["roletype"] == 2:
            # SOURCE LINE 10
            __M_writer(
                u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../manage"><span class="glyph dashboard"></span>\u67e5\u8be2\u7528\u6237</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../custorm_add"><span class="glyph shuffle"></span>\u6dfb\u52a0\u7528\u6237</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_exchanges"><span class="glyph eye"></span>\u4ea4\u6362\u673a\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../add_exchange"><span class="glyph listicon"></span>\u4ea4\u6362\u673a\u8bbe\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../bwstat"><span class="glyph chart"></span>\u7edf\u8ba1</a>\n\t\t\t\t\t\t\t</li>\n'
            )
            # SOURCE LINE 28
        elif current_user["roletype"] == 3:
            # SOURCE LINE 29
            __M_writer(
                u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../product"><span class="glyph dashboard"></span>\u4fe1\u606f\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n'
            )
            # SOURCE LINE 35
        else:
            # SOURCE LINE 36
            __M_writer(
                u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_admin"><span class="glyph dashboard"></span>\u7ba1\u7406\u5458\u7ba1\u7406</a>\n\t\t\t\t\t\t\t</li>  \n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_users"><span class="glyph listicon"></span>\u8fd0\u8425\u5546\u7ba1\u7406</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../signup"><span class="glyph shuffle"></span>\u6dfb\u52a0\u89d2\u8272</a>\n\t\t\t\t\t\t\t</li> \n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n'
            )
        # SOURCE LINE 49
        __M_writer(
            u'\t\t\t<li class="bottom">\n\t\t\t\t<a href="/logout">\n\t\t\t\t\t<span class="glyph quit"></span>\n\t\t\t\t\t\u9000\u51fa\u7cfb\u7edf\n          </a>\n\t\t\t</li>\n\t\t</ul>\n\t</nav>\n\t<!-- Secondary navigation -->\n\t<nav id="secondary" style="width:10px; overflow:hidden;">\n\t\t<ul>\n\t\t\t<li><a href="../charts/linechart.html">Line chart</a></li>\n\t\t\t<li><a href="../charts/barchart.html">Bar chart</a></li>\n\t\t\t<li><a href="../charts/realtime.html">Realtime chart</a></li>\n\t\t\t<li><a href="../charts/piechart.html">Pie chart</a></li>\n\t\t</ul>\n\n\t\t<div id="notifications">\n\t\t\t<ul>\n\t\t\t</ul>\n\t\t</div>\n\t</nav>\n\t\n\t<section id="maincontainer">\n\t\t<div id="main" class="container_12">\n\t\t'
        )
        # SOURCE LINE 74
        runtime._include_file(context, u"/shared/header.html", _template_uri)
        __M_writer(u"\n\t\t\t\t")
        # SOURCE LINE 77
        __M_writer(u"\n\t\t\t\t")
        # SOURCE LINE 78
        __M_writer(unicode(body_content()))
        __M_writer(u"\n\t\t</div>\n\t</section>\n\n\t\n")
        return ""
    finally:
        context.caller_stack._pop_frame()
Exemple #17
0
def render_body(context,title,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs,title=title)
        __M_writer = context.writer()
        __M_writer('\r\n')
        runtime._include_file(context, 'header.html', _template_uri, title=title)
        __M_writer('\r\n\r\n\r\n')
        runtime._include_file(context, 'footer.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            u'<html>\n<head>\n\t<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville|Source+Sans+Pro:200,300,300i,400,600" rel="stylesheet">\n\t<link rel="stylesheet" type="text/css" href="/css/leaflet.css" />\n    <link rel="stylesheet" type="text/css" href="/css/MarkerCluster.css" />\n    <link rel="stylesheet" type="text/css" href="/css/MarkerCluster.Default.css" />\n    <link rel="stylesheet" type="text/css" href="/css/stylesheet.css" />\n    <script type=\'text/javascript\' src="/js/leaflet.js"></script>\n\t\t<script type=\'text/javascript\' src=\'/js/leaflet.markercluster.js\'></script>\n\t\t<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>\n    <title>Ananse Innovation Map</title>\n</head>\n<body>\n\n    '
        )
        runtime._include_file(context, u'/snippets/header.html', _template_uri)
        __M_writer(u'\n\n    ')
        runtime._include_file(context, u'/snippets/contribute.html',
                              _template_uri)
        __M_writer(
            u'\n\n    <div id="map-page-title-container">\n    \t<h1 id="map-page-title">Innovation Spaces Near And Far</h1>\n    </div>\n    <div id="map-container">\n\t    <div id="map"></div>\n    </div>\n    <div id="filters">\n    \t<ul id="type-filter" class="filter-menu">\n'
        )
        for a in ("All", "Hub", "Event", "Gallery", "Retail", "Virtual",
                  "Ecovillage", "Cluster"):
            __M_writer(
                u'                <li>\n                    <a href="#" class="filter-item" data-filter-group="type" data-filter-item="'
            )
            __M_writer(escape(a.lower()))
            __M_writer(
                u'">\n                        <div class="filter-type-color ')
            __M_writer(escape(a.lower()))
            __M_writer(u'-color"></div>')
            __M_writer(escape(a))
            __M_writer(u'\n                    </a>\n                </li>\n')
        __M_writer(
            u'<!--     \t\t<li><a href="#" class="filter-item" data-filter-group="type" data-filter-item="factory">Factory</a></li>\n\t\t\t\t<li><a href="#" class="filter-item" data-filter-group="type" data-filter-item="library">Library</a></li>\n    \t\t<li><a href="#" class="filter-item" data-filter-group="type" data-filter-item="lab">Lab</a></li>  -->\n    \t</ul>\n    \t<ul id="theme-filter" class="filter-menu">\n    \t\n    \t</ul>\n    \t<ul id="originator-filter" class="filter-menu">\n    \t\n    \t</ul>\n    </div>\n    <div id="filter-bar">\n'
        )
        for a in ("Type", "Theme", "Originator"):
            __M_writer(
                u'                <a href="/" id="filter-bar-type-button" class="filter-bar-button" data-filter="'
            )
            __M_writer(escape(a.lower()))
            __M_writer(
                u'">\n                    <span class="filter-button-text">')
            __M_writer(escape(a))
            __M_writer(
                u'</span>\n                    <img src="/assets/plus.png" class="filter-button-plus">\n                    <img src="/assets/minus.png" class="filter-button-minus">\n                </a>\n'
            )
        __M_writer(
            u'            <div id="sponsor-container">\n<!--                <span id="navigation-bar-supported-text">Supported by</span> --!>\n                <a href="https://www.giz.de/" target="_blank">\n                    <img src="/assets/giz-logo.png" id="sponsor-giz">\n                </a>\n                <a href="https://www.fabfoundation.org/" target="_blank">\n                    <img src="/assets/fab-foundation-logo.png" id="sponsor-fab-foundation">\n                </a>\n            </div>\n\t\t</div>\n    <p id="markerjson" hidden>'
        )
        __M_writer(escape(c.markers))
        __M_writer(
            u'</p>\n    <script type=\'text/javascript\' src="/js/main.js"></script>\n</body>\n</html>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #19
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def head():
            return render_head(context.locals_(__M_locals))

        self = context.get('self', UNDEFINED)
        parent = context.get('parent', UNDEFINED)

        def title():
            return render_title(context.locals_(__M_locals))

        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'title'):
            context['self'].title(**pageargs)

        # SOURCE LINE 2
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'head'):
            context['self'].head(**pageargs)

        # SOURCE LINE 6
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'reader.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 9
        runtime._include_file(context, u'book.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 10
        runtime._include_file(context, u'borrow_1.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 11
        runtime._include_file(context, u'done.html', _template_uri)
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 13
        __M_writer(unicode(self.js('lib/PanelReader.js')))
        __M_writer(u'\r\n')
        # SOURCE LINE 14
        __M_writer(unicode(self.js('lib/PanelBook.js')))
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 16
        runtime._include_file(context, u'borrow_0.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #20
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n<head>\r\n\t<meta charset="utf-8">\r\n\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t<meta name="description" content="Garden Fresh Box">\r\n\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t<title>Garden Fresh Box</title>\r\n\r\n\t<!-- Bootstrap Core CSS -->\r\n\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t<!-- Custom CSS -->\r\n\t<link href="../css/custom.css" rel="stylesheet">\r\n</head>\r\n\r\n<body>\r\n\r\n\t<!-- jQuery -->\r\n\t<script src="../js/jquery.js"></script>\r\n\r\n\t<!-- Bootstrap Core JavaScript -->\r\n\t<script src="../js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\r\n\t\t\t\t<div><h1>Shopping new order</h1></div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\tCreation Date: <br>\r\n\t\t\t\t\t<input type="text" id="creation_date" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDistributed Date: <br>\r\n\t\t\t\t\t<input type="text" id="dist_date" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tFirst Name: <br>\r\n\t\t\t\t\t<input type="text" id="first_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tLast Name: <br>\r\n\t\t\t\t\t<input type="text" id="last_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tEmail: <br>\r\n\t\t\t\t\t<input type="text" id="email" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAddress: <br>\r\n\t\t\t\t\t<input type="text" id="mail_address" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tPhone Number: <br>\r\n\t\t\t\t\t<input type="text" id="phone" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNumber of Small Boxes: <br>\r\n\t\t\t\t\t<input type="text" id="num_sm" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNumber of Large Boxes: <br>\r\n\t\t\t\t\t<input type="text" id="num_lg" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNotify: <br>\r\n\t\t\t\t\t<input type="text" id="notify" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation: <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Reciept: <br>\r\n\t\t\t\t\t<input type="text" id="donation_receipt" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAmount Paid: <br>\r\n\t\t\t\t\t<input type="text" id="amt_paid" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tHost Site Pickup: <br>\r\n\t\t\t\t\t<input type="text" id="hs_pickup" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tHost Site Ordered: <br>\r\n\t\t\t\t\t<input type="text" id="hs_ordered" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tVoucher: <br>\r\n\t\t\t\t\t<input type="text" id="vouchers" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\t<input type="submit" id="submitButton" value="Submit Order" class="btn btn-submit">\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t')
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#submitButton").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'put\',\r\n\t\t\t\turl: \'/order\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tcreation_date : $("#creation_date").val(),\r\n\t\t\t\t\tdist_date : $("#dist_date").val(),\r\n\t\t\t\t\tfirst_name : $("#first_name").val(),\r\n\t\t\t\t\tlast_name : $("#last_name").val(),\r\n\t\t\t\t\temail : $("#email").val(),\r\n\t\t\t\t\tmail_address : $("#mail_address").val(),\r\n\t\t\t\t\tphone : $("#phone").val(),\r\n\t\t\t\t\tnum_sm : $("#num_sm").val(),\r\n\t\t\t\t\tnum_lg : $("#num_lg").val(),\r\n\t\t\t\t\tnotify : $("#notify").val(),\r\n\t\t\t\t\tdonation : $("#donation").val(),\r\n\t\t\t\t\tdonation_receipt : $("#donation_receipt").val(),\r\n\t\t\t\t\tamt_paid : $("#amt_paid").val(),\r\n\t\t\t\t\ths_pickup : $("#hs_pickup").val(),\r\n\t\t\t\t\ths_ordered : $("#hs_ordered").val(),\r\n\t\t\t\t\tvouchers : $("#vouchers").val(),\r\n\t\t\t\t\torder_id : ""\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//not doing response checking\r\n\t\t\t\t\tvar resp = JSON.parse(response);\r\n\t\t\t\t\tif (resp.success == "false"){\r\n\t\t\t\t\t\talert(resp.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #21
0
def render_body(context,title,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(title=title,pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer('\r\n')
        runtime._include_file(context, 'header.html', _template_uri, title=title)
        __M_writer('\r\n<form class="form-horizontal" action="/login" id="login" method="POST">\r\n\t<fieldset>\r\n        <legend>Login</legend>\r\n        <div class="form-group">\r\n            <label for="inputUsername" class="col-lg-2 control-label">Benutzername</label>\r\n            <div class="col-lg-10">\r\n                <input type="text" class="form-control" required="required" id="username" name="username" placeholder="Benutzername"><br/>\r\n            </div>\r\n        </div>\r\n        <div class="form-group">\r\n            <label for="inputPassword" class="col-lg-2 control-label">Passwort</label>\r\n            <div class="col-lg-10">\r\n                <input type="password" class="form-control" required="required" id="password" name="password" placeholder="Passwort">\r\n            </div>\r\n        </div>\r\n        <div class="form-group">\r\n            <div class="col-lg-10 col-lg-offset-2">\r\n                <button type="submit" class="btn btn-primary">Einloggen</button>\r\n            </div>\r\n        </div>\r\n    </fieldset>\r\n</form>\r\n\t\r\n')
        runtime._include_file(context, 'footer.html', _template_uri)
        __M_writer('\r\n\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #22
0
def render_first_page(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def first_page():
            return render_first_page(context)
        event = context.get('event', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n    ')
        runtime._include_file(context, 'inc/first_page.tpl', _template_uri, event=event,title=_('Book of Abstracts'),show_dates=True)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #23
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Donate</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\r\n\t\t\t\t<div><h1>Donate Homepage</h1></div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\tFirst Name: <br>\r\n\t\t\t\t\t<input type="text" id="first_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tLast Name: <br>\r\n\t\t\t\t\t<input type="text" id="last_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tEmail: <br>\r\n\t\t\t\t\t<input type="text" id="email" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAddress: <br>\r\n\t\t\t\t\t<input type="text" id="mail_address" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tPhone Number: <br>\r\n\t\t\t\t\t<input type="text" id="phone" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Amount: <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Receipt? (Y/N): <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\t<input type="submit" id="confirmDonate" value="Submit Donation" class="btn btn-submit">\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t')
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#confirmDonate").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'put\',\r\n\t\t\t\turl: \'/donate\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tfirst_name : $("#first_name").val(),\r\n\t\t\t\t\tlast_name : $("#last_name").val(),\r\n\t\t\t\t\temail : $("#email").val(),\r\n\t\t\t\t\tmail_address : $("#mail_address").val(),\r\n\t\t\t\t\tphone : $("#phone").val(),\r\n\t\t\t\t\tdonation : $("#donation").val(),\r\n\t\t\t\t\tdonation_receipt : $("#donation_receipt").val(),\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//not doing response checking\r\n\t\t\t\t\tvar resp = JSON.parse(response);\r\n\t\t\t\t\tif (resp.success == "false"){\r\n\t\t\t\t\t\talert(resp.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #24
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Contact Us</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t\t<div class="content">\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<h1>Contact Us</h1>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<p>Have a question, comment, or concern?</p>\r\n\t\t\t\t\t<p>(519) 821-6638 ext. 344</p>\r\n\t\t\t\t\t<p><a href="mailto:[email protected]">[email protected]</a></p>\r\n\t\t\t\t\t<p>Guelph Community Health Centre<br>\r\n\t\t\t\t\tAttn: Garden Fresh Box<br>\r\n\t\t\t\t\t176 Wyndham St. N<br>\r\n\t\t\t\t\tGuelph, ON, N1H 8N9</p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t')
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #25
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Information</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t\t\t<style>\r\n\t\t\ttable, th, td {\r\n\t\t\t    border: 1px solid black;\r\n\t\t\t    border-collapse: collapse;\r\n\t\t\t}\r\n\t\t\tth, td {\r\n\t\t\t    padding: 5px;\r\n\t\t\t}\r\n\t\t\t</style>\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\t\t\t\t<div><h1>Garden Fresh Box</h1></div>\r\n\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<h1>About</h1>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<p>The Garden Fresh Box Program is a non-profit, fresh produce buying service created to help people access affordable fresh fruits and vegetables and also to support our local farmers. We are affiliated with the Guelph Wellington Local Food. It is delivered to their neighbourhood on the third Wednesday of the month. Payment must be received at the site no later than noon on the first Friday of the month.</p>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<h1>Due & Delivery Dates</h1>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<table style="width:100%">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>ORDERS DUE BY FRIDAY</th>\r\n\t\t\t\t\t\t\t\t<th>PICK UP DUE ON WEDNESDAY</th>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>2014</td>\r\n\t\t\t\t\t\t\t\t<th>2014</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>November 7</td>\r\n\t\t\t\t\t\t\t\t<td>November 19</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>December 5</td>\r\n\t\t\t\t\t\t\t\t<td>December 17</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>2015</td>\r\n\t\t\t\t\t\t\t\t<th>2015</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>January 9</td>\r\n\t\t\t\t\t\t\t\t<td>January 21</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>February 6</td>\r\n\t\t\t\t\t\t\t\t<td>February 18</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>March 6</td>\r\n\t\t\t\t\t\t\t\t<td>March 18</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>April 3</td>\r\n\t\t\t\t\t\t\t\t<td>April 15</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>May 8</td>\r\n\t\t\t\t\t\t\t\t<td>May 20</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t')
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #26
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\r\n\t\t\t<div class="content">\r\n\r\n\t\t\t\t<!-- <div><h1>HomePage</h1></div> -->\r\n\t\t\t\t<div class="hero_image">\r\n\t\t\t\t\t<img src="../images/BannerImage.jpg" class="hero_image">\t\t\t\t\t\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="summary_buttons">\r\n\t\t\t\t\t<div class="summary_end">\r\n\t\t\t\t\t\t<a href="/shop/buy">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_buy_garden_fresh_box">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tBuy a Garden Fresh Box\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tShop for a Garden Fresh Box for yourself or your family.\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/shop/buy">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="summary_mid">\r\n\t\t\t\t\t\t<a href="/info">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_about_garden_fresh_box">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tAbout the Program\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\t\t\t\t\t\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tLearn more about the Garden Fresh Box Program and how we\'re helping Guelph.\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/info">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="summary_end">\r\n\t\t\t\t\t\t<a href="/contact">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_feedback_image">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tLeave Feedback\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tAre we doing a good job? Did you enjoy one of our recipes? Let the community know by leaving some feedback!\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/contact">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\t\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div><!-- End of summary buttons -->\r\n\r\n\t\t\t</div><!-- End of the content div -->\r\n\r\n\r\n\t\t\t')
        runtime._include_file(context, u'footer.mako', _template_uri)
        __M_writer(u'\r\n\t\t</div>\r\n\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #27
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Login</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t')
        runtime._include_file(context, u'header.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t\t<div class="content">\r\n\t\t\t\t<div class="login_page">\r\n\t\t\t\t\t<h1 class="login_page">Login</h1>\r\n\t\t\t\t\t<p class="content">\r\n\t\t\t\t\t\tPlease enter your email address and password to log in.\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<!-- <div class="login_page"> -->\r\n\t\t\t\t\t<div class="login_page_form">\r\n\t\t\t\t\t\t<label class="form_label">Email address</label>\r\n\t\t\t\t\t\t<input class="form_label_box" type="text" id="username" size="55em">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="login_page_form">\r\n\t\t\t\t\t\t<label class="form_label">Password</label>\r\n\t\t\t\t\t\t<input class="form_label_box" type="password" id="password" size="55em">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<!-- <input id="submit" type="submit" class="btn btn-submit"> -->\r\n\t\t\t\t\t<div class="login_button_div">\r\n\t\t\t\t\t\t<input id="submit" type="submit" class="button_general">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t<!-- </div> -->\r\n\t\t\t</div>\r\n\r\n\t\t\t')
        runtime._include_file(context, u'footer.mako', _template_uri)
        __M_writer(u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#submit").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'get\',\r\n\t\t\t\turl: \'/user/auth\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tusername : $("#username").val(),\r\n\t\t\t\t\tpassword : $("#password").val()\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//response will be JSON. response[\'success\'] = false, message will have a list of bad fields\r\n\t\t\t\t\talert(response);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\r\n\t</body>\r\n\r\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #28
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>\u767b\u5f55\u6210\u529f</title>\n</head>\n<body>\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'headbar.mako', _template_uri)
        __M_writer(u'\n\u8fd9\u662f\u5356\u4e1c\u897f\u7684\u754c\u9762\n</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #29
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />-->\n    <title>404 File not found</title>\n\t')
        # SOURCE LINE 7
        runtime._include_file(context, u'externalfiles.html', _template_uri)
        __M_writer(u'\n</head>\n<body id="signinpage">\n    <div id="foxhelper">\n            <img src="/styles/img/foxhelper_shadow.png" class="thefox" />\n            <div class="foxpanel"><div class="panelwrap">\n                    <div class="display">\n                        <div class="wrap">\n                        \n                           <h3>Oops!</h3>\n                           \n                           <p>We are very sorry, but we can\'t find or render the page you are looking for.</p>\n                           \n                           <p>It is possible that you mistyped a link or you were signed out for security reasons.<br /><br /></p>\n                           \n                           <h5>Bug Report</h5>\n                           \n                           <p>If you believe this to be a bug, please email us at <a href="mailto:[email protected]">[email protected]</a> <br /> <br /></p>\n                           \n\t                        <div class="action">\n\t                            <a class="button primary" href="/"><span>Go to Dashboard &raquo;</span></a>\n\t                            <a class="button" href="javascript:history.go(-1)"><span>Go Back</span></a>\n\t                        </div>\n\t                        \n\t                         <div class="links">\n                                Still having trouble? <a class="link" href="/signout">Force Sign In &raquo;</a>\n                            </div>\n                         \n                        </div>\n                    </div>\n            </div></div>\n    </div>\n    <a href="/" class="footer">Rentfox Homepage</a>\n    \n</body>\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #30
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        name = context.get('name', UNDEFINED)
        __M_writer = context.writer()
        runtime._include_file(context, 'base', _template_uri)
        __M_writer('\nHello ')
        __M_writer(str(name))
        __M_writer('!')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #31
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)

        def pagetitle():
            return render_pagetitle(context._locals(__M_locals))

        def js_extra():
            return render_js_extra(context._locals(__M_locals))

        static = _mako_get_namespace(context, 'static')
        user = context.get('user', UNDEFINED)

        def headextra():
            return render_headextra(context._locals(__M_locals))

        auth = context.get('auth', UNDEFINED)
        duplicate_provider = context.get('duplicate_provider', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n\n')
        __M_writer(u'\n\n')
        __M_writer(u'\n')
        __M_writer(u'\n')
        __M_writer(u'\n\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'pagetitle'):
            context['self'].pagetitle(**pageargs)

        __M_writer(u'\n\n')
        if duplicate_provider:
            __M_writer(u'    <section>\n        ')
            runtime._include_file(
                context, u'/dashboard/_dashboard_third_party_error.html',
                _template_uri)
            __M_writer(u'\n    </section>\n')
        __M_writer(u'\n<div class="wrapper-account-settings"></div>\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'headextra'):
            context['self'].headextra(**pageargs)

        __M_writer(u'\n\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'js_extra'):
            context['self'].js_extra(**pageargs)

        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        status = context.get('status', UNDEFINED)
        primarytype = context.get('primarytype', UNDEFINED)
        last_updated = context.get('last_updated', UNDEFINED)
        name = context.get('name', UNDEFINED)
        secondarytype = context.get('secondarytype', UNDEFINED)
        address = context.get('address', UNDEFINED)
        space_description = context.get('space_description', UNDEFINED)
        website_url = context.get('website_url', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            u'<html>\n<head>\n<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville|Source+Sans+Pro:200,300,300i,400,600" rel="stylesheet">\n<link rel="stylesheet" type="text/css" href="/css/wikipage.css"/>\n<link rel="stylesheet" type="text/css" href="/css/stylesheet.css"/>\n<script type=\'text/javascript\' src=\'/js/wiki.js\'></script>\n<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>\n</head>\n<body>\n '
        )
        runtime._include_file(context, u'/snippets/header.html', _template_uri)
        __M_writer(
            u'\n \n<div class="wBlockHeader">\n<div class="w-top-navigation">\n<a href="/" >\n    \t<img src="/assets/edit_button.png" id="w-top-navigation-bar-edit-button">\n</a>Last updated :'
        )
        __M_writer(escape(last_updated))
        __M_writer(
            u'\n<a href="/" >\n    \t<img src="/assets/flag_button.png" id="w-top-navigation-bar-flag-incorrect-button">\n</a>\n</div>\n <div class="wnavigation-bar">\n    <a href="/" id="wnavigation-bar-article-button" class="navigation-bar-button selected-navigation-bar-button">Article</a>\n    <a href="/" id="wnavigation-bar-talk-button" class="navigation-bar-button">Talk</a>\n    <a href="/" id="wnavigation-bar-document-revision-button" class="navigation-bar-button">Revision</a>\n\t</div>\n</div>\n<div class="wBlockOne">\n<img src="/assets/logoplaceholder.png" alt="#" style="height: 100px; display:block;margin-left: auto;margin-right: auto;">\n<p id="wTitle">'
        )
        __M_writer(escape(name))
        __M_writer(u'</p>\n<p id="wStatus">')
        __M_writer(escape(status))
        __M_writer(
            u'</p>\n<hr />\n</div>\n<div class="wBlockTwo">\n<div class="rowAlign">\n  <div class="rowTextBlock">\n  <p>Contact Info</p>\n  <a>'
        )
        __M_writer(escape(website_url))
        __M_writer(
            u'</a>\n  <br/>\n\t<div id="w-address">  \n\t<p><img src="/assets/pin_map.png" alt="" style="width:8px;height: 10px;">'
        )
        __M_writer(escape(address))
        __M_writer(
            u'</p> \n  </div> \n  </div>\n  <div class="rowTextBlock">\n   <p>Social Media</p>\n   <div class="social-media-block">\n   <a href="#"  id="w-social-button" >\n\t   <img src="/assets/social_twitter.png" class="w-social-button" >\n   </a>\n   <a href="#"  id="w-social-gplus" >\n\t<img src="/assets/social_google+.png" class="w-social-button">   \n   </a>\n   <a href="#" id="w-social-meetup">\n\t<img src="/assets/social_meetup.png"  class="w-social-button">   \n   </a>\n   <a href="#" id="w-social-fablab" >\n   <img src="/assets/social_fablab.png"  class="w-social-button">   \n   \t</a>\n   <a href="#"  id="w-social-facebook">\n\t<img src="/assets/social_facebook.png"  class="w-social-button">      \n   </a>\n   <a href="#"  id="w-social-jabber">\n\t<img src="/assets/social_jabber.png"  class="w-social-button">      \n   </a>\n   <a href="#" id="w-social-linkedin">\n\t<img src="/assets/social_linkedin.png"  class="w-social-button">      \n   </a>\n   </div>\n  </div>\n  <div class="rowTextBlock">\n  <p>Service</p>\n  <ul style="text-align: left;"><li>'
        )
        __M_writer(escape(primarytype))
        __M_writer(u'</li><li>')
        __M_writer(escape(secondarytype))
        __M_writer(
            u'</li></ul>\n  </div>\n  <div class="rowTextBlock">\n  <p>Capabilities</p>\n  <p>Machines_spaceholder</p>\n  </div>\n</div>\n<hr/>\n</div>\n\n<div class="wBlockTh">\n<div  class="w-block-left">\n   <img src="/assets/social_fablab.png" alt="#" style="width:100%;">   \n  </div>\n<div class="w-block-right"> \n\t<p id="w-space-description">'
        )
        __M_writer(escape(space_description))
        __M_writer(
            u'</p>\n</div>\n<br/>\n</div>\n<div id="show-more-section">\n<button id="show-more-button" onclick="show_more_wiki()"></button>\n<hr/>\n</div>\n\n</div>\n</body>\n</html>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #33
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        file = context.get('file', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 3
        runtime._include_file(context, (file), _template_uri)
        __M_writer(u'\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #34
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        file = context.get('file', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 3
        runtime._include_file(context, (file), _template_uri)
        __M_writer(u'\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(u'\n\n')
        # SOURCE LINE 3
        runtime._include_file(context, u'/mathjax_include.html', _template_uri)
        __M_writer(u'\n')
        # SOURCE LINE 4
        __M_writer(filters.decode.utf8(include_mustache_templates()))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            '<!DOCTYPE html>\r\n<html lang="en">\r\n<head>\r\n    <meta charset="UTF-8">\r\n    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">\r\n    <link href="/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>\r\n    <title>Main</title>\r\n</head>\r\n<body>\r\n'
        )
        runtime._include_file(context, 'shared/menu.mako', _template_uri)
        __M_writer(
            '\r\n<div class="container">\r\n    Hello\r\n</div>\r\n</body>\r\n</html>'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #37
0
def render_header_extra(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        def header_extra():
            return render_header_extra(context)
        parent = context.get('parent', UNDEFINED)
        __M_writer = context.writer()
        __M_writer('\n    ')
        __M_writer(str(encode_if_unicode(parent.header_extra())))
        __M_writer('\n    ')
        runtime._include_file(context, 'inc/toc_definitions.tpl', _template_uri)
        __M_writer('\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #38
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        courses = context.get('courses', UNDEFINED)
        homepage_course_max = context.get('homepage_course_max', UNDEFINED)
        marketing_link = context.get('marketing_link', UNDEFINED)
        len = context.get('len', UNDEFINED)
        settings = context.get('settings', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n')
        __M_writer(u'\n')
        __M_writer(
            u'\n\n<section class="holder courses-container">\n  <section class="highlighted-courses">\n\n'
        )
        if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
            __M_writer(
                u'      <section class="courses">\n        <div class="courses-title">'
            )
            __M_writer(
                filters.html_escape(filters.decode.utf8(_("Our Courses"))))
            __M_writer(u'</div>\n        <ul class="courses-listing">\n')
            for course in courses[:homepage_course_max]:
                __M_writer(
                    u'          <li class="courses-listing-item">\n              '
                )
                runtime._include_file(context,
                                      u'course.html',
                                      _template_uri,
                                      course=course)
                __M_writer(u'\n          </li>\n')
            __M_writer(u'        </ul>\n      </section>\n')
            if homepage_course_max and len(courses) > homepage_course_max:
                __M_writer(
                    u'      <div class="courses-more">\n        <a class="courses-more-cta" href="'
                )
                __M_writer(
                    filters.html_escape(
                        filters.decode.utf8(marketing_link('COURSES'))))
                __M_writer(u'">')
                __M_writer(
                    filters.html_escape(
                        filters.decode.utf8(_("View all Courses"))))
                __M_writer(u'</a>\n      </div>\n')
        __M_writer(u'\n  </section>\n</section>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #39
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        def head():
            return render_head(context.locals_(__M_locals))
        self = context.get('self', UNDEFINED)
        parent = context.get('parent', UNDEFINED)
        def title():
            return render_title(context.locals_(__M_locals))
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'title'):
            context['self'].title(**pageargs)
        

        # SOURCE LINE 2
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'head'):
            context['self'].head(**pageargs)
        

        # SOURCE LINE 6
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'reader.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 9
        runtime._include_file(context, u'book.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 10
        runtime._include_file(context, u'borrow_1.html', _template_uri)
        __M_writer(u'\r\n')
        # SOURCE LINE 11
        runtime._include_file(context, u'done.html', _template_uri)
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 13
        __M_writer(unicode(self.js('lib/PanelReader.js')))
        __M_writer(u'\r\n')
        # SOURCE LINE 14
        __M_writer(unicode(self.js('lib/PanelBook.js')))
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 16
        runtime._include_file(context, u'borrow_0.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'</head>\n<body>\n')
        # SOURCE LINE 3
        runtime._include_file(context, u'menu.mako', _template_uri)
        __M_writer(
            u'\n<script type="text/javascript">\n\n$(document).ready(function()\n{\nvar vouchertype = $("input#vouchertype").val();\nvar message = $("input#message").val(); \nvar date = "'
        )
        # SOURCE LINE 10
        __M_writer(escape(c.date))
        __M_writer(
            u'"\nif ( vouchertype == "Contra")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Journal")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/Journal_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Payment")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/Payment_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Receipt")\n{\n\t\n\tvar url = location.protocol+"//"+location.host+"/voucher/Receipt_index?message=" + message ;\n\twindow.location = url;\n\n}\n\nif ( vouchertype == "Credit Note")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/CreditNote_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Debit Note")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/DebitNote_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Purchase")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/Purchase_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Sales")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/Sales_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Purchase Return")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/PurchaseReturn_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Sales Return")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/SalesReturn_index?message=" + message;\n\twindow.location = url;\n}\n\nif ( vouchertype == "Others")\n{\n\tvar url = location.protocol+"//"+location.host+"/voucher/Others_index?message=" + message;\n\twindow.location = url;\n}\n\nreturn false;\n});\n</script>\n\n<form method="get">\n<input type="hidden" name="vouchertype" value="'
        )
        # SOURCE LINE 84
        __M_writer(escape(c.vouchertype))
        __M_writer(
            u'" id="vouchertype" />\n<input type="hidden" name="message" value="'
        )
        # SOURCE LINE 85
        __M_writer(escape(c.message))
        __M_writer(u'" id="message" />\n')
        # SOURCE LINE 86
        if c.vouchertype == "Receipt":
            # SOURCE LINE 87
            __M_writer(u'<input type="hidden" name="refno" value="')
            __M_writer(escape(c.refno))
            __M_writer(
                u'" id="refno" />\n<input type="hidden" name="total" value="')
            # SOURCE LINE 88
            __M_writer(escape(c.amountList))
            __M_writer(
                u'" id="total" />\n<input type="hidden" name="date" value="')
            # SOURCE LINE 89
            __M_writer(escape(c.date))
            __M_writer(
                u'" id="date"/>\n<input type="hidden" name="in_figures" />\n<input type="hidden" name="from_account" />\n<input type="hidden" name="on_account" />\n'
            )
            pass
        # SOURCE LINE 94
        __M_writer(u'</form>\n</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #41
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />-->\n    <title>Rentfox | Account Activation</title>\n\t')
        # SOURCE LINE 7
        runtime._include_file(context, 'externalfiles.html', _template_uri)
        __M_writer(u'\n</head>\n<body id="activatepage">\n    <div id="eventStatus">loading...</div>\t\n    <div id="foxhelper">\n            <img src="/styles/img/foxhelper_shadow.png" class="thefox" />\n            <div class="foxpanel"><div class="panelwrap">\n                    <div class="display">\n                        <div class="wrap">\n                        \t\n                        \t<form id="activationForm" method="post" onsubmit="javascript:return false;">\n                        \t\t<div class="error" id="activateError"></div>\n                            \t\n\t                            <label for="username">Desired Username</label>\n\t                            <input type="text" id="username" name="username" />\n\t                            \n\t                            <label for="password">Desired Password</label>\n\t                            <input type="password" id="password" name="password" />\n\t                            \n\t                            <label for="password">Secret Reminder<span>...to help trigger memory of your password</span></label>\n\t                            <input type="text" id="reminder" />\n\t                            \n\t                            <div class="action">\n\t                                <a class="button primary" id="activateButton"><span>Activate me &raquo;</span></a>\n\t                            </div>\n                            </form>\n                            \n                            <div id="cannotActivate">\n                            \t<div class="error on">\n                            \t\tWe are sorry, but it appears that the activation link you are using no longer exists.\n                            \t\tPlease ask your manager to issue a new activation link.\n                            \t</div>\n                            </div>\n                        \n                        </div>\n                    </div>\n            </div></div>\n    </div>\n    <a href="/" class="footer">Rentfox Homepage</a>\n    \n    <script type="text/javascript">\n        $(document).ready(function(){\n            var activate = new Activate(\'')
        # SOURCE LINE 49
        __M_writer(escape(c.activation_code))
        __M_writer(u"');\n        });\n    </script>\n    \n</body>\n</html>\n\n")
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #42
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n    <title>Rentfox - The easiest way to manage your rental properties online - financial ledger, tenant SMS reminders, lease management, rental management software</title>\n    <meta name="description" content="Clever online property management software in the cloud." /> \n    <meta name="keywords" content="property management software, property management, online property management, rental property management software, apartment management software, rental management software, web based property management, real estate property management software, real estate software, condo association management, landlord services, landlord software" /> \n\t'
        )
        # SOURCE LINE 8
        runtime._include_file(context, u"externalfiles.html", _template_uri)
        __M_writer(
            u'\n\t<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>\n</head>\n<body id="homepage">\n\n<div id="eventStatus">loading...</div>\t\n\n<div class="all">\n\t<div class="leads"><div class="wrap"><div class="wrap">\n\t\t<a id="leads-button" class="mini button"><span><img src="/styles/img/ico/mail.png" />Have us contact you</span></a>\n\t\t<strong>Got questions?</strong> Let\'s get in touch today.\n\t</div></div></div>\n\t\n\t<form class="login" action="/dashboard" method="post" id="signInForm">\n\t\t<div class="username"><input type="text" id="username" name="username" alt="Username" /></div>\n\t\t<div class="password"><input type="password" id="password" name="password" alt="Password" /></div>\n\t\t<div class="signin login" id="signInButton"><span>Sign in</span></div>\n\t\t<div class="signup login" id="signUpButton"><span>Sign up free</span></div>\n\t</form>\n\t\n\t<div class="promoMain">\n\t\t<div class="promoTour" id="tour">\n\t\t\t<div class="content" id="tourContent">\n\t\t\t\t<div class="close" id="tour-close"><span>END TOUR</span></div>\n\t\t\t\t\n\t\t\t\t<div class="pane" id="tourpane-1">\n\t\t\t\t\t<h3 class="center">The <span class="orange">Destruction</span> of Paper <br />begins today!</h3>\n\t\t\t\t\t<p class="center">\n\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\tUse your <em>left and right arrow keys</em> to navigate.\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class="center"><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-2" id="tourpane-2">\n\t\t\t\t\t<h4>Rentfox lets you<br /> manage properties<br /> in the <span class="orange">cloud.</span></h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tNever worry about backups.<br />\n\t\t\t\t\t\tNever install or configure software.<br />\n\t\t\t\t\t\t24/7 access to your data from anywhere.<br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-3" id="tourpane-3">\n\t\t\t\t\t<h4>Rentfox gets your<br /> tenants to pay<br />rent <span class="orange">on time.</span></h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tAutomatic tenant <em>SMS</em> reminders.<br />\n\t\t\t\t\t\tAutomatic <em>email</em> reminders.<br />\n\t\t\t\t\t\tOnline rent payment <em>(coming soon!)</em><br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-4" id="tourpane-4">\n\t\t\t\t\t<h4>Rentfox offers a<br />clever <span class="orange">user interface</span> <br />which will save you time.</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tRecord rent for 30 units in <em>1 minute</em>.<br />\n\t\t\t\t\t\tCreate 500 units in <em>seconds</em>, not hours.<br />\n\t\t\t\t\t\tOur fox will <em>guide</em> you when you are lost.<br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-5" id="tourpane-5">\n\t\t\t\t\t<h4>Save time during<br /> tax season with an<br /> easy-to-use <span class="orange">ledger.</span></h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tAnalyze <em>cashflow</em>.<br />\n\t\t\t\t\t\t<em>Record</em> income and expenses.<br />\n\t\t\t\t\t\tMaintain <em>control</em> of your balances.<br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-6" id="tourpane-6">\n\t\t\t\t\t<h4>Keep all your<br /><span class="orange">contacts</span> on Rentfox<br /> and access them anywhere.</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<em>Organize</em> your contacts in meaningful ways.<br />\n\t\t\t\t\t\t<em>Search</em> for contacts instantly.<br />\n\t\t\t\t\t\tAccess contacts via <em>mobile</em><br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane tourpane-7" id="tourpane-7">\n\t\t\t\t\t<h4>Rentfox helps you<br /><span class="orange">decrease vacancy</span> and<br />keep cashflow alive.</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<em>Monitor</em> occupancy rates.<br />\n\t\t\t\t\t\tSee <em>move-out</em> dates well in advance.<br />\n\t\t\t\t\t\t<em>Advertise</em> units online (coming soon!)<br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p><a class="next-pane">Continue &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="pane" id="tourpane-8">\n\t\t\t\t\t<h3 class="center">Give us a try <span class="orange">today.</span><br />We won\'t bite!</h3>\n\t\t\t\t\t<p class="center">\n\t\t\t\t\t\t<br />\n\t\t\t\t\t\tPut away <em>pen and paper.</em><br />\n\t\t\t\t\t\tTrash gigabytes of Excel Spreadsheets.<br />\n\t\t\t\t\t\tKick your antiquated <em>enterprise solution</em> to the curb.<br />\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class="center"><a id="tour-signup-button" class="orange">Sign up FREE today!</a> or <a class="next-pane">watch again &raquo;</a></p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="slides">\n\t\t\t<ul id="slideNav" class="slideNav">\n\t\t\t\t<li id="slide_1" class="on"></li>\n\t\t\t\t<li id="slide_2"></li>\n\t\t\t\t<li id="slide_3"></li>\n\t\t\t\t<li id="slide_4"></li>\n\t\t\t\t<li id="slide_5"></li>\n\t\t\t\t<li id="slide_6"></li>\n\t\t\t</ul>\n\t\t\t<div class="slideViewer" id="slideViewer"></div>\n\t\t</div>\n\t\t<div class="tour">\n\t\t\t<a class="tourButton" id="tour-button"></a>\n\t\t</div>\n\t</div>\n\t\n\t<div class="promos">\n\t\n\t\t<!-- coming later\n\t\t<div class="promo"><div class="wrap">\n\t\t\t<h3><span class="comingSoon">coming soon</span>Resident Portal</h3>\n\t\t\t<h5>Easily manage your tenants with Rentfox</h5>\n\t\t\t<p>\n\t\t\t\tCollect rent online securely through Rentfox using PayPal.\n\t\t\t\tEasily manage maintenance requests, facility reservations, and more.\n\t\t\t\t<strong>Currently under development</strong>.\n\t\t\t</p>\n\t\t\t<div><img src="/styles/img/promo_residentportal.png" alt="Resident Portal" /></div>\n\t\t</div></div>\n\t\t-->\n\t\t\n\t\t<div class="promo"><div class="wrap">\n\t\t\t<h3><span class="comingSoon">coming soon</span>Lower Vacancy</h3>\n\t\t\t<h5>We\'ll give you the best vacancy management tools</h5>\n\t\t\t<p>\n\t\t\t\tList your units on Craigslist with one click.\n\t\t\t\tCreate web flyers that don\'t suck.\n\t\t\t\tReceive, compare, and process rental applications online.\n\t\t\t\t<strong>Available in October!</strong>\n\t\t\t</p>\n\t\t\t<div><img src="/styles/img/promo_applications.png" alt="Vacancy Manager" /></div>\n\t\t</div></div>\n\t\t\n\t\t<div class="promo"><div class="wrap">\n\t\t\t<h3>SMS &amp; Email Reminders</h3>\n\t\t\t<h5>Rentfox reminds tenants with SMS and email</h5>\n\t\t\t<p>\n\t\t\t\tRentfox will automatically remind your tenants 3 days before rent is due to give ample notice.\n\t\t\t\tYou can also remind tenants to pay late fees when they miss their deadline.\n\t\t\t</p>\n\t\t\t<div><img src="/styles/img/promo_reminders.png" alt="SMS and Email Reminders" /></div>\n\t\t</div></div>\n\t\t\n\t\t<div class="promo"><div class="wrap">\n\t\t\t<h3>Easy-to-use Ledger</h3>\n\t\t\t<h5>Rentfox makes it easy to do tedious tasks</h5>\n\t\t\t<p>\n\t\t\t\tThe ledger is the most important tool for a property manager.\n\t\t\t\tTedious tasks can be hastened using the Rentfox ledger.\n\t\t\t\tYou\'ll love this clear and flexible interface.\n\t\t\t</p>\n\t\t\t<div><img src="/styles/img/promo_ledger.png" alt="Easy-to-use Ledger" /></div>\n\t\t</div></div>\n\t\t\n\t\t<div class="new promo"><div class="wrap">\n\t\t\t<h3>Rapid Recording</h3>\n\t\t\t<h5>Rentfox saves you time recording rent</h5>\n\t\t\t<p>\n\t\t\t\tOur unique system for recording rent helps you complete your tasks faster than ever.\n\t\t\t\tRent recording took hours each month, but it can now be done in just a few minutes.\n\t\t\t</p>\n\t\t\t<div><img src="/styles/img/promo_record.png" alt="Rapid Rent Recording" /></div>\n\t\t</div></div>\n\t\n\t</div>\n\t\n\t<div class="lesserPromo">\n\t\t<div class="whyRentfox">\n\t\t\t<h3>Work faster, work less</h3>\n\t\t\t<p>\n\t\t\t\tSave time and money with Rentfox.\n\t\t\t\tSpend less time worrying and less time with tedious tasks.\n\t\t\t\tTypical tasks among property management applications are ten times faster using Rentfox.\n\t\t\t</p>\n\t\t</div>\n\t\t<div class="pricing">\n\t\t\t<h3>Pricing Plans</h3>\n\t\t\t<p>Rentfox is free in Beta. Monthly pricing after beta will be $1/month per unit. There are no obligations to continue membership.</p>\n\t\t</div>\n\t\t\n\t</div>\n\t\n\t<div class="footer">\n\t\t<div class="links">\n\t\t\t<a href="http://blog.rentfox.net/">Our Blog</a> |\n\t\t\t<a id="termsLink">Terms of Use</a> |\n\t\t\t<a id="privacyLink">Privacy Policy</a> |\n\t\t\t<a id="aboutLink">About Rentfox</a> |\n\t\t\t<a id="supportLink">Support</a> |\n\t\t\t<a id="contactLink">Contact Rentfox</a>\n\t\t</div>\n\t\t<div class="copyright">Copyright &copy; 2010 Rentfox, LLC.  All rights reserved.</div>\n\t</div>\n\t\n\t\n</div>\n\n<div id="foxhelper">\n\t<img src="/styles/img/foxhelper_shadow.png" class="thefox" alt="Rentfox" />\n\t<div class="foxpanel"><div class="panelwrap">\n\t\t<div class="display"></div>\n\t</div></div>\n</div>\n\n<script type="text/javascript">\n\n\t$(document).ready(function(){\n\t\tpage = new Page;\n\t\tvar homepage = new Homepage();\n\t});\n\t\n\tvar _gaq = _gaq || [];\n\t_gaq.push([\'_setAccount\', \'UA-2806397-2\']);\n\t_gaq.push([\'_trackPageview\']);\n\n\t(function() {\n\t    var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n\t    ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n\t    var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n\t})();\n\n</script>\n\n<script type="text/javascript">\nvar uservoiceOptions = {\n  /* required */\n  key: \'rentfox\',\n  host: \'rentfox.uservoice.com\', \n  forum: \'24116\',\n  showTab: true,  \n  /* optional */\n  alignment: \'left\',\n  background_color:\'#333\', \n  text_color: \'white\',\n  hover_color: \'#06C\',\n  lang: \'en\'\n};\n\nfunction _loadUserVoice() {\n  var s = document.createElement(\'script\');\n  s.setAttribute(\'type\', \'text/javascript\');\n  s.setAttribute(\'src\', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");\n  document.getElementsByTagName(\'head\')[0].appendChild(s);\n}\n_loadSuper = window.onload;\nwindow.onload = (typeof window.onload != \'function\') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };\n</script>\n</body>\n</html>\n'
        )
        return ""
    finally:
        context.caller_stack._pop_frame()
Exemple #43
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />-->\n    <title>Rentfox | Reset Password</title>\n\t')
        # SOURCE LINE 7
        runtime._include_file(context, 'externalfiles.html', _template_uri)
        __M_writer(u'\n</head>\n<body id="signinpage">\n    <div id="eventStatus">loading...</div>\t\n    <div id="foxhelper">\n            <img src="/styles/img/foxhelper_shadow.png" class="thefox" />\n            <div class="foxpanel"><div class="panelwrap">\n                    <div class="display">\n                        <div class="wrap">\n                            \n                            <div class="default view on">\n                            \t\n                            \t<div class="error" id="error"></div>\n                            \t\n                                <label for="password">Your New Password</label>\n                                <input type="password" id="password" name="password" />\n                                <input type="hidden" id="key" name="key" value="')
        # SOURCE LINE 23
        __M_writer(escape(c.key))
        __M_writer(u'" />\n\n                                <div class="action">\n                                    <a class="button primary" id="resetPassword"><span>Reset My Password &raquo;</span></a>\n                                </div>\n                                \n                                <div class="links">\n                                    <a class="link" href="/signin">Sign In</a>\n                                </div>\n                                \n                            </div>\n                            \n                            <div class="finished view" id="finished">\n                                <h2>Your password has been reset!</h2>\n                                <p>You can now use your new password to access Rentfox!</p>\n                                <div class="action">\n                                    <a class="button primary" id="signin"><span>Sign in page &raquo;</span></a>\n                                </div>\n                            </div>\n                            \n                        </div>\n                    </div>\n            </div></div>\n    </div>\n    <a href="/" class="footer">Rentfox Homepage</a>\n    \n    <script type="text/javascript">\n        $(document).ready(function(){\n        \n            $(\'#resetPassword\').bind(\'click\',function(){\n            \t$.ajax({\n\t                url: \'/account/setNewPassword\',\n\t\t\t\t\tcache: false,\n\t                data: {\n\t                    key: $(\'#key\').val(),\n\t                    password: $(\'#password\').val()\n\t                },\n\t                type: \'POST\',\n\t                dataType: \'json\',\n\t                beforeSend: function() {\n\t                    $(\'div#eventStatus\').css({display:\'block\'});\n\t                },\n\t               \tsuccess: function(json) {\n\t                    $(\'div#eventStatus\').css({display:\'none\'});\n\t                    if (json.error) {\n\t                        $(\'#error\').text(json.error).css({display:\'block\'});   \n\t                    } else {\n\t                        $(\'#error\').css({display:\'none\'});\n\t                        $(\'.view\').hide();\n\t                        $(\'#finished\').show();\n\t                    }\n\t               \t}\n\t            });\n            })\n            \n            $(\'#password\').bind(\'keypress\',function(e) {\n            \tvar code = e.keyCode || e.which;\n            \tif (code == 13) $(\'#resetPassword\').click();\n            });\n            \n            $(\'#signin\').bind(\'click\',function(){\n            \tlocation.href = \'/signin\';\n            });\n            \n        });\n    </script>\n    \n</body>\n</html>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #44
0
def render_top(context):
    context.caller_stack._push_frame()
    try:
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n<ul class="nav sub" style="text-align: center;">\n    <li class="center">\n        ')
        # SOURCE LINE 5
        __M_writer(escape(h.link_to("New Intel", url('new_report'))))
        __M_writer(u'\n    </li>\n</ul>\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'/errors.mako', _template_uri)
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #45
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        g = context.get('g', UNDEFINED)
        int = context.get('int', UNDEFINED)
        chr = context.get('chr', UNDEFINED)
        range = context.get('range', UNDEFINED)
        enumerate = context.get('enumerate', UNDEFINED)
        sorted = context.get('sorted', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        runtime._include_file(context, 'header.html', _template_uri)
        __M_writer(u'\n\n<div id="container1"> \n<font size="10">a</font>\n')
        # SOURCE LINE 5
        for i in range(1,26):
            # SOURCE LINE 6
            __M_writer(u'    ')
            j=(chr(97+int(i))) 
            
            __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin()[__M_key]) for __M_key in ['j'] if __M_key in __M_locals_builtin()]))
            __M_writer(u'\n    ')
            # SOURCE LINE 7
            __M_writer(escape(j))
            __M_writer(u'\n')
        # SOURCE LINE 9
        __M_writer(u'\n')
        # SOURCE LINE 10
        for i, country in enumerate(sorted(g.factbook.keys())):
            # SOURCE LINE 11
            if i<10:
                # SOURCE LINE 12
                __M_writer(u'\n<div id="container"> \n<a href="">\n<img src="')
                # SOURCE LINE 15
                __M_writer(escape(g.factbook[country]["image"]))
                __M_writer(u'"><h4>')
                __M_writer(escape(g.factbook[country]["fullname"]))
                __M_writer(u'</h4> \n</a>\n<p>\nPopulation : \n\n<br>\nSize :<br>\n</p>\n</div>\n\n')
        # SOURCE LINE 27
        __M_writer(u'</div>\n')
        # SOURCE LINE 28
        runtime._include_file(context, 'footer.html', _template_uri)
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #46
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\r\n\t\t\t<div class="content">\r\n\r\n\t\t\t\t<!-- <div><h1>HomePage</h1></div> -->\r\n\t\t\t\t<div class="hero_image">\r\n\t\t\t\t\t<img src="../images/BannerImage.jpg" class="hero_image">\t\t\t\t\t\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class="summary_buttons">\r\n\t\t\t\t\t<div class="summary_end">\r\n\t\t\t\t\t\t<a href="/shop/buy">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_buy_garden_fresh_box">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tBuy a Garden Fresh Box\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tShop for a Garden Fresh Box for yourself or your family.\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/shop/buy">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="summary_mid">\r\n\t\t\t\t\t\t<a href="/info">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_about_garden_fresh_box">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tAbout the Program\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\t\t\t\t\t\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tLearn more about the Garden Fresh Box Program and how we\'re helping Guelph.\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/info">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div class="summary_end">\r\n\t\t\t\t\t\t<a href="/contact">\r\n\t\t\t\t\t\t\t<div class="summary_button" id="summary_feedback_image">\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<div class="summary_heading">\r\n\t\t\t\t\t\t\t\t\t<h2 class="summary_button">\r\n\t\t\t\t\t\t\t\t\tLeave Feedback\r\n\t\t\t\t\t\t\t\t\t</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t<div class="summary_description">\r\n\t\t\t\t\t\t\t<p class="summary_button">\r\n\t\t\t\t\t\t\t\tAre we doing a good job? Did you enjoy one of our recipes? Let the community know by leaving some feedback!\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t<a href="/contact">\r\n\t\t\t\t\t\t\t\tLearn More\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t</div>\t\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div><!-- End of summary buttons -->\r\n\r\n\t\t\t</div><!-- End of the content div -->\r\n\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'footer.mako', _template_uri)
        __M_writer(u'\r\n\t\t</div>\r\n\r\n\r\n\t</body>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #47
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        def body_content():
            __M_caller = context.caller_stack._push_frame()
            try:
                next = context.get('next', UNDEFINED)
                __M_writer = context.writer()
                # SOURCE LINE 75
                __M_writer(u'\n\t\t\t\t\t')
                # SOURCE LINE 76
                __M_writer(unicode(next.body()))
                __M_writer(u'\n\t\t\t\t')
                return ''
            finally:
                context.caller_stack._pop_frame()
        current_user = context.get('current_user', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n\t<!-- Primary navigation -->\n\t<nav id="primary">\n\t\t<ul>\n')
        # SOURCE LINE 9
        if current_user['roletype']==2 :
            # SOURCE LINE 10
            __M_writer(u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../manage"><span class="glyph dashboard"></span>\u67e5\u8be2\u7528\u6237</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../custorm_add"><span class="glyph shuffle"></span>\u6dfb\u52a0\u7528\u6237</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_exchanges"><span class="glyph eye"></span>\u4ea4\u6362\u673a\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../add_exchange"><span class="glyph listicon"></span>\u4ea4\u6362\u673a\u8bbe\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../bwstat"><span class="glyph chart"></span>\u7edf\u8ba1</a>\n\t\t\t\t\t\t\t</li>\n')
            # SOURCE LINE 28
        elif  current_user['roletype']==3 :
            # SOURCE LINE 29
            __M_writer(u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../product"><span class="glyph dashboard"></span>\u4fe1\u606f\u67e5\u8be2</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n')
            # SOURCE LINE 35
        else:
            # SOURCE LINE 36
            __M_writer(u'\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_admin"><span class="glyph dashboard"></span>\u7ba1\u7406\u5458\u7ba1\u7406</a>\n\t\t\t\t\t\t\t</li>  \n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../get_users"><span class="glyph listicon"></span>\u8fd0\u8425\u5546\u7ba1\u7406</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../signup"><span class="glyph shuffle"></span>\u6dfb\u52a0\u89d2\u8272</a>\n\t\t\t\t\t\t\t</li> \n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="../pwdchange"><span class="glyph pencil"></span>\u5bc6\u7801\u91cd\u7f6e</a>\n\t\t\t\t\t\t\t</li>\n')
        # SOURCE LINE 49
        __M_writer(u'\t\t\t<li class="bottom">\n\t\t\t\t<a href="/logout">\n\t\t\t\t\t<span class="glyph quit"></span>\n\t\t\t\t\t\u9000\u51fa\u7cfb\u7edf\n          </a>\n\t\t\t</li>\n\t\t</ul>\n\t</nav>\n\t<!-- Secondary navigation -->\n\t<nav id="secondary" style="width:10px; overflow:hidden;">\n\t\t<ul>\n\t\t\t<li><a href="../charts/linechart.html">Line chart</a></li>\n\t\t\t<li><a href="../charts/barchart.html">Bar chart</a></li>\n\t\t\t<li><a href="../charts/realtime.html">Realtime chart</a></li>\n\t\t\t<li><a href="../charts/piechart.html">Pie chart</a></li>\n\t\t</ul>\n\n\t\t<div id="notifications">\n\t\t\t<ul>\n\t\t\t</ul>\n\t\t</div>\n\t</nav>\n\t\n\t<section id="maincontainer">\n\t\t<div id="main" class="container_12">\n\t\t')
        # SOURCE LINE 74
        runtime._include_file(context, u'/shared/header.html', _template_uri)
        __M_writer(u'\n\t\t\t\t')
        # SOURCE LINE 77
        __M_writer(u'\n\t\t\t\t')
        # SOURCE LINE 78
        __M_writer(unicode(body_content()))
        __M_writer(u'\n\t\t</div>\n\t</section>\n\n\t\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #48
0
def render_body(context, online_help_token, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs,
                                      online_help_token=online_help_token)
        static = _mako_get_namespace(context, 'static')
        __M_writer = context.writer()
        __M_writer(u'\n')
        __M_writer(u'\n')
        runtime._include_file(
            context,
            (static.get_template_path(relative_path='header/header.html')),
            _template_uri,
            online_help_token=online_help_token)
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #49
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Login</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t\t<div class="content">\r\n\t\t\t\t<div class="login_page">\r\n\t\t\t\t\t<h1 class="login_page">Login</h1>\r\n\t\t\t\t\t<p class="content">\r\n\t\t\t\t\t\tPlease enter your email address and password to log in.\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<!-- <div class="login_page"> -->\r\n\t\t\t\t\t<div class="login_page_form">\r\n\t\t\t\t\t\t<label class="form_label">Email address</label>\r\n\t\t\t\t\t\t<input class="form_label_box" type="text" id="username" size="55em">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class="login_page_form">\r\n\t\t\t\t\t\t<label class="form_label">Password</label>\r\n\t\t\t\t\t\t<input class="form_label_box" type="password" id="password" size="55em">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<!-- <input id="submit" type="submit" class="btn btn-submit"> -->\r\n\t\t\t\t\t<div class="login_button_div">\r\n\t\t\t\t\t\t<input id="submit" type="submit" class="button_general">\r\n\t\t\t\t\t</div>\r\n\t\t\t\t<!-- </div> -->\r\n\t\t\t</div>\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'footer.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#submit").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'get\',\r\n\t\t\t\turl: \'/user/auth\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tusername : $("#username").val(),\r\n\t\t\t\t\tpassword : $("#password").val()\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//response will be JSON. response[\'success\'] = false, message will have a list of bad fields\r\n\t\t\t\t\talert(response);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\r\n\t</body>\r\n\r\n</html>'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #50
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Contact Us</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t\t<div class="content">\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<h1>Contact Us</h1>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<p>Have a question, comment, or concern?</p>\r\n\t\t\t\t\t<p>(519) 821-6638 ext. 344</p>\r\n\t\t\t\t\t<p><a href="mailto:[email protected]">[email protected]</a></p>\r\n\t\t\t\t\t<p>Guelph Community Health Centre<br>\r\n\t\t\t\t\tAttn: Garden Fresh Box<br>\r\n\t\t\t\t\t176 Wyndham St. N<br>\r\n\t\t\t\t\tGuelph, ON, N1H 8N9</p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t</body>\r\n\r\n</html>\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_headextra(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def headextra():
            return render_headextra(context)

        static = _mako_get_namespace(context, "static")
        show_chat = context.get("show_chat", UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 8
        __M_writer(u"\n  ")

        def ccall(caller):
            def body():
                __M_writer = context.writer()
                return ""

            return [body]

        context.caller_stack.nextcaller = runtime.Namespace("caller", context, callables=ccall(__M_caller))
        try:
            # SOURCE LINE 9
            __M_writer(filters.decode.utf8(static.css(group=u"course")))
        finally:
            context.caller_stack.nextcaller = None
        __M_writer(u"\n  ")
        # SOURCE LINE 10
        runtime._include_file(context, u"../discussion/_js_head_dependencies.html", _template_uri)
        __M_writer(u"\n")
        # SOURCE LINE 11
        if show_chat:
            # SOURCE LINE 12
            __M_writer(u'    <link rel="stylesheet" href="')
            __M_writer(filters.decode.utf8(static.url("css/vendor/ui-lightness/jquery-ui-1.8.22.custom.css")))
            __M_writer(u'" />\n')
            # SOURCE LINE 16
            __M_writer(u'    <link rel="stylesheet" href="')
            __M_writer(filters.decode.utf8(static.url("candy_res/candy_full.css")))
            __M_writer(u'" />\n')
        return ""
    finally:
        context.caller_stack._pop_frame()
Exemple #52
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Donate</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\r\n\t\t\t\t<div><h1>Donate Homepage</h1></div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\tFirst Name: <br>\r\n\t\t\t\t\t<input type="text" id="first_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tLast Name: <br>\r\n\t\t\t\t\t<input type="text" id="last_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tEmail: <br>\r\n\t\t\t\t\t<input type="text" id="email" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAddress: <br>\r\n\t\t\t\t\t<input type="text" id="mail_address" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tPhone Number: <br>\r\n\t\t\t\t\t<input type="text" id="phone" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Amount: <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Receipt? (Y/N): <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\t<input type="submit" id="confirmDonate" value="Submit Donation" class="btn btn-submit">\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#confirmDonate").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'put\',\r\n\t\t\t\turl: \'/donate\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tfirst_name : $("#first_name").val(),\r\n\t\t\t\t\tlast_name : $("#last_name").val(),\r\n\t\t\t\t\temail : $("#email").val(),\r\n\t\t\t\t\tmail_address : $("#mail_address").val(),\r\n\t\t\t\t\tphone : $("#phone").val(),\r\n\t\t\t\t\tdonation : $("#donation").val(),\r\n\t\t\t\t\tdonation_receipt : $("#donation_receipt").val(),\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//not doing response checking\r\n\t\t\t\t\tvar resp = JSON.parse(response);\r\n\t\t\t\t\tif (resp.success == "false"){\r\n\t\t\t\t\t\talert(resp.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\t</body>\r\n\r\n</html>\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #53
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n<head>\r\n\t<meta charset="utf-8">\r\n\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t<meta name="description" content="Garden Fresh Box">\r\n\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t<title>Garden Fresh Box</title>\r\n\r\n\t<!-- Bootstrap Core CSS -->\r\n\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t<!-- Custom CSS -->\r\n\t<link href="../css/custom.css" rel="stylesheet">\r\n</head>\r\n\r\n<body>\r\n\r\n\t<!-- jQuery -->\r\n\t<script src="../js/jquery.js"></script>\r\n\r\n\t<!-- Bootstrap Core JavaScript -->\r\n\t<script src="../js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\r\n\t\t\t\t<div><h1>Shopping new order</h1></div>\r\n\t\t\t\t<div>\r\n\t\t\t\t\tCreation Date: <br>\r\n\t\t\t\t\t<input type="text" id="creation_date" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDistributed Date: <br>\r\n\t\t\t\t\t<input type="text" id="dist_date" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tFirst Name: <br>\r\n\t\t\t\t\t<input type="text" id="first_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tLast Name: <br>\r\n\t\t\t\t\t<input type="text" id="last_name" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tEmail: <br>\r\n\t\t\t\t\t<input type="text" id="email" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAddress: <br>\r\n\t\t\t\t\t<input type="text" id="mail_address" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tPhone Number: <br>\r\n\t\t\t\t\t<input type="text" id="phone" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNumber of Small Boxes: <br>\r\n\t\t\t\t\t<input type="text" id="num_sm" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNumber of Large Boxes: <br>\r\n\t\t\t\t\t<input type="text" id="num_lg" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tNotify: <br>\r\n\t\t\t\t\t<input type="text" id="notify" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation: <br>\r\n\t\t\t\t\t<input type="text" id="donation" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tDonation Reciept: <br>\r\n\t\t\t\t\t<input type="text" id="donation_receipt" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tAmount Paid: <br>\r\n\t\t\t\t\t<input type="text" id="amt_paid" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tHost Site Pickup: <br>\r\n\t\t\t\t\t<input type="text" id="hs_pickup" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tHost Site Ordered: <br>\r\n\t\t\t\t\t<input type="text" id="hs_ordered" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\tVoucher: <br>\r\n\t\t\t\t\t<input type="text" id="vouchers" value="">\r\n\t\t\t\t\t<br>\r\n\t\t\t\t\t<input type="submit" id="submitButton" value="Submit Order" class="btn btn-submit">\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t<script type="text/javascript">\r\n\t\t$("#submitButton").click(function(e) {\r\n\t\t\t$.ajax({\r\n\t\t\t\ttype: \'put\',\r\n\t\t\t\turl: \'/order\',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tcreation_date : $("#creation_date").val(),\r\n\t\t\t\t\tdist_date : $("#dist_date").val(),\r\n\t\t\t\t\tfirst_name : $("#first_name").val(),\r\n\t\t\t\t\tlast_name : $("#last_name").val(),\r\n\t\t\t\t\temail : $("#email").val(),\r\n\t\t\t\t\tmail_address : $("#mail_address").val(),\r\n\t\t\t\t\tphone : $("#phone").val(),\r\n\t\t\t\t\tnum_sm : $("#num_sm").val(),\r\n\t\t\t\t\tnum_lg : $("#num_lg").val(),\r\n\t\t\t\t\tnotify : $("#notify").val(),\r\n\t\t\t\t\tdonation : $("#donation").val(),\r\n\t\t\t\t\tdonation_receipt : $("#donation_receipt").val(),\r\n\t\t\t\t\tamt_paid : $("#amt_paid").val(),\r\n\t\t\t\t\ths_pickup : $("#hs_pickup").val(),\r\n\t\t\t\t\ths_ordered : $("#hs_ordered").val(),\r\n\t\t\t\t\tvouchers : $("#vouchers").val(),\r\n\t\t\t\t\torder_id : ""\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t//not doing response checking\r\n\t\t\t\t\tvar resp = JSON.parse(response);\r\n\t\t\t\t\tif (resp.success == "false"){\r\n\t\t\t\t\t\talert(resp.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t</script>\r\n\r\n\t</body>\r\n\r\n</html>\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #54
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        __M_writer(
            u'<!DOCTYPE html>\r\n<html lang="en">\r\n\r\n\t<head>\r\n\t\t<meta charset="utf-8">\r\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\r\n\t\t<meta name="description" content="Garden Fresh Box">\r\n\t\t<meta name="author" content="Fruitful Community Solutions">\r\n\r\n\t\t<title>Garden Fresh Box - Information</title>\r\n\r\n\t\t<!-- Bootstrap Core CSS -->\r\n\t\t<link href="../css/bootstrap.min.css" rel="stylesheet">\r\n\r\n\t\t<!-- Custom CSS -->\r\n\t\t<link href="../css/custom.css" rel="stylesheet">\r\n\t\t\t<style>\r\n\t\t\ttable, th, td {\r\n\t\t\t    border: 1px solid black;\r\n\t\t\t    border-collapse: collapse;\r\n\t\t\t}\r\n\t\t\tth, td {\r\n\t\t\t    padding: 5px;\r\n\t\t\t}\r\n\t\t\t</style>\r\n\t</head>\r\n\r\n\t<body>\r\n\r\n\t\t<!-- jQuery -->\r\n\t\t<script src="js/jquery.js"></script>\r\n\r\n\t\t<!-- Bootstrap Core JavaScript -->\r\n\t\t<script src="js/bootstrap.min.js"></script>\r\n\r\n\r\n\r\n\t\t<div class="body_div">\r\n\r\n\t\t\t<!-- header file containing the main nav bar and logo -->\r\n\t\t\t'
        )
        runtime._include_file(context, u'../header.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t\t<div class="content">\r\n\r\n\t\t\t\t<div><h1>Garden Fresh Box</h1></div>\r\n\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<h1>About</h1>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<p>The Garden Fresh Box Program is a non-profit, fresh produce buying service created to help people access affordable fresh fruits and vegetables and also to support our local farmers. We are affiliated with the Guelph Wellington Local Food. It is delivered to their neighbourhood on the third Wednesday of the month. Payment must be received at the site no later than noon on the first Friday of the month.</p>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<h1>Due & Delivery Dates</h1>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<table style="width:100%">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>ORDERS DUE BY FRIDAY</th>\r\n\t\t\t\t\t\t\t\t<th>PICK UP DUE ON WEDNESDAY</th>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>2014</td>\r\n\t\t\t\t\t\t\t\t<th>2014</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>November 7</td>\r\n\t\t\t\t\t\t\t\t<td>November 19</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>December 5</td>\r\n\t\t\t\t\t\t\t\t<td>December 17</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th>2015</td>\r\n\t\t\t\t\t\t\t\t<th>2015</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>January 9</td>\r\n\t\t\t\t\t\t\t\t<td>January 21</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>February 6</td>\r\n\t\t\t\t\t\t\t\t<td>February 18</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>March 6</td>\r\n\t\t\t\t\t\t\t\t<td>March 18</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>April 3</td>\r\n\t\t\t\t\t\t\t\t<td>April 15</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>May 8</td>\r\n\t\t\t\t\t\t\t\t<td>May 20</td>\t\t\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\r\n\t\t\t'
        )
        runtime._include_file(context, u'../footer.mako', _template_uri)
        __M_writer(
            u'\r\n\r\n\t\t</div><!--End of body_div-->\r\n\r\n\t</body>\r\n\r\n</html>\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #55
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)

        def head():
            return render_head(context.locals_(__M_locals))

        next = context.get('next', UNDEFINED)
        self = context.get('self', UNDEFINED)
        parent = context.get('parent', UNDEFINED)

        def title():
            return render_title(context.locals_(__M_locals))

        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'title'):
            context['self'].title(**pageargs)

        # SOURCE LINE 2
        __M_writer(u'\r\n')
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'head'):
            context['self'].head(**pageargs)

        # SOURCE LINE 9
        __M_writer(
            u'\r\n\r\n<div id="head">\r\n\u5c45\u5bb6\u5065\u5eb7\u7ba1\u7406\u65b9\u6848\r\n</div>\r\n<div id="menu">\r\n'
        )
        # SOURCE LINE 15
        runtime._include_file(context, u'menu.html', _template_uri)
        __M_writer(u'\r\n</div>\r\n<p class="clear"></p>\r\n\r\n')
        # SOURCE LINE 19
        __M_writer(unicode(next.body(**context.kwargs)))
        __M_writer(u'\r\n\r\n<hr style="margin-top:20px"/>\r\n')
        # SOURCE LINE 22
        runtime._include_file(context, u'footer.html', _template_uri)
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #56
0
def render_body(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n')
        # SOURCE LINE 6
        if c.lang:
            # SOURCE LINE 7
            __M_writer(u'\t\t<script type="text/javascript">var LANG="')
            __M_writer(escape(c.lang))
            __M_writer(u'";</script>\n\t\t')
            # SOURCE LINE 8
            runtime._include_file(context, u'/edit.mako', _template_uri)
            __M_writer(u'\n')
            pass
        # SOURCE LINE 10
        __M_writer(u'\t<h2>Editace str\xe1nky ')
        __M_writer(escape(c.name))
        __M_writer(u'</h2>\n\t')
        # SOURCE LINE 11
        __M_writer(
            escape(
                h.form_start(h.url_for(id=c.name, param="save"),
                             method="post")))
        __M_writer(u'\n\t')
        # SOURCE LINE 12
        __M_writer(
            escape(
                h.textarea(name="area", content=c.content, rows=30, cols=100)))
        __M_writer(u'\n\t')
        # SOURCE LINE 13
        __M_writer(escape(h.submit("submit", "Odeslat")))
        __M_writer(u'\n\t')
        # SOURCE LINE 14
        __M_writer(escape(h.form_end()))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #57
0
def render_body(context, online_help_token, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs,
                                      online_help_token=online_help_token)
        static = _mako_get_namespace(context, 'static')
        __M_writer = context.writer()
        __M_writer(
            u"<!--\nTo override this page, add a header.html file in the following\nlocation: {your_theme}/lms/templates/header/header.html.html.\n\nIf you do not wish to override the header, you can simply delete\nthis file from your theme's repository.\n-->\n"
        )
        __M_writer(u'\n')
        __M_writer(u'\n')
        runtime._include_file(
            context,
            (static.get_template_path(relative_path='header/header.html')),
            _template_uri,
            online_help_token=online_help_token)
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #58
0
def render_base_body_main(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def base_body_main():
            return render_base_body_main(context)

        def page():
            return render_page(context)

        __M_writer = context.writer()
        __M_writer(
            u'\n  <header>\n    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">\n        '
        )
        runtime._include_file(context, u'header.html', _template_uri)
        __M_writer(
            u'\n    </nav>\n  </header>\n\n  <div class="body slide">\n    <aside class="sidebar show perfectScrollbar">\n      <div id="solso-sidebar">\n          '
        )
        runtime._include_file(context, u'menu.html', _template_uri)
        __M_writer(
            u'\n      </div>\n    </aside>\n    <div class="container-fluid">\n      <div class="row">\n        <div class="col-md-12 col-lg-12 bottom40 top40">\n            '
        )
        if 'parent' not in context._data or not hasattr(
                context._data['parent'], 'page'):
            context['self'].page(**pageargs)

        __M_writer(
            u'\n        </div>\n        <div class="footer">\n            ')
        runtime._include_file(context, u'footer.html', _template_uri)
        __M_writer(u'\n        </div>\n      </div>\n    </div>\n  </div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Exemple #59
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        loop = __M_loop = runtime.LoopStack()
        name = context.get('name', UNDEFINED)
        lis = context.get('lis', UNDEFINED)
        __M_writer = context.writer()
        runtime._include_file(context, 'base', _template_uri)
        __M_writer('\nHello ')
        __M_writer(str(name.upper()))
        __M_writer('!\n')
        loop = __M_loop._enter(lis)
        try:
            for i in loop:
                if i != 5:
                    __M_writer('        <li>')
                    __M_writer(str(loop.index))
                    __M_writer(':')
                    __M_writer(str(i))
                    __M_writer('</li>\n')
        finally:
            loop = __M_loop._exit()
        __M_writer('\n')
        __M_writer('\n')

        x = 'lyt'
        x.upper()

        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(
            __M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key])
                              for __M_key in ['x']
                              if __M_key in __M_locals_builtin_stored]))
        __M_writer('\n')
        __M_writer(str(x))
        return ''
    finally:
        context.caller_stack._pop_frame()