def render_main(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def main(): return render_main(context) request = context.get('request', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 3 __M_writer('\r\n') # SOURCE LINE 4 __M_writer('\r\n\r\n') # SOURCE LINE 6 from base_app.user_util import manager_check, employee_check isEmployee = employee_check(request.user) isManager = manager_check(request.user) # SOURCE LINE 12 __M_writer('\r\n\r\n\r\n\r\n\r\n<div id="carousel-example-generic" class="carousel slide " data-ride="carousel">\r\n <!-- Indicators -->\r\n <ol class="carousel-indicators">\r\n <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>\r\n <li data-target="#carousel-example-generic" data-slide-to="1"></li>\r\n <li data-target="#carousel-example-generic" data-slide-to="2"></li>\r\n </ol>\r\n\r\n <!-- Wrapper for slides -->\r\n <div class="carousel-inner "> <!-- Start Carousel Inner -->\r\n <div class="item active"> <!-- Start Item -->\r\n <img src="/static/homepage/images/e2.jpg" alt="Digital SLR">\r\n <div class="carousel-caption">\r\n <div class=\'box-semi\'>\r\n <br>\r\n <br>\r\n <div class=\'jumbo\'>Welcome!</div>\r\n <p class="lead">Serving you since 1990, we know how to serve our customers! MyStuff carries a large selection of cameras, accessories, lighting setups, bags and cases.</p>\r\n <br/>\r\n <ul class=\'list list-inline\'>\r\n <li><a href=\'/locations/\' class=\'btn btn-primary btn-lg\'><span class="glyphicon glyphicon-home"></span> Locations</a></li>\r\n <li><a href=\'/catalog/category/\' class=\'btn btn-success btn-lg\'>Shop</a></li>\r\n </ul>\r\n <br/>\r\n </div>\r\n </div>\r\n </div> <!-- End Item -->\r\n <div class="item"> <!-- Start Item -->\r\n <img src="/static/homepage/images/e3.jpg" alt="Rentals">\r\n <div class="carousel-caption"> \r\n <div class=\'box-semi\'>\r\n <br>\r\n <br>\r\n <div class=\'jumbo\'>Rentals</div>\r\n\r\n <p class="lead">Cameras, Lenses, Lighting and Accessories. <br/>\r\n Come into one of our locations today to rent!</p>\r\n <br/>\r\n <ul class=\'list list-inline\'>\r\n <li><a href=\'/locations/\' class=\'btn btn-primary btn-lg\'><span class="glyphicon glyphicon-home"></span> Locations</a></li>\r\n <li><a href=\'/catalog/rentals/\' class=\'btn btn-success btn-lg\'>Rentals</a></li>\r\n </ul>\r\n <br/>\r\n </div>\r\n </div>\r\n </div> <!-- End Item -->\r\n <div class="item"> <!-- Start Item -->\r\n <img src="/static/homepage/images/e1.jpg" alt="Repairs">\r\n <div class="carousel-caption">\r\n <div class=\'box-semi\'>\r\n <br>\r\n <br>\r\n <div class=\'jumbo\'>Nikon 1 V2</div>\r\n <p class="lead">For creativity that has no limits.<br/>\r\n Exceptional speed. Exceptional performance. Exceptional price.</p>\r\n <br/>\r\n <ul class=\'list list-inline\'>\r\n <li><a href=\'/catalog/inventory/100025\' class=\'btn btn-primary btn-lg\'>View</a></li>\r\n <li><a href=\'/catalog/category/99991\' class=\'btn btn-success btn-lg\'>Cameras</a></li>\r\n </ul>\r\n <br/>\r\n </div>\r\n </div>\r\n </div> <!-- End Item -->\r\n </div> <!-- End Carousel Inner -->\r\n</div> <!-- End Carousel -->\r\n\r\n<br/>\r\n\r\n<div class=\'container-fluid\'>\r\n <div class=\'row text-center\'>\r\n <div class=\'col-md-1\'></div>\r\n\r\n <div class=\'col-md-2\'>\r\n <a href="/catalog/category/99991/">\r\n <div class="panel panel-default">\r\n <div class="panel-body">\r\n <img src="/static/catalog/images/products/nikon1v2.jpg" alt="Cameras">\r\n <br/><br/>\r\n <p class="lead">Cameras</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-2\'>\r\n <a href="/catalog/category/99992/">\r\n <div class="panel panel-default">\r\n <div class="panel-body">\r\n <img src="/static/catalog/images/products/nikonlens1.jpg" alt="Lenses">\r\n <br/><br/>\r\n <p class="lead">Lenses</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-2\'>\r\n <a href="/catalog/category/99993/">\r\n <div class="panel panel-default">\r\n <div class="panel-body">\r\n <img src="/static/catalog/images/products/light1.png" alt="Lighting">\r\n <br/><br/>\r\n <p class="lead">Lighting</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-2\'>\r\n <a href="/catalog/category/99994/">\r\n <div class="panel panel-default">\r\n <div class="panel-body">\r\n <img src="/static/catalog/images/products/tripod1.jpg" alt="Tripod">\r\n <br/><br/>\r\n <p class="lead">Tripods</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-2\'>\r\n <a href="/catalog/category/99995/">\r\n <div class="panel panel-default">\r\n <div class="panel-body">\r\n <img src="/static/catalog/images/products/bag1.jpg" alt="Bags & Cases">\r\n <br/><br/>\r\n <p class="lead">Cases</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-1\'></div>\r\n </div>\r\n\r\n\r\n <div class="vertical_spacer6"></div>\r\n\r\n<!-- START FEATURED PRODUCTS -->\r\n <div class=\'row \'>\r\n <div class=\'col-md-1\'></div>\r\n <div class=\'col-md-10\'> <!-- Open Column -->\r\n <div class="panel panel-primary"> <!-- Featured Products Panel -->\r\n <div class="panel-heading"><strong>Featured Products</strong></div>\r\n <div class="panel-body text-center"> <!-- Featured Products Panel Body -->\r\n <br/>\r\n\r\n <div class=\'container-fluid\'> <!-- Feat Products Container -->\r\n <div class=\'row\'> <!-- Feat Products Row -->\r\n\r\n <div class=\'col-md-3\'>\r\n <a href="/catalog/inventory/100022/">\r\n <div class="panel panel-default">\r\n <div class="panel-body feat-product">\r\n <img src="/static/catalog/images/products/canont5.jpg" alt="Canon Eos T5">\r\n <br/><br/>\r\n <p class=\'lead\'>Canon Eos T5</p>\r\n <p class=\'black\'>The EOS Rebel T5 has an 18.0 Megapixel CMOS...</p>\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-3\'>\r\n <a href="/catalog/inventory/100027/">\r\n <div class="panel panel-default">\r\n <div class="panel-body feat-product">\r\n <img class=\'xsimg\' src="/static/catalog/images/products/nikond4.jpg" alt="Bags & Cases">\r\n <br/><br/>\r\n <p class="lead">Nikon D4</p>\r\n This new flagship D-SLR offers speed and accuracy...\r\n </div>\r\n </div>\r\n </a> \r\n </div>\r\n\r\n <div class=\'col-md-3\'>\r\n <a href="/catalog/inventory/100025/">\r\n <div class="panel panel-default">\r\n <div class="panel-body feat-product">\r\n <img src="/static/catalog/images/products/nikon1v2.jpg" alt="Nikon 1 v2">\r\n <br/><br/>\r\n <p class="lead">Nikon 1 v2</p>\r\n Introducing Nikon 1 V2, with the exceptional speed...\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n <div class=\'col-md-3\'>\r\n <a href="/catalog/inventory/100026/">\r\n <div class="panel panel-default">\r\n <div class="panel-body feat-product">\r\n <img src="/static/catalog/images/products/nikond50.jpg" alt="Bags & Cases">\r\n <br/><br/>\r\n <p class="lead">Nikon D50</p>\r\n Nikon\'s D50 interchangeable-lens digital SLR camera...\r\n </div>\r\n </div>\r\n </a>\r\n </div>\r\n\r\n </div> <!-- End Feat Products Row -->\r\n </div> <!-- End Feat Products Container -->\r\n\r\n </div> <!-- End Featured Products Panel Body -->\r\n </div> <!-- End Featured Products Panel -->\r\n </div> <!-- Close Column -->\r\n <div class=\'col-md-1\'></div>\r\n</div>\r\n<!-- END FEATURED PRODUCTS -->\r\n\r\n\r\n\r\n<div class="vertical_spacer6"></div>\r\n<div class="vertical_spacer6"></div>\r\n<div class="vertical_spacer6"></div>\r\n<div class="vertical_spacer6"></div>\r\n\r\n') return '' finally: context.caller_stack._pop_frame()
def render_left_side(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: request = context.get('request', UNDEFINED) def left_side(): return render_left_side(context) __M_writer = context.writer() # SOURCE LINE 9 __M_writer(' ') __M_writer('\r\n\r\n ') # SOURCE LINE 11 from base_app.user_util import manager_check isManager = manager_check(request.user) # SOURCE LINE 14 __M_writer('\r\n\r\n') # SOURCE LINE 16 if isManager == True: # SOURCE LINE 17 __M_writer(" <h4 class='extra-padding'>") __M_writer(str(request.user.first_name)) __M_writer(' ') __M_writer(str(request.user.last_name)) __M_writer('</h4>\r\n <ul class="nav nav-sidebar">\r\n <li><a href="/manager/dash/"><strong>Dashboard</strong></a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchinventory/"><strong>Inventory</strong></a></li>\r\n <li><a href="/manager/newcatalogitem/"> New Catalog Item</a></li>\r\n <li><a href="/manager/newserializeditem/"> New Serialized Item</a></li>\r\n </ul>\r\n \r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchusers/"><strong>Users</strong></a></li>\r\n <li><a href="/account/newuser/"> New User</a></li>\r\n <li><a href="/account/newemployee/"> New Employee</a></li>\r\n <li><a href="/manager/commissions/"> Commissions</a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchstores/"><strong>Stores</strong></a></li>\r\n <li><a href="/manager/newstore/"> New Store</a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchinventory/#Rental"><strong>Rentals</strong></a></li>\r\n <li><a href="/manager/returns/"> Returns</a></li>\r\n <li><a href="/manager/laterentals/"> Outstanding Rentals</a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/repairs/"><strong>Repairs</strong></a></li>\r\n <li><a href="/manager/newrepair/"> New Repair</a></li>\r\n <li><a href="/manager/repairs/"> Checkout Repair</a></li>\r\n </ul>\r\n') # SOURCE LINE 51 else: # SOURCE LINE 52 __M_writer(" <h4 class='extra-padding'>") __M_writer(str(request.user.first_name)) __M_writer(' ') __M_writer(str(request.user.last_name)) __M_writer('</h4>\r\n <ul class="nav nav-sidebar">\r\n <li><a href="/manager/dash/"><strong>Dashboard</strong></a></li>\r\n </ul>\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchinventory/"><strong>Inventory</strong></a></li>\r\n <li><a href="/manager/newserializeditem/"> New Serialized Item</a></li>\r\n </ul>\r\n \r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchusers/"><strong>Users</strong></a></li>\r\n <li><a href="/account/newuser/"> New User</a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/searchinventory/#Rental"><strong>Rentals</strong></a></li>\r\n <li><a href="/manager/returns/"> Returns</a></li>\r\n </ul>\r\n\r\n <ul class="nav nav-sidebar">\r\n <li class="active"><a href="/manager/repairs/"><strong>Repairs</strong></a></li>\r\n <li><a href="/manager/newrepair/"> New Repair</a></li>\r\n <li><a href="/manager/repairs/"> Checkout Repair</a></li>\r\n </ul>\r\n') # SOURCE LINE 77 __M_writer(' </div>\r\n \r\n ') return '' finally: context.caller_stack._pop_frame()
def render_shopping_cart_navigation_option(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) def shopping_cart_navigation_option(): return render_shopping_cart_navigation_option(context) request = context.get('request', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 73 __M_writer(' ') __M_writer('\r\n\r\n <li>\r\n <a id=\'cart_button\' href="#">\r\n <span class="glyphicon glyphicon-shopping-cart"></span> MY CART\r\n\r\n ') # SOURCE LINE 79 from base_app.user_util import manager_check, employee_check isEmployee = employee_check(request.user) isManager = manager_check(request.user) cart = request.session.get('cart', {}) rent = request.session.get('rent', {}) repair = request.session.get('repair', {}) cart_length = len(cart.keys()) + len(rent.keys()) + len(repair.keys()) # SOURCE LINE 90 __M_writer('\r\n\r\n') # SOURCE LINE 92 if cart_length !=0: # SOURCE LINE 93 __M_writer(' <span id=\'cart_length\' class="badge alert-custom">') __M_writer(str(cart_length)) __M_writer('</span>\r\n') # SOURCE LINE 95 __M_writer(' </a>\r\n </li>\r\n \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) def shopping_cart_navigation_option(): return render_shopping_cart_navigation_option(context._locals(__M_locals)) self = context.get('self', UNDEFINED) len = context.get('len', UNDEFINED) request = context.get('request', UNDEFINED) def main(): return render_main(context._locals(__M_locals)) def top(): return render_top(context._locals(__M_locals)) __M_writer = context.writer() # SOURCE LINE 4 __M_writer('\r\n') # SOURCE LINE 5 __M_writer('\r\n') # SOURCE LINE 6 static_renderer = static_files.StaticRenderer(self) __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 ['static_renderer'] if __M_key in __M_locals_builtin_stored])) __M_writer('\r\n\r\n<!DOCTYPE html>\r\n<html>\r\n <meta charset="UTF-8">\r\n\r\n <head>\r\n <title>MyStuff Digital Life My Way</title>\r\n <meta name=\'viewport\' content=\'width=device-width, initial-scale=1.0\'>\r\n <meta name="description" content="MyStuff Digital Life My Way offers the best digital cameras, film cameras, lenses, accessories, rentals and repairs."></meta>\r\n <meta name="keywords" content="Camera, film, rental, repair, digital photography, film photography"></meta>\r\n\r\n <link rel="icon" type="image/x-icon" href="/static/base_app/images/favicon.ico"> \r\n <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>\r\n\r\n \r\n') # SOURCE LINE 23 __M_writer(' ') __M_writer('\r\n ') # SOURCE LINE 24 __M_writer(str( global_static.SITE_WIDE_CSS )) __M_writer('\r\n ') # SOURCE LINE 25 __M_writer(str( global_static.SITE_WIDE_JS )) __M_writer('\r\n\r\n') # SOURCE LINE 28 __M_writer(' ') __M_writer(str( static_renderer.get_template_css(request, context) )) __M_writer('\r\n\r\n </head>\r\n\r\n <body>\r\n\r\n ') # SOURCE LINE 34 from base_app.user_util import manager_check, employee_check isEmployee = employee_check(request.user) isManager = manager_check(request.user) __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 ['manager_check','isManager','employee_check','isEmployee'] if __M_key in __M_locals_builtin_stored])) # SOURCE LINE 40 __M_writer('\r\n\r\n\r\n\r\n <div id="fb-root"></div>\r\n\r\n <nav class="navbar navbar-default" role="navigation">\r\n <!-- Brand and toggle get grouped for better mobile display -->\r\n <div class="navbar-header">\r\n <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">\r\n <span class="sr-only">Toggle navigation</span>\r\n <span class="icon-bar"></span>\r\n <span class="icon-bar"></span>\r\n <span class="icon-bar"></span>\r\n </button>\r\n <a class="navbar-brand" href="/index/" title="Home"><img src="/static/homepage/images/camera_icon.png" width="90" /></a>\r\n <a class="navbar-brand-custom" href="/index/">My Stuff - Digital Life My Way</a>\r\n\r\n </div>\r\n\r\n <!-- Collect the nav links, forms, and other content for toggling -->\r\n<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">\r\n\r\n <ul class="nav navbar-nav navbar-right">\r\n <li>\r\n <form class="navbar-form navbar-left" role="form" method ="GET" action=\'/catalog/category/\'>\r\n <div class="form-group">\r\n <input type="text" name=\'search\' class="form-control" placeholder="Search...">\r\n </div>\r\n <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>\r\n </form>\r\n </li>\r\n <!--placing most overhead options in a block prevents managers from seeing unnecessary items-->\r\n ') if 'parent' not in context._data or not hasattr(context._data['parent'], 'shopping_cart_navigation_option'): context['self'].shopping_cart_navigation_option(**pageargs) # SOURCE LINE 98 __M_writer('\r\n\r\n') # SOURCE LINE 100 if request.user.is_anonymous() == True: # SOURCE LINE 101 __M_writer(" <li>\r\n <a id='login_button' href='#'>\r\n LOG IN\r\n </a></li>\r\n\r\n") # SOURCE LINE 106 else: # SOURCE LINE 107 __M_writer(' <li>\r\n <a href="#" class="dropdown-toggle" data-toggle="dropdown">') # SOURCE LINE 108 __M_writer(str(request.user.username)) __M_writer(' <b class="caret"></b></a>\r\n <ul class="dropdown-menu">\r\n') # SOURCE LINE 110 if isEmployee == True: # SOURCE LINE 111 __M_writer(' <li><a href="/manager/dash/"><span class=\'glyphicon glyphicon-globe\'></span> DASHBOARD</a></li>\r\n <li><a href="/manager/employee/') # SOURCE LINE 112 __M_writer(str(request.user.id)) __M_writer('"><span class=\'glyphicon glyphicon-edit\'></span> MY ACCOUNT</a></li>\r\n') # SOURCE LINE 113 else: # SOURCE LINE 114 __M_writer(' <li><a href="/account/myorders/"><span class=\'glyphicon glyphicon-inbox\'></span> MY ORDERS</a></li>\r\n <li><a href="/account/myrentals/"><span class=\'glyphicon glyphicon-camera\'></span> MY RENTALS</a></li>\r\n <li><a href="/account/myrepairs/"><span class=\'glyphicon glyphicon-wrench\'></span> MY REPAIRS</a></li>\r\n <li><a href="/account/user/') # SOURCE LINE 117 __M_writer(str(request.user.id)) __M_writer('"><span class=\'glyphicon glyphicon-edit\'></span> MY ACCOUNT</a></li>\r\n') # SOURCE LINE 119 __M_writer(' <li><a href="/account/logout/"><span class=\'glyphicon glyphicon-log-out\'></span> LOGOUT</a></li>\r\n </ul>\r\n\r\n </li>\r\n\r\n') # SOURCE LINE 125 __M_writer('\r\n </ul>\r\n\r\n \r\n </div><!-- /.navbar-collapse -->\r\n</nav>\r\n \r\n\r\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'top'): context['self'].top(**pageargs) # SOURCE LINE 134 __M_writer('\r\n\r\n\r\n\r\n\r\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'main'): context['self'].main(**pageargs) # SOURCE LINE 141 __M_writer(' \r\n\r\n') # SOURCE LINE 143 __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 [] if __M_key in __M_locals_builtin_stored])) __M_writer('\r\n\r\n\r\n\r\n\r\n<!-- Footer-->\r\n\r\n<footer>\r\n \r\n\r\n <div class="container">\r\n <div class="row">\r\n <div class="col-md-4">\r\n <ul class="list-unstyled">\r\n <li class="title">Home</li>\r\n <li><a href="/account/newuser/">New Account</a></li>\r\n <li><a href="/catalog/category">Search Products</a></li>\r\n </ul>\r\n </div>\r\n <div class="col-md-4">\r\n <ul class="list-unstyled">\r\n <li class="title">About</li>\r\n <li><a href="/about/">About Us</a></li>\r\n <li><a href="/locations/">Locations</a></li>\r\n </ul>\r\n </div>\r\n <div class="col-md-3">\r\n <ul class="list-unstyled">\r\n <li class="title">Help</li>\r\n <li><a href="/contact/">Contact Us</a></li>\r\n <li><a href="/terms/">Rental Policy</a></li>\r\n <li><a href="/account/newuser/">Repair Terms</a></li>\r\n\r\n </ul>\r\n </div>\r\n\r\n <div class="col-md-1">\r\n <ul class="list-unstyled">\r\n <li><a href="https://www.facebook.com/digitallifemyway"><img src="/static/homepage/images/facebook.png" /></a></li>\r\n <li><a href="https://plus.google.com/"><img src="/static/homepage/images/google.png" /></a></li>\r\n <li><a href="https://www.twitter.com/"><img src="/static/homepage/images/twitter.png" /></a></li>\r\n </ul>\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n</footer> \r\n \r\n\r\n\r\n \r\n\r\n \r\n') # SOURCE LINE 199 __M_writer(' ') __M_writer(str( static_renderer.get_template_js(request, context) )) __M_writer('\r\n \r\n </body>\r\n</html>\r\n') return '' finally: context.caller_stack._pop_frame()