def get_urls(self): # TODO: Add url for tax dashboard? tax_urls = get_edit_and_list_urls( url_prefix="^taxes/tax", view_template="E-Commerce.admin.modules.taxes.views.Tax%sView", name_template="tax.%s" ) tax_group_urls = get_edit_and_list_urls( url_prefix="^taxes/customer-tax-group", view_template="E-Commerce.admin.modules.taxes.views.CustomerTaxGroup%sView", name_template="customer_tax_group.%s" ) tax_class_urls = get_edit_and_list_urls( url_prefix="^taxes/tax-class", view_template="E-Commerce.admin.modules.taxes.views.TaxClass%sView", name_template="tax_class.%s" ) return tax_urls + tax_group_urls + tax_class_urls
def get_urls(self): return get_edit_and_list_urls( url_prefix="^suppliers", view_template="E-Commerce.admin.modules.suppliers.views.Supplier%sView", name_template="supplier.%s" ) + [admin_url( "^suppliers/delete/(?P<pk>\d+)/$", "E-Commerce.admin.modules.suppliers.views.SupplierDeleteView", name="supplier.delete", permissions=("supplier.delete",) ), ]
def get_urls(self): basket_campaign_urls = get_edit_and_list_urls( url_prefix="^campaigns/basket", view_template="E-Commerce.campaigns.admin_module.views.BasketCampaign%sView", name_template="basket_campaign.%s" ) coupon_urls = get_edit_and_list_urls( url_prefix="^campaigns/coupons", view_template="E-Commerce.campaigns.admin_module.views.Coupon%sView", name_template="coupon.%s" ) catalog_campaign_urls = get_edit_and_list_urls( url_prefix="^campaigns/catalog", view_template="E-Commerce.campaigns.admin_module.views.CatalogCampaign%sView", name_template="catalog_campaign.%s" ) if _show_catalog_campaigns_in_admin() else [] return basket_campaign_urls + catalog_campaign_urls + coupon_urls
def get_urls(self): return get_edit_and_list_urls( url_prefix="^carousels", view_template="E-Commerce.front.apps.carousel.admin_module.views.Carousel%sView", name_template="carousel.%s" ) + [ admin_url( "^carousel/(?P<pk>\d+)/delete/$", "E-Commerce.front.apps.carousel.admin_module.views.CarouselDeleteView", name="carousel.delete" ), ]
def get_urls(self): return [ admin_url( "^product-types/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.product_types.views.ProductTypeDeleteView", name="product_type.delete" ) ] + get_edit_and_list_urls( url_prefix="^product-types", view_template="E-Commerce.admin.modules.product_types.views.ProductType%sView", name_template="product_type.%s" )
def get_urls(self): return [ admin_url( "^service_provider/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.service_providers.views.ServiceProviderDeleteView", name="service_provider.delete" ) ] + get_edit_and_list_urls( url_prefix="^service_provider", view_template="E-Commerce.admin.modules.service_providers.views.ServiceProvider%sView", name_template="service_provider.%s" )
def get_urls(self): return [ admin_url( "^contact_group/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.contact_groups.views.ContactGroupDeleteView", name="contact_group.delete" ) ] + get_edit_and_list_urls( url_prefix="^contact_group", view_template="E-Commerce.admin.modules.contact_groups.views.ContactGroup%sView", name_template="contact_group.%s" )
def get_urls(self): return [ admin_url( "%s/(?P<pk>\d+)/delete/$" % self.url_prefix, self.view_template % "Delete", name=self.name_template % "delete" ) ] + get_edit_and_list_urls( url_prefix=self.url_prefix, view_template=self.view_template, name_template=self.name_template )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^xtheme/snippet", view_template="E-Commerce.xtheme.admin_module.views.Snippet%sView", name_template="xtheme_snippet.%s" ) + [ admin_url( "^xtheme/snippet/(?P<pk>\d+)/delete/$", "E-Commerce.xtheme.admin_module.views.SnippetDeleteView", name="xtheme_snippet.delete" ) ]
def get_urls(self): from E-Commerce.admin.urls import admin_url delete = admin_url( "^discounts_happy_hour/(?P<pk>\d+)/delete/$", "E-Commerce.discounts.admin.views.HappyHourDeleteView", name="discounts_happy_hour.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^discounts_happy_hour", view_template="E-Commerce.discounts.admin.views.HappyHour%sView", name_template="discounts_happy_hour.%s" )
def get_urls(self): from E-Commerce.admin.urls import admin_url delete = admin_url( "^labels/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.labels.views.LabelDeleteView", name="label.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^labels", view_template="E-Commerce.admin.modules.labels.views.Label%sView", name_template="label.%s" )
def get_urls(self): from E-Commerce.admin.urls import admin_url delete = admin_url( "^discounts_coupon_codes/(?P<pk>\d+)/delete/$", "E-Commerce.discounts.admin.views.CouponCodeDeleteView", name="discounts_coupon_codes.delete" ) return [delete] + get_edit_and_list_urls( url_prefix="^discounts_coupon_codes", view_template="E-Commerce.discounts.admin.views.CouponCode%sView", name_template="discounts_coupon_codes.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^tasks", view_template="E-Commerce.tasks.admin_module.views.Task%sView", name_template="task.%s" ) + [ admin_url( "^tasks/(?P<pk>\d+)/delete/$", "E-Commerce.tasks.admin_module.views.TaskDeleteView", name="task.delete" ), admin_url( "^tasks/(?P<pk>\d+)/set_status/$", "E-Commerce.tasks.admin_module.views.TaskSetStatusView", name="task.set_status" ), ]
def get_urls(self): return [ admin_url( "^categories/(?P<pk>\d+)/copy-visibility/$", "E-Commerce.admin.modules.categories.views.CategoryCopyVisibilityView", name="category.copy_visibility" ), admin_url( "^categories/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.categories.views.CategoryDeleteView", name="category.delete" ) ] + get_edit_and_list_urls( url_prefix="^categories", view_template="E-Commerce.admin.modules.categories.views.Category%sView", name_template="category.%s" )
def get_urls(self): return [ admin_url( "^products/(?P<pk>\d+)/delete/$", "E-Commerce.admin.modules.products.views.ProductDeleteView", name="shop_product.delete" ), admin_url( "^products/(?P<pk>\d+)/media/$", "E-Commerce.admin.modules.products.views.ProductMediaEditView", name="shop_product.edit_media" ), admin_url( "^products/(?P<pk>\d+)/media/add/$", "E-Commerce.admin.modules.products.views.ProductMediaBulkAdderView", name="shop_product.add_media" ), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "E-Commerce.admin.modules.products.views.ProductCrossSellEditView", name="shop_product.edit_cross_sell" ), admin_url( "^products/(?P<pk>\d+)/variation/$", "E-Commerce.admin.modules.products.views.ProductVariationView", name="shop_product.edit_variation" ), admin_url( "^products/(?P<pk>\d+)/package/$", "E-Commerce.admin.modules.products.views.ProductPackageView", name="shop_product.edit_package" ), admin_url( "^products/mass-edit/$", "E-Commerce.admin.modules.products.views.ProductMassEditView", name="shop_product.mass_edit" ), ] + get_edit_and_list_urls( url_prefix="^products", view_template="E-Commerce.admin.modules.products.views.Product%sView", name_template="shop_product.%s" )
def get_urls(self): return [ admin_url( "notify/script-item-editor/", "E-Commerce.notify.admin_module.views.script_item_editor", name="notify.script-item-editor" ), admin_url( "notify/script/content/(?P<pk>\d+)/", "E-Commerce.notify.admin_module.views.EditScriptContentView", name="notify.script.edit-content" ), admin_url( "notify/mark-read/(?P<pk>\d+)/$", self.mark_notification_read_view, name="notify.mark-read" ), admin_url( "notify/script-template/", "E-Commerce.notify.admin_module.views.ScriptTemplateView", name="notify.script-template" ), admin_url( "notify/script-template-config/(?P<id>.+)/", "E-Commerce.notify.admin_module.views.ScriptTemplateConfigView", name="notify.script-template-config" ), admin_url( "notify/script-template-edit/(?P<pk>.+)/", "E-Commerce.notify.admin_module.views.ScriptTemplateEditView", name="notify.script-template-edit" ), ] + get_edit_and_list_urls( url_prefix="^notify/script", view_template="E-Commerce.notify.admin_module.views.Script%sView", name_template="notify.script.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^task_type", view_template="E-Commerce.tasks.admin_module.views.TaskType%sView", name_template="task_type.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^manufacturers", view_template="E-Commerce.admin.modules.manufacturers.views.Manufacturer%sView", name_template="manufacturer.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^default-tax/rules", view_template="E-Commerce.default_tax.admin_module.views.TaxRule%sView", name_template="default_tax.tax_rule.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^attributes", view_template="E-Commerce.admin.modules.attributes.views.Attribute%sView", name_template="attribute.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^contact_group_price_display", view_template="E-Commerce.admin.modules.contact_group_price_display.views.ContactGroupPriceDisplay%sView", name_template="contact_group_price_display.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^order-status", view_template="E-Commerce.admin.modules.orders.views.OrderStatus%sView", name_template="order_status.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^display-units", view_template="E-Commerce.admin.modules.sales_units.views.DisplayUnit%sView", name_template="display_unit.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^permission-groups", view_template="E-Commerce.admin.modules.permission_groups.views.PermissionGroup%sView", name_template="permission_group.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^currencies", view_template="E-Commerce.admin.modules.currencies.views.Currency%sView", name_template="currency.%s" )