diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3bfabfc..4fffde7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,15 +22,12 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: 3.x - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + pip install poetry + - name: Build and publish package + users: JRubics/poetry-publish@v1.8 with: - user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index bfd4899..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -# Changelog - -## 0.0.8 - -Added rules. - -## 0.0.1 - -Initial release. diff --git a/README.md b/README.md index e26b537..6566cca 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,51 @@ ![djLint Logo](https://raw.githubusercontent.com/Riverside-Healthcare/djlint/master/docs/_static/icon.png) -Simple html template linter and reformatter to find common formatting issues. djLint is intended as a django template linter and django template formatter. +Find common formatting issues and *reformat* HTML templates. + + +

+ Django + Jinja + Nunjucks + Handlebars +

Ps, ```--check``` it out on Jinja and Handlebar templates as well! -[![codecov](https://codecov.io/gh/Riverside-Healthcare/djlint/branch/master/graph/badge.svg?token=eNTG721BAA)](https://codecov.io/gh/Riverside-Healthcare/djlint) [![test](https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml/badge.svg)](https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dba6338b0e7a4de896b45b382574f369)](https://www.codacy.com/gh/Riverside-Healthcare/djlint/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Riverside-Healthcare/djlint&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/5febe4111a36c7e0d2ed/maintainability)](https://codeclimate.com/github/Riverside-Healthcare/djlint/maintainability) [![Downloads](https://pepy.tech/badge/djlint)](https://pepy.tech/project/djlint) +[![codecov](https://codecov.io/gh/Riverside-Healthcare/djlint/branch/master/graph/badge.svg?token=eNTG721BAA)](https://codecov.io/gh/Riverside-Healthcare/djlint) [![test](https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml/badge.svg)](https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dba6338b0e7a4de896b45b382574f369)](https://www.codacy.com/gh/Riverside-Healthcare/djlint/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Riverside-Healthcare/djlint&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/5febe4111a36c7e0d2ed/maintainability)](https://codeclimate.com/github/Riverside-Healthcare/djlint/maintainability) [![Downloads](https://pepy.tech/badge/djlint)](https://pepy.tech/project/djlint)[![chat](https://img.shields.io/badge/chat-discord-green)](https://discord.gg/taghAqebzU) ## Documentation Read the [documentation](https://djlint.readthedocs.io) - ## Installation and Usage -djLint can be installed with `pip install djlint`, and is easy to run: +**djLint** can be installed with `pip install djlint`, and is easy to run: ```sh # to lint a directory @@ -35,7 +67,7 @@ djlint /path --reformat --quiet Add a badge to your projects ```readme.md```: ```md -[![Code style: black](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://github.com/Riverside-Healthcare/djlint) +[![Code style: djlint](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://github.com/Riverside-Healthcare/djlint) ``` Add a badge to your ```readme.rst```: @@ -49,6 +81,6 @@ Looks like this: [![djlint](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://github.com/Riverside-Healthcare/djlint) -## Contributing - Please Help! +## Contributing -Checkout the [issue](https://github.com/Riverside-Healthcare/djlint/issues) list and help where you can! +Checkout the [issue](https://github.com/Riverside-Healthcare/djlint/issues) list and help where you can. diff --git a/docs/_static/icon-square.indd b/docs/_static/icon-square.indd new file mode 100644 index 0000000..40edaf8 Binary files /dev/null and b/docs/_static/icon-square.indd differ diff --git a/docs/_static/icon-square.png b/docs/_static/icon-square.png new file mode 100644 index 0000000..b9074fc Binary files /dev/null and b/docs/_static/icon-square.png differ diff --git a/docs/conf.py b/docs/conf.py index c78186d..e200932 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,7 +12,7 @@ project = "djlint" copyright = "2021, Riverside Healthcare" author = "Christopher Pickering" -release = "0.3.4" +release = "0.3.5" version = release # -- General configuration --------------------------------------------------- diff --git a/docs/djlint/changelog.rst b/docs/djlint/changelog.rst new file mode 100644 index 0000000..9894171 --- /dev/null +++ b/docs/djlint/changelog.rst @@ -0,0 +1,41 @@ +Changelog +========= + +0.3.5 +----- +- Added support for more Django blocks +- Added support for custom blocks +- Added support for config in ``pyproject.toml`` + +0.3.4 +----- +- Fixed Nunjucks spaceless tag ``-%}`` format + +0.3.3 +----- +- Allowed short ``div`` tags to be single line + +0.3.2 +----- +- Fixed Django comment formatting +- Ignored textarea from formatting + +0.3.1 +----- +- Updated attribute formatting regex +- Updated lint rule W010 + +0.3.0 +----- +- Changed exit code to 1 if there were any formatting changes +- Added support for Jinja ``asset`` tags + +0.2.9 +----- +- Updated W018 regex +- Removed duplicate lint messages +- Updated E001 for Handlebars + +0.2.8 +----- +- Fixed progress bar error for old Click version diff --git a/docs/djlint/configuration.rst b/docs/djlint/configuration.rst index 2c09494..161a20f 100644 --- a/docs/djlint/configuration.rst +++ b/docs/djlint/configuration.rst @@ -1,7 +1,10 @@ Configuration ============= -Linter rules can easily be ignored with the `-i` or `--ignore` flag. +Ignoring Linter Rules +--------------------- + +Linter rules can be ignored with the `-i` or `--ignore` flag. For example: @@ -10,7 +13,15 @@ For example: djlint src -i "W013,W014" -Help needed! ------------- +Pyproject.toml Configuration +---------------------------- -Ideally we'd also like to be able to ignore rules through pyproject.toml/tox.ini/setup.cfg. +Configuration options can also be added to your projects `pyproject.toml` file. Command line args will always override any settings in `pyproject.toml`. + +.. code:: toml + + [tool.djlint] + ignore = "W013" + extension = "html.dj" + custom_blocks = "toc,example" # custom code blocks {% toc %}...{% endtoc %} + indent = " " # change indentation level diff --git a/docs/djlint/formatter.rst b/docs/djlint/formatter.rst index e43e05c..dd3df23 100644 --- a/docs/djlint/formatter.rst +++ b/docs/djlint/formatter.rst @@ -3,11 +3,9 @@ Formatter djLint's formatter will take sloppy html templates and make it look pretty nice! -For an example of what the output will be, check out the `/tests/ `_ folder to see over 300 **formatted** templates from the top django and flask projects. - Before ------ -.. code :: html +.. code :: {% load admin_list %} {% load i18n %}

diff --git a/docs/djlint/usage.rst b/docs/djlint/usage.rst index ab4b817..c1a775e 100644 --- a/docs/djlint/usage.rst +++ b/docs/djlint/usage.rst @@ -18,10 +18,10 @@ Linter Usage # with custom extensions djlint src -e html.dj -Reformatter Usage +Formatter Usage ----------------- -Reforamtting is a beta product. Check the output before applying changes. +Foramtting is a beta tool. ``--check`` the output before applying changes. Reformatting does not work with long json/html embedded into attribute data. @@ -29,16 +29,16 @@ To check what may change in formatting run: .. code:: sh - djlint src --check --ignore="W013,W014" + djlint . --check --ignore="W013,W014" -To reformat run: +To format code run: .. code:: sh - djlint src --reformat + djlint . --reformat CLI Args -------------- +-------- .. code:: sh diff --git a/docs/index.rst b/docs/index.rst index 9265adf..05a8921 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,7 +1,7 @@ .. djlint documentation master file, created by sphinx-quickstart on Tue Jul 27 15:28:35 2021. -Html Template Linter and Formatter +HTML Template Linter and Formatter ================================== .. toctree:: @@ -15,21 +15,57 @@ Html Template Linter and Formatter djlint/rules djlint/formatter djlint/configuration + djlint/changelog .. toctree:: :hidden: GitHub ↪ PyPI ↪ + Discord ↪ -Simple html template linter and reformatter to find common formatting issues with and *reformat* django html templates +Find common formatting issues and *reformat* HTML templates. -Ps, ``--check`` it out on Jinja and Handlebar templates as well! +.. raw:: html + +

+ Django + Jinja + Nunjucks + Handlebars +

+ +Ps, ``--check`` it out on other templates as well! .. image:: /_static/demo.gif -|codecov| |test| |Codacy Badge| |Maintainability| |Downloads| +|codecov| |test| |Codacy Badge| |Maintainability| |Downloads| |chat| .. note:: djLint is not an html parser or syntax validator. @@ -40,7 +76,7 @@ Add a badge to your projects `readme.md`: .. code-block:: md - [![Code style: black](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://github.com/Riverside-Healthcare/djlint) + [![Code style: djlint](https://img.shields.io/badge/html%20style-djlint-blue.svg)](https://github.com/Riverside-Healthcare/djlint) Add a badge to your `readme.rst`: @@ -72,3 +108,5 @@ Checkout the `issue `_ li :target: https://codeclimate.com/github/Riverside-Healthcare/djlint/maintainability .. |Downloads| image:: https://img.shields.io/pypi/dm/djlint.svg :target: https://pypi.org/project/djlint/ +.. |chat| image:: https://discord.gg/taghAqebzU + :target: https://img.shields.io/badge/chat-discord-green diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..2963c1c --- /dev/null +++ b/poetry.lock @@ -0,0 +1,429 @@ +[[package]] +name = "atomicwrites" +version = "1.4.0" +description = "Atomic file writes." +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" + +[[package]] +name = "attrs" +version = "21.2.0" +description = "Classes Without Boilerplate" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[package.extras] +dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] +docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] +tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] +tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] + +[[package]] +name = "click" +version = "8.0.1" +description = "Composable command line interface toolkit" +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} +importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} + +[[package]] +name = "colorama" +version = "0.4.4" +description = "Cross-platform colored terminal text." +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "coverage" +version = "5.5" +description = "Code coverage measurement for Python" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" + +[package.extras] +toml = ["toml"] + +[[package]] +name = "importlib-metadata" +version = "4.8.1" +description = "Read metadata from Python packages" +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} +zipp = ">=0.5" + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] +perf = ["ipython"] +testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pep517", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"] + +[[package]] +name = "iniconfig" +version = "1.1.1" +description = "iniconfig: brain-dead simple config-ini parsing" +category = "dev" +optional = false +python-versions = "*" + +[[package]] +name = "packaging" +version = "21.0" +description = "Core utilities for Python packages" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +pyparsing = ">=2.0.2" + +[[package]] +name = "pluggy" +version = "1.0.0" +description = "plugin and hook calling mechanisms for python" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "py" +version = "1.10.0" +description = "library with cross-python path, ini-parsing, io, code, log facilities" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" + +[[package]] +name = "pyparsing" +version = "2.4.7" +description = "Python parsing module" +category = "dev" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" + +[[package]] +name = "pytest" +version = "6.2.5" +description = "pytest: simple powerful testing with Python" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} +attrs = ">=19.2.0" +colorama = {version = "*", markers = "sys_platform == \"win32\""} +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=0.12,<2.0" +py = ">=1.8.2" +toml = "*" + +[package.extras] +testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] + +[[package]] +name = "pytest-cov" +version = "2.12.1" +description = "Pytest plugin for measuring coverage." +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[package.dependencies] +coverage = ">=5.2.1" +pytest = ">=4.6" +toml = "*" + +[package.extras] +testing = ["fields", "hunter", "process-tests", "six", "pytest-xdist", "virtualenv"] + +[[package]] +name = "pyyaml" +version = "5.4.1" +description = "YAML parser and emitter for Python" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" + +[[package]] +name = "regex" +version = "2021.8.28" +description = "Alternative regular expression module, to replace re." +category = "main" +optional = false +python-versions = "*" + +[[package]] +name = "toml" +version = "0.10.2" +description = "Python Library for Tom's Obvious, Minimal Language" +category = "dev" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" + +[[package]] +name = "tomlkit" +version = "0.7.2" +description = "Style preserving TOML library" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "tqdm" +version = "4.62.2" +description = "Fast, Extensible Progress Meter" +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[package.extras] +dev = ["py-make (>=0.1.0)", "twine", "wheel"] +notebook = ["ipywidgets (>=6)"] +telegram = ["requests"] + +[[package]] +name = "typing-extensions" +version = "3.10.0.2" +description = "Backported and Experimental Type Hints for Python 3.5+" +category = "main" +optional = false +python-versions = "*" + +[[package]] +name = "zipp" +version = "3.5.0" +description = "Backport of pathlib-compatible object wrapper for zip files" +category = "main" +optional = false +python-versions = ">=3.6" + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] +testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] + +[metadata] +lock-version = "1.1" +python-versions = "^3.6" +content-hash = "0acb2ff4e9339c8cbcb21b6be1c0da5c0356b582cc60766a9dfd3b7b7c718ca6" + +[metadata.files] +atomicwrites = [ + {file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"}, + {file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"}, +] +attrs = [ + {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, + {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, +] +click = [ + {file = "click-8.0.1-py3-none-any.whl", hash = "sha256:fba402a4a47334742d782209a7c79bc448911afe1149d07bdabdf480b3e2f4b6"}, + {file = "click-8.0.1.tar.gz", hash = "sha256:8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"}, +] +colorama = [ + {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, + {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, +] +coverage = [ + {file = "coverage-5.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:b6d534e4b2ab35c9f93f46229363e17f63c53ad01330df9f2d6bd1187e5eaacf"}, + {file = "coverage-5.5-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:b7895207b4c843c76a25ab8c1e866261bcfe27bfaa20c192de5190121770672b"}, + {file = "coverage-5.5-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:c2723d347ab06e7ddad1a58b2a821218239249a9e4365eaff6649d31180c1669"}, + {file = "coverage-5.5-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:900fbf7759501bc7807fd6638c947d7a831fc9fdf742dc10f02956ff7220fa90"}, + {file = "coverage-5.5-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:004d1880bed2d97151facef49f08e255a20ceb6f9432df75f4eef018fdd5a78c"}, + {file = "coverage-5.5-cp27-cp27m-win32.whl", hash = "sha256:06191eb60f8d8a5bc046f3799f8a07a2d7aefb9504b0209aff0b47298333302a"}, + {file = "coverage-5.5-cp27-cp27m-win_amd64.whl", hash = "sha256:7501140f755b725495941b43347ba8a2777407fc7f250d4f5a7d2a1050ba8e82"}, + {file = "coverage-5.5-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:372da284cfd642d8e08ef606917846fa2ee350f64994bebfbd3afb0040436905"}, + {file = "coverage-5.5-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:8963a499849a1fc54b35b1c9f162f4108017b2e6db2c46c1bed93a72262ed083"}, + {file = "coverage-5.5-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:869a64f53488f40fa5b5b9dcb9e9b2962a66a87dab37790f3fcfb5144b996ef5"}, + {file = "coverage-5.5-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:4a7697d8cb0f27399b0e393c0b90f0f1e40c82023ea4d45d22bce7032a5d7b81"}, + {file = "coverage-5.5-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:8d0a0725ad7c1a0bcd8d1b437e191107d457e2ec1084b9f190630a4fb1af78e6"}, + {file = "coverage-5.5-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:51cb9476a3987c8967ebab3f0fe144819781fca264f57f89760037a2ea191cb0"}, + {file = "coverage-5.5-cp310-cp310-win_amd64.whl", hash = "sha256:c0891a6a97b09c1f3e073a890514d5012eb256845c451bd48f7968ef939bf4ae"}, + {file = "coverage-5.5-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:3487286bc29a5aa4b93a072e9592f22254291ce96a9fbc5251f566b6b7343cdb"}, + {file = "coverage-5.5-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:deee1077aae10d8fa88cb02c845cfba9b62c55e1183f52f6ae6a2df6a2187160"}, + {file = "coverage-5.5-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f11642dddbb0253cc8853254301b51390ba0081750a8ac03f20ea8103f0c56b6"}, + {file = "coverage-5.5-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:6c90e11318f0d3c436a42409f2749ee1a115cd8b067d7f14c148f1ce5574d701"}, + {file = "coverage-5.5-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:30c77c1dc9f253283e34c27935fded5015f7d1abe83bc7821680ac444eaf7793"}, + {file = "coverage-5.5-cp35-cp35m-win32.whl", hash = "sha256:9a1ef3b66e38ef8618ce5fdc7bea3d9f45f3624e2a66295eea5e57966c85909e"}, + {file = "coverage-5.5-cp35-cp35m-win_amd64.whl", hash = "sha256:972c85d205b51e30e59525694670de6a8a89691186012535f9d7dbaa230e42c3"}, + {file = "coverage-5.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:af0e781009aaf59e25c5a678122391cb0f345ac0ec272c7961dc5455e1c40066"}, + {file = "coverage-5.5-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:74d881fc777ebb11c63736622b60cb9e4aee5cace591ce274fb69e582a12a61a"}, + {file = "coverage-5.5-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:92b017ce34b68a7d67bd6d117e6d443a9bf63a2ecf8567bb3d8c6c7bc5014465"}, + {file = "coverage-5.5-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d636598c8305e1f90b439dbf4f66437de4a5e3c31fdf47ad29542478c8508bbb"}, + {file = "coverage-5.5-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:41179b8a845742d1eb60449bdb2992196e211341818565abded11cfa90efb821"}, + {file = "coverage-5.5-cp36-cp36m-win32.whl", hash = "sha256:040af6c32813fa3eae5305d53f18875bedd079960822ef8ec067a66dd8afcd45"}, + {file = "coverage-5.5-cp36-cp36m-win_amd64.whl", hash = "sha256:5fec2d43a2cc6965edc0bb9e83e1e4b557f76f843a77a2496cbe719583ce8184"}, + {file = "coverage-5.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:18ba8bbede96a2c3dde7b868de9dcbd55670690af0988713f0603f037848418a"}, + {file = "coverage-5.5-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:2910f4d36a6a9b4214bb7038d537f015346f413a975d57ca6b43bf23d6563b53"}, + {file = "coverage-5.5-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:f0b278ce10936db1a37e6954e15a3730bea96a0997c26d7fee88e6c396c2086d"}, + {file = "coverage-5.5-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:796c9c3c79747146ebd278dbe1e5c5c05dd6b10cc3bcb8389dfdf844f3ead638"}, + {file = "coverage-5.5-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:53194af30d5bad77fcba80e23a1441c71abfb3e01192034f8246e0d8f99528f3"}, + {file = "coverage-5.5-cp37-cp37m-win32.whl", hash = "sha256:184a47bbe0aa6400ed2d41d8e9ed868b8205046518c52464fde713ea06e3a74a"}, + {file = "coverage-5.5-cp37-cp37m-win_amd64.whl", hash = "sha256:2949cad1c5208b8298d5686d5a85b66aae46d73eec2c3e08c817dd3513e5848a"}, + {file = "coverage-5.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:217658ec7187497e3f3ebd901afdca1af062b42cfe3e0dafea4cced3983739f6"}, + {file = "coverage-5.5-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1aa846f56c3d49205c952d8318e76ccc2ae23303351d9270ab220004c580cfe2"}, + {file = "coverage-5.5-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:24d4a7de75446be83244eabbff746d66b9240ae020ced65d060815fac3423759"}, + {file = "coverage-5.5-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:d1f8bf7b90ba55699b3a5e44930e93ff0189aa27186e96071fac7dd0d06a1873"}, + {file = "coverage-5.5-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:970284a88b99673ccb2e4e334cfb38a10aab7cd44f7457564d11898a74b62d0a"}, + {file = "coverage-5.5-cp38-cp38-win32.whl", hash = "sha256:01d84219b5cdbfc8122223b39a954820929497a1cb1422824bb86b07b74594b6"}, + {file = "coverage-5.5-cp38-cp38-win_amd64.whl", hash = "sha256:2e0d881ad471768bf6e6c2bf905d183543f10098e3b3640fc029509530091502"}, + {file = "coverage-5.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d1f9ce122f83b2305592c11d64f181b87153fc2c2bbd3bb4a3dde8303cfb1a6b"}, + {file = "coverage-5.5-cp39-cp39-manylinux1_i686.whl", hash = "sha256:13c4ee887eca0f4c5a247b75398d4114c37882658300e153113dafb1d76de529"}, + {file = "coverage-5.5-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:52596d3d0e8bdf3af43db3e9ba8dcdaac724ba7b5ca3f6358529d56f7a166f8b"}, + {file = "coverage-5.5-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:2cafbbb3af0733db200c9b5f798d18953b1a304d3f86a938367de1567f4b5bff"}, + {file = "coverage-5.5-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:44d654437b8ddd9eee7d1eaee28b7219bec228520ff809af170488fd2fed3e2b"}, + {file = "coverage-5.5-cp39-cp39-win32.whl", hash = "sha256:d314ed732c25d29775e84a960c3c60808b682c08d86602ec2c3008e1202e3bb6"}, + {file = "coverage-5.5-cp39-cp39-win_amd64.whl", hash = "sha256:13034c4409db851670bc9acd836243aeee299949bd5673e11844befcb0149f03"}, + {file = "coverage-5.5-pp36-none-any.whl", hash = "sha256:f030f8873312a16414c0d8e1a1ddff2d3235655a2174e3648b4fa66b3f2f1079"}, + {file = "coverage-5.5-pp37-none-any.whl", hash = "sha256:2a3859cb82dcbda1cfd3e6f71c27081d18aa251d20a17d87d26d4cd216fb0af4"}, + {file = "coverage-5.5.tar.gz", hash = "sha256:ebe78fe9a0e874362175b02371bdfbee64d8edc42a044253ddf4ee7d3c15212c"}, +] +importlib-metadata = [ + {file = "importlib_metadata-4.8.1-py3-none-any.whl", hash = "sha256:b618b6d2d5ffa2f16add5697cf57a46c76a56229b0ed1c438322e4e95645bd15"}, + {file = "importlib_metadata-4.8.1.tar.gz", hash = "sha256:f284b3e11256ad1e5d03ab86bb2ccd6f5339688ff17a4d797a0fe7df326f23b1"}, +] +iniconfig = [ + {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, + {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, +] +packaging = [ + {file = "packaging-21.0-py3-none-any.whl", hash = "sha256:c86254f9220d55e31cc94d69bade760f0847da8000def4dfe1c6b872fd14ff14"}, + {file = "packaging-21.0.tar.gz", hash = "sha256:7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"}, +] +pluggy = [ + {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, + {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, +] +py = [ + {file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"}, + {file = "py-1.10.0.tar.gz", hash = "sha256:21b81bda15b66ef5e1a777a21c4dcd9c20ad3efd0b3f817e7a809035269e1bd3"}, +] +pyparsing = [ + {file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"}, + {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, +] +pytest = [ + {file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"}, + {file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"}, +] +pytest-cov = [ + {file = "pytest-cov-2.12.1.tar.gz", hash = "sha256:261ceeb8c227b726249b376b8526b600f38667ee314f910353fa318caa01f4d7"}, + {file = "pytest_cov-2.12.1-py2.py3-none-any.whl", hash = "sha256:261bb9e47e65bd099c89c3edf92972865210c36813f80ede5277dceb77a4a62a"}, +] +pyyaml = [ + {file = "PyYAML-5.4.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:3b2b1824fe7112845700f815ff6a489360226a5609b96ec2190a45e62a9fc922"}, + {file = "PyYAML-5.4.1-cp27-cp27m-win32.whl", hash = "sha256:129def1b7c1bf22faffd67b8f3724645203b79d8f4cc81f674654d9902cb4393"}, + {file = "PyYAML-5.4.1-cp27-cp27m-win_amd64.whl", hash = "sha256:4465124ef1b18d9ace298060f4eccc64b0850899ac4ac53294547536533800c8"}, + {file = "PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185"}, + {file = "PyYAML-5.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:6c78645d400265a062508ae399b60b8c167bf003db364ecb26dcab2bda048253"}, + {file = "PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4e0583d24c881e14342eaf4ec5fbc97f934b999a6828693a99157fde912540cc"}, + {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:72a01f726a9c7851ca9bfad6fd09ca4e090a023c00945ea05ba1638c09dc3347"}, + {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:895f61ef02e8fed38159bb70f7e100e00f471eae2bc838cd0f4ebb21e28f8541"}, + {file = "PyYAML-5.4.1-cp36-cp36m-win32.whl", hash = "sha256:3bd0e463264cf257d1ffd2e40223b197271046d09dadf73a0fe82b9c1fc385a5"}, + {file = "PyYAML-5.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:e4fac90784481d221a8e4b1162afa7c47ed953be40d31ab4629ae917510051df"}, + {file = "PyYAML-5.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:5accb17103e43963b80e6f837831f38d314a0495500067cb25afab2e8d7a4018"}, + {file = "PyYAML-5.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:e1d4970ea66be07ae37a3c2e48b5ec63f7ba6804bdddfdbd3cfd954d25a82e63"}, + {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:cb333c16912324fd5f769fff6bc5de372e9e7a202247b48870bc251ed40239aa"}, + {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:fe69978f3f768926cfa37b867e3843918e012cf83f680806599ddce33c2c68b0"}, + {file = "PyYAML-5.4.1-cp37-cp37m-win32.whl", hash = "sha256:dd5de0646207f053eb0d6c74ae45ba98c3395a571a2891858e87df7c9b9bd51b"}, + {file = "PyYAML-5.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:08682f6b72c722394747bddaf0aa62277e02557c0fd1c42cb853016a38f8dedf"}, + {file = "PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d2d9808ea7b4af864f35ea216be506ecec180628aced0704e34aca0b040ffe46"}, + {file = "PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:8c1be557ee92a20f184922c7b6424e8ab6691788e6d86137c5d93c1a6ec1b8fb"}, + {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:fd7f6999a8070df521b6384004ef42833b9bd62cfee11a09bda1079b4b704247"}, + {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:bfb51918d4ff3d77c1c856a9699f8492c612cde32fd3bcd344af9be34999bfdc"}, + {file = "PyYAML-5.4.1-cp38-cp38-win32.whl", hash = "sha256:fa5ae20527d8e831e8230cbffd9f8fe952815b2b7dae6ffec25318803a7528fc"}, + {file = "PyYAML-5.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:0f5f5786c0e09baddcd8b4b45f20a7b5d61a7e7e99846e3c799b05c7c53fa696"}, + {file = "PyYAML-5.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:294db365efa064d00b8d1ef65d8ea2c3426ac366c0c4368d930bf1c5fb497f77"}, + {file = "PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:74c1485f7707cf707a7aef42ef6322b8f97921bd89be2ab6317fd782c2d53183"}, + {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:d483ad4e639292c90170eb6f7783ad19490e7a8defb3e46f97dfe4bacae89122"}, + {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_s390x.whl", hash = "sha256:fdc842473cd33f45ff6bce46aea678a54e3d21f1b61a7750ce3c498eedfe25d6"}, + {file = "PyYAML-5.4.1-cp39-cp39-win32.whl", hash = "sha256:49d4cdd9065b9b6e206d0595fee27a96b5dd22618e7520c33204a4a3239d5b10"}, + {file = "PyYAML-5.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:c20cfa2d49991c8b4147af39859b167664f2ad4561704ee74c1de03318e898db"}, + {file = "PyYAML-5.4.1.tar.gz", hash = "sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"}, +] +regex = [ + {file = "regex-2021.8.28-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9d05ad5367c90814099000442b2125535e9d77581855b9bee8780f1b41f2b1a2"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3bf1bc02bc421047bfec3343729c4bbbea42605bcfd6d6bfe2c07ade8b12d2a"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f6a808044faae658f546dd5f525e921de9fa409de7a5570865467f03a626fc0"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:a617593aeacc7a691cc4af4a4410031654f2909053bd8c8e7db837f179a630eb"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:79aef6b5cd41feff359acaf98e040844613ff5298d0d19c455b3d9ae0bc8c35a"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:0fc1f8f06977c2d4f5e3d3f0d4a08089be783973fc6b6e278bde01f0544ff308"}, + {file = "regex-2021.8.28-cp310-cp310-win32.whl", hash = "sha256:6eebf512aa90751d5ef6a7c2ac9d60113f32e86e5687326a50d7686e309f66ed"}, + {file = "regex-2021.8.28-cp310-cp310-win_amd64.whl", hash = "sha256:ac88856a8cbccfc14f1b2d0b829af354cc1743cb375e7f04251ae73b2af6adf8"}, + {file = "regex-2021.8.28-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c206587c83e795d417ed3adc8453a791f6d36b67c81416676cad053b4104152c"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8690ed94481f219a7a967c118abaf71ccc440f69acd583cab721b90eeedb77c"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:328a1fad67445550b982caa2a2a850da5989fd6595e858f02d04636e7f8b0b13"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c7cb4c512d2d3b0870e00fbbac2f291d4b4bf2634d59a31176a87afe2777c6f0"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:66256b6391c057305e5ae9209941ef63c33a476b73772ca967d4a2df70520ec1"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8e44769068d33e0ea6ccdf4b84d80c5afffe5207aa4d1881a629cf0ef3ec398f"}, + {file = "regex-2021.8.28-cp36-cp36m-win32.whl", hash = "sha256:08d74bfaa4c7731b8dac0a992c63673a2782758f7cfad34cf9c1b9184f911354"}, + {file = "regex-2021.8.28-cp36-cp36m-win_amd64.whl", hash = "sha256:abb48494d88e8a82601af905143e0de838c776c1241d92021e9256d5515b3645"}, + {file = "regex-2021.8.28-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b4c220a1fe0d2c622493b0a1fd48f8f991998fb447d3cd368033a4b86cf1127a"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4a332404baa6665b54e5d283b4262f41f2103c255897084ec8f5487ce7b9e8e"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c61dcc1cf9fd165127a2853e2c31eb4fb961a4f26b394ac9fe5669c7a6592892"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:ee329d0387b5b41a5dddbb6243a21cb7896587a651bebb957e2d2bb8b63c0791"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f60667673ff9c249709160529ab39667d1ae9fd38634e006bec95611f632e759"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:b844fb09bd9936ed158ff9df0ab601e2045b316b17aa8b931857365ea8586906"}, + {file = "regex-2021.8.28-cp37-cp37m-win32.whl", hash = "sha256:4cde065ab33bcaab774d84096fae266d9301d1a2f5519d7bd58fc55274afbf7a"}, + {file = "regex-2021.8.28-cp37-cp37m-win_amd64.whl", hash = "sha256:1413b5022ed6ac0d504ba425ef02549a57d0f4276de58e3ab7e82437892704fc"}, + {file = "regex-2021.8.28-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ed4b50355b066796dacdd1cf538f2ce57275d001838f9b132fab80b75e8c84dd"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28fc475f560d8f67cc8767b94db4c9440210f6958495aeae70fac8faec631797"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bdc178caebd0f338d57ae445ef8e9b737ddf8fbc3ea187603f65aec5b041248f"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:999ad08220467b6ad4bd3dd34e65329dd5d0df9b31e47106105e407954965256"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:808ee5834e06f57978da3e003ad9d6292de69d2bf6263662a1a8ae30788e080b"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d5111d4c843d80202e62b4fdbb4920db1dcee4f9366d6b03294f45ed7b18b42e"}, + {file = "regex-2021.8.28-cp38-cp38-win32.whl", hash = "sha256:473858730ef6d6ff7f7d5f19452184cd0caa062a20047f6d6f3e135a4648865d"}, + {file = "regex-2021.8.28-cp38-cp38-win_amd64.whl", hash = "sha256:31a99a4796bf5aefc8351e98507b09e1b09115574f7c9dbb9cf2111f7220d2e2"}, + {file = "regex-2021.8.28-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:04f6b9749e335bb0d2f68c707f23bb1773c3fb6ecd10edf0f04df12a8920d468"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b006628fe43aa69259ec04ca258d88ed19b64791693df59c422b607b6ece8bb"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:121f4b3185feaade3f85f70294aef3f777199e9b5c0c0245c774ae884b110a2d"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:a577a21de2ef8059b58f79ff76a4da81c45a75fe0bfb09bc8b7bb4293fa18983"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1743345e30917e8c574f273f51679c294effba6ad372db1967852f12c76759d8"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e1e8406b895aba6caa63d9fd1b6b1700d7e4825f78ccb1e5260551d168db38ed"}, + {file = "regex-2021.8.28-cp39-cp39-win32.whl", hash = "sha256:ed283ab3a01d8b53de3a05bfdf4473ae24e43caee7dcb5584e86f3f3e5ab4374"}, + {file = "regex-2021.8.28-cp39-cp39-win_amd64.whl", hash = "sha256:610b690b406653c84b7cb6091facb3033500ee81089867ee7d59e675f9ca2b73"}, + {file = "regex-2021.8.28.tar.gz", hash = "sha256:f585cbbeecb35f35609edccb95efd95a3e35824cd7752b586503f7e6087303f1"}, +] +toml = [ + {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, + {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, +] +tomlkit = [ + {file = "tomlkit-0.7.2-py2.py3-none-any.whl", hash = "sha256:173ad840fa5d2aac140528ca1933c29791b79a374a0861a80347f42ec9328117"}, + {file = "tomlkit-0.7.2.tar.gz", hash = "sha256:d7a454f319a7e9bd2e249f239168729327e4dd2d27b17dc68be264ad1ce36754"}, +] +tqdm = [ + {file = "tqdm-4.62.2-py2.py3-none-any.whl", hash = "sha256:80aead664e6c1672c4ae20dc50e1cdc5e20eeff9b14aa23ecd426375b28be588"}, + {file = "tqdm-4.62.2.tar.gz", hash = "sha256:a4d6d112e507ef98513ac119ead1159d286deab17dffedd96921412c2d236ff5"}, +] +typing-extensions = [ + {file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"}, + {file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"}, + {file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"}, +] +zipp = [ + {file = "zipp-3.5.0-py3-none-any.whl", hash = "sha256:957cfda87797e389580cb8b9e3870841ca991e2125350677b2ca83a0e99390a3"}, + {file = "zipp-3.5.0.tar.gz", hash = "sha256:f5812b1e007e48cff63449a5e9f4e7ebea716b4111f9c4f9a645f91d579bf0c4"}, +] diff --git a/pyproject.toml b/pyproject.toml index 29cc4f6..cff69f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,50 @@ [build-system] -requires = ["setuptools>=41.0", "setuptools-scm", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["poetry_core>=1.0.0"] +build-backend = "poetry.core.masonry.api" [tool] - +[tool.poetry] +name="djlint" +version="0.3.5" +description="HTML Template Linter and Formatter" +license="GPL-3.0-or-later" +authors=["Christopher Pickering "] +maintainers=["Christopher Pickering "] +readme="README.md" +repository="https://github.com/Riverside-Healthcare/djlint" +documentation="https://djlint.readthedocs.io" +classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: OS Independent", + ] +packages = [ + { include = "djlint", from = "src" }, +] +include = ["rules.yaml"] [tool.black] max_line_length = 99 quiet = true +[tool.poetry.dependencies] +python = "^3.6" +click = "^8.0.1" +PyYAML = "^5.4.1" +colorama = "^0.4.4" +regex = "^2021.8.28" +tqdm = "^4.62.2" +tomlkit = "^0.7.2" +coverage = { version = "^5.5", optional = true } +pytest = { version = "^6.2.5", optional = true } +pytest-cov = { version = "^2.12.1", optional = true } + +[tool.poetry.extras] +test = ["coverage", "pytest", "pytest-cov"] + +[tool.poetry.scripts] +djlint = "djlint:main" [tool.isort] multi_line_output = 3 @@ -22,4 +57,4 @@ quiet = true [tool.pylint.messages_control] -disable = "E1120, R0914, E0401, R0912, R0916, R0913, W0104, R0801, W1404" +disable = "E1120, R0914, E0401, R0912, R0916, R0913, W0104, R0801, W1404, R0902, R0903" diff --git a/setup.py b/setup.py deleted file mode 100644 index b671380..0000000 --- a/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -"""Djlint setup.""" - -from pathlib import Path - -from setuptools import find_packages, setup - -project_path = Path(__file__).parent - -__version__ = "0.3.4" - - -def long_description(): - """Build long description from readme and changelog.""" - return ( - (project_path / "README.md").read_text(encoding="utf8") - + "\n\n" - + (project_path / "CHANGELOG.md").read_text(encoding="utf8") - ) - - -test_deps = ["coverage", "pytest", "pytest-xdist", "pytest-cov"] - -extras = { - "test": test_deps, -} - -setup( - name="djlint", - version=__version__, - author="Christopher Pickering", - author_email="cpickering@rhc.net", - description="Django Template Linter", - long_description=long_description(), - long_description_content_type="text/markdown", - project_urls={ - "Documentation": "https://djlint.readthedocs.io", - "Source": "https://github.com/Riverside-Healthcare/djlint", - }, - url="", - include_package_data=True, - package_data={"djlint": ["rules.yaml"]}, - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", - "Operating System :: OS Independent", - ], - package_dir={"": "src"}, - packages=find_packages(where="src"), - python_requires=">=3.6", - install_requires=[ - "click>=7.1.2", - "pyyaml>=5.4.1", - "colorama>=0.4.3", - "regex>=2020.11.13", - "tqdm>=4.61.2", - ], - test_suite="tests.test_djlint", - entry_points={ - "console_scripts": [ - "djlint=djlint:main", - ] - }, - tests_require=test_deps, - extras_require=extras, -) diff --git a/tests/config_custom_tags/html.html b/tests/config_custom_tags/html.html new file mode 100644 index 0000000..93612a3 --- /dev/null +++ b/tests/config_custom_tags/html.html @@ -0,0 +1 @@ +{% example stuff %}

this is a long paragraph

{% endexample %} diff --git a/tests/config_custom_tags/pyproject.toml b/tests/config_custom_tags/pyproject.toml new file mode 100644 index 0000000..79f11a9 --- /dev/null +++ b/tests/config_custom_tags/pyproject.toml @@ -0,0 +1,3 @@ +[tool] +[tool.djlint] +custom_blocks = "toc,example" diff --git a/tests/config_extension/html.test b/tests/config_extension/html.test new file mode 100644 index 0000000..7c89b54 --- /dev/null +++ b/tests/config_extension/html.test @@ -0,0 +1 @@ +
diff --git a/tests/config_extension/pyproject.toml b/tests/config_extension/pyproject.toml new file mode 100644 index 0000000..c919327 --- /dev/null +++ b/tests/config_extension/pyproject.toml @@ -0,0 +1,3 @@ +[tool] +[tool.djlint] +extension = "test" diff --git a/tests/config_ignores/html.html b/tests/config_ignores/html.html new file mode 100644 index 0000000..75c1c4b --- /dev/null +++ b/tests/config_ignores/html.html @@ -0,0 +1 @@ +{{missing space}} diff --git a/tests/config_ignores/pyproject.toml b/tests/config_ignores/pyproject.toml new file mode 100644 index 0000000..ee335bf --- /dev/null +++ b/tests/config_ignores/pyproject.toml @@ -0,0 +1,3 @@ +[tool] +[tool.djlint] +ignore = "E001" diff --git a/tests/config_indent/html.html b/tests/config_indent/html.html new file mode 100644 index 0000000..ac91174 --- /dev/null +++ b/tests/config_indent/html.html @@ -0,0 +1 @@ +

diff --git a/tests/config_indent/pyproject.toml b/tests/config_indent/pyproject.toml new file mode 100644 index 0000000..ca52acd --- /dev/null +++ b/tests/config_indent/pyproject.toml @@ -0,0 +1,3 @@ +[tool] +[tool.djlint] +indent = " " diff --git a/tests/conftest.py b/tests/conftest.py index 53aa597..2fb8fbb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,18 +1,38 @@ +"""Djlint test config.""" import os import tempfile +from pathlib import Path +from typing import Generator, TextIO import pytest from click.testing import CliRunner - -@pytest.fixture -def runner(): - yield CliRunner() +from src.djlint import main as djlint -@pytest.fixture -def tmp_file(): +@pytest.fixture() +def runner() -> CliRunner: + """Click runner for djlint tests.""" + return CliRunner() + + +@pytest.fixture() +def tmp_file() -> Generator: + """Create a temp file for formatting.""" + # pylint: disable=R1732 tmp = tempfile.NamedTemporaryFile(delete=False) yield tmp tmp.close() os.unlink(tmp.name) + + +def write_to_file(the_file: str, the_text: bytes) -> None: + """Shortcode for write some bytes to a file.""" + with open(the_file, mode="w+b") as open_file: + open_file.write(the_text) + + +def reformat(the_file: TextIO, runner: CliRunner, the_text: bytes) -> dict: + write_to_file(the_file.name, the_text) + result = runner.invoke(djlint, [the_file.name, "--reformat"]) + return {"text": Path(the_file.name).read_text(), "exit_code": result.exit_code} diff --git a/tests/django_admin/admin/404.html b/tests/django_admin/admin/404.html deleted file mode 100644 index d7b0b72..0000000 --- a/tests/django_admin/admin/404.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block title %} - {% translate 'Page not found' %} -{% endblock %} -{% block content %} -

{% translate 'Page not found' %}

-

- {% translate 'We’re sorry, but the requested page could not be found.' %} -

-{% endblock %} diff --git a/tests/django_admin/admin/500.html b/tests/django_admin/admin/500.html deleted file mode 100644 index 6a8d0aa..0000000 --- a/tests/django_admin/admin/500.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block title %} - {% translate 'Server error (500)' %} -{% endblock %} -{% block content %} -

- {% translate 'Server Error - (500) - ' %} -

-

- {% translate 'There’s been an error. It’s been reported to the site administrators via email and should be fixed shortly. Thanks for your patience.' %} -

-{% endblock %} diff --git a/tests/django_admin/admin/actions.html b/tests/django_admin/admin/actions.html deleted file mode 100644 index 2604981..0000000 --- a/tests/django_admin/admin/actions.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load i18n %} -
- {% block actions %} - {% block actions-form %} - {% for field in action_form %} - {% if field.label %} - {% endif %} - {% endfor %} - {% endblock %} - {% block actions-submit %} - - {% endblock %} - {% block actions-counter %} - {% if actions_selection_counter %} - - {{ selection_note }} - - {% if cl.result_count != cl.result_list|length %} - - - - {% endif %} - {% endif %} - {% endblock %} - {% endblock %} -
diff --git a/tests/django_admin/admin/app_index.html b/tests/django_admin/admin/app_index.html deleted file mode 100644 index 819b2e5..0000000 --- a/tests/django_admin/admin/app_index.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "admin/index.html" %} -{% load i18n %} -{% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %} -{% if not is_popup %} - {% block breadcrumbs %} - - {% endblock %} -{% endif %} -{% block sidebar %}{% endblock %} diff --git a/tests/django_admin/admin/app_list.html b/tests/django_admin/admin/app_list.html deleted file mode 100644 index 7159a9b..0000000 --- a/tests/django_admin/admin/app_list.html +++ /dev/null @@ -1,63 +0,0 @@ -{% load i18n %} -{% if app_list %} - {% for app in app_list %} -
- - - {% for model in app.models %} - - {% if model.admin_url %} - - {% else %} - - {% endif %} - {% if model.add_url %} - - {% else %} - - {% endif %} - {% if model.admin_url and show_changelinks %} - {% if model.view_only %} - - {% else %} - - {% endif %} - {% elif show_changelinks %} - - {% endif %} - - {% endfor %} -
- - {{ app.name }} - -
- - {{ model.name }} - - {{ model.name }} - - {% translate 'Add' %} - - - - {% translate 'View' %} - - - - {% translate 'Change' %} - -
-
- {% endfor %} -{% else %} -

- {% translate 'You don’t have permission to view or edit anything.' %} -

-{% endif %} diff --git a/tests/django_admin/admin/auth/user/add_form.html b/tests/django_admin/admin/auth/user/add_form.html deleted file mode 100644 index f757af4..0000000 --- a/tests/django_admin/admin/auth/user/add_form.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n %} -{% block form_top %} - {% if not is_popup %} -

- {% translate 'First, enter a username and password. Then, you’ll be able to edit more user options.' %} -

- {% else %} -

- {% translate "Enter a username and password." %} -

- {% endif %} -{% endblock %} diff --git a/tests/django_admin/admin/auth/user/change_password.html b/tests/django_admin/admin/auth/user/change_password.html deleted file mode 100644 index 9892bf5..0000000 --- a/tests/django_admin/admin/auth/user/change_password.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% load admin_urls %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block bodyclass %} - {{ block.super }} {{ opts.app_label }}-{{ opts.model_name }} change-form -{% endblock %} -{% if not is_popup %} - {% block breadcrumbs %} - - {% endblock %} -{% endif %} -{% block content %} -
-
- {% csrf_token %} - {% block form_top %}{% endblock %} - -
- {% if is_popup %} - - {% endif %} - {% if form.errors %} -

- {% if form.errors.items|length == 1 %} - {% translate "Please correct the error below." %} - {% else %} - {% translate "Please correct the errors below." %} - {% endif %} -

- {% endif %} -

- {% blocktranslate with username=original %} - Enter a new password for the user - {{ username }} - . - {% endblocktranslate %} -

-
-
- {{ form.password1.errors }} - {{ form.password1.label_tag }} {{ form.password1 }} - {% if form.password1.help_text %} -
- {{ form.password1.help_text|safe }} -
- {% endif %} -
-
- {{ form.password2.errors }} - {{ form.password2.label_tag }} {{ form.password2 }} - {% if form.password2.help_text %} -
- {{ form.password2.help_text|safe }} -
- {% endif %} -
-
-
- -
-
-
-
-{% endblock %} diff --git a/tests/django_admin/admin/base.html b/tests/django_admin/admin/base.html deleted file mode 100644 index f0e74af..0000000 --- a/tests/django_admin/admin/base.html +++ /dev/null @@ -1,118 +0,0 @@ -{% load i18n static %} - -{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} - - - {% block title %}{% endblock %} - - {% if not is_popup and is_nav_sidebar_enabled %} - - - {% endif %} - {% block extrastyle %}{% endblock %} - {% if LANGUAGE_BIDI %} - - {% endif %} - {% block extrahead %}{% endblock %} - {% block responsive %} - - - {% if LANGUAGE_BIDI %} - - {% endif %} - {% endblock %} - {% block blockbots %}{% endblock %} - - - -
- {% if not is_popup %} - - {% block header %} - {% endblock %} - - {% block breadcrumbs %} - - {% endblock %}{% endif %} -
- {% if not is_popup and is_nav_sidebar_enabled %} - {% block nav-sidebar %} - {% include "admin/nav_sidebar.html" %}{% endblock %}{% endif %} -
- {% block messages %} - {% if messages %} -
    - {% for message in messages %} - {{ message|capfirst }} - - {% endfor %} -
- {% endif %} - {% endblock messages %} - -
- {% block pretitle %}{% endblock %} - {% block content_title %}{% if title %} -

{{ title }}

- {% endif %}{% endblock %} - {% block content_subtitle %}{% if subtitle %} -

{{ subtitle }}

- {% endif %}{% endblock %} - {% block content %} - {% block object-tools %}{% endblock %} - {{ content }} - {% endblock %} - {% block sidebar %}{% endblock %} -
-
- - {% block footer %} - - {% endblock %} -
-
-
- - - diff --git a/tests/django_admin/admin/base_site.html b/tests/django_admin/admin/base_site.html deleted file mode 100644 index 524ced2..0000000 --- a/tests/django_admin/admin/base_site.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "admin/base.html" %} -{% block title %} - {% if subtitle %}{{ subtitle }} |{% endif %} - {{ title }} | {{ site_title|default:_('Django site admin') }} -{% endblock %} -{% block branding %} -

- - {{ site_header|default:_('Django administration') }} - -

-{% endblock %} -{% block nav-global %}{% endblock %} diff --git a/tests/django_admin/admin/change_form.html b/tests/django_admin/admin/change_form.html deleted file mode 100644 index e187223..0000000 --- a/tests/django_admin/admin/change_form.html +++ /dev/null @@ -1,97 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n admin_urls static admin_modify %} -{% block extrahead %} - {{ block.super }} - - {{ media }} -{% endblock %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block coltype %}colM{% endblock %} -{% block bodyclass %} - {{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form -{% endblock %} -{% if not is_popup %} - {% block breadcrumbs %} - - {% endblock %}{% endif %} - {% block content %} -
- {% block object-tools %} - {% if change %} - {% if not is_popup %} -
    - {% block object-tools-items %} - {% change_form_object_tools %} - {% endblock %} -
- {% endif %} - {% endif %} - {% endblock %} -
- {% csrf_token %}{% block form_top %}{% endblock %} -
- {% if is_popup %} - - {% endif %} - {% if to_field %} - - {% endif %} - {% if save_on_top %} - {% block submit_buttons_top %} - {% submit_row %}{% endblock %}{% endif %} - {% if errors %} -

- {% if errors|length == 1 %}{% translate "Please correct the error below." %}{% else %} - {% translate "Please correct the errors below." %}{% endif %} -

- {{ adminform.form.non_field_errors }} - {% endif %} - {% block field_sets %} - {% for fieldset in adminform %} - {% include "admin/includes/fieldset.html" %}{% endfor %} - {% endblock %} - {% block after_field_sets %}{% endblock %} - {% block inline_field_sets %} - {% for inline_admin_formset in inline_admin_formsets %} - {% include inline_admin_formset.opts.template %}{% endfor %} - {% endblock %} - {% block after_related_objects %}{% endblock %} - {% block submit_buttons_bottom %} - {% submit_row %}{% endblock %} - {% block admin_change_form_document_ready %} - - {% endblock %} - {# JavaScript for prepopulated fields #} - {% prepopulated_fields_js %} -
-
-
- {% endblock %} diff --git a/tests/django_admin/admin/change_form_object_tools.html b/tests/django_admin/admin/change_form_object_tools.html deleted file mode 100644 index 6772453..0000000 --- a/tests/django_admin/admin/change_form_object_tools.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n admin_urls %} -{% block object-tools-items %} -
  • - {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} - - {% translate "History" %} - -
  • - {% if has_absolute_url %} -
  • - - {% translate "View on site" %} - -
  • - {% endif %} -{% endblock %} diff --git a/tests/django_admin/admin/change_list.html b/tests/django_admin/admin/change_list.html deleted file mode 100644 index b967395..0000000 --- a/tests/django_admin/admin/change_list.html +++ /dev/null @@ -1,111 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n admin_urls static admin_list %} -{% block extrastyle %} - {{ block.super }} - - {% if cl.formset %} - - {% endif %} - {% if cl.formset or action_form %} - - {% endif %} - {{ media.css }} - {% if not actions_on_top and not actions_on_bottom %} - - {% endif %} -{% endblock %} -{% block extrahead %} - {{ block.super }} - {{ media.js }} -{% endblock %} -{% block bodyclass %} - {{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list -{% endblock %} -{% if not is_popup %} - {% block breadcrumbs %} - - {% endblock %} -{% endif %} -{% block coltype %}{% endblock %} -{% block content %} -
    - {% block object-tools %} -
      - {% block object-tools-items %} - {% change_list_object_tools %} - {% endblock %} -
    - {% endblock %} - {% if cl.formset and cl.formset.errors %} -

    - {% if cl.formset.total_error_count == 1 %} - {% translate "Please correct the error below." %} - {% else %} - {% translate "Please correct the errors below." %} - {% endif %} -

    - {{ cl.formset.non_form_errors }} - {% endif %} -
    -
    - {% block search %} - {% search_form cl %} - {% endblock %} - {% block date_hierarchy %} - {% if cl.date_hierarchy %} - {% date_hierarchy cl %} - {% endif %} - {% endblock %} -
    - {% csrf_token %} - {% if cl.formset %} -
    - {{ cl.formset.management_form }} -
    - {% endif %} - {% block result_list %} - {% if action_form and actions_on_top and cl.show_admin_actions %} - {% admin_actions %} - {% endif %} - {% result_list cl %} - {% if action_form and actions_on_bottom and cl.show_admin_actions %} - {% admin_actions %} - {% endif %} - {% endblock %} - {% block pagination %} - {% pagination cl %} - {% endblock %} -
    -
    - {% block filters %} - {% if cl.has_filters %} -
    -

    {% translate 'Filter' %}

    - {% if cl.has_active_filters %} -

    - ✖ {% translate "Clear all filters" %} -

    - {% endif %} - {% for spec in cl.filter_specs %} - {% admin_list_filter cl spec %} - {% endfor %} -
    - {% endif %} - {% endblock %} -
    -
    -{% endblock %} diff --git a/tests/django_admin/admin/change_list_object_tools.html b/tests/django_admin/admin/change_list_object_tools.html deleted file mode 100644 index 26b5d47..0000000 --- a/tests/django_admin/admin/change_list_object_tools.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n admin_urls %} -{% block object-tools-items %} - {% if has_add_permission %} -
  • - {% url cl.opts|admin_urlname:'add' as add_url %} - - {% blocktranslate with cl.opts.verbose_name as name %} - Add {{ name }} - {% endblocktranslate %} - -
  • - {% endif %} -{% endblock %} diff --git a/tests/django_admin/admin/change_list_results.html b/tests/django_admin/admin/change_list_results.html deleted file mode 100644 index a43e3ea..0000000 --- a/tests/django_admin/admin/change_list_results.html +++ /dev/null @@ -1,57 +0,0 @@ -{% load i18n %} -{% if result_hidden_fields %} -
    - {# DIV for HTML validation #} - {% for item in result_hidden_fields %}{{ item }}{% endfor %} -
    -{% endif %} -{% if results %} -
    - - - - {% for header in result_headers %} - - {% endfor %} - - - - {% for result in results %} - {% if result.form and result.form.non_field_errors %} - - - - {% endif %} - - {% for item in result %}{{ item }}{% endfor %} - - {% endfor %} - -
    - {% if header.sortable %} - {% if header.sort_priority > 0 %} -
    - - {% if num_sorted_fields > 1 %} - - {{ header.sort_priority }} - - {% endif %} - -
    - {% endif %} - {% endif %} -
    - {% if header.sortable %} - {{ header.text|capfirst }} - {% else %} - {{ header.text|capfirst }} - {% endif %} -
    -
    -
    {{ result.form.non_field_errors }}
    -
    -{% endif %} diff --git a/tests/django_admin/admin/date_hierarchy.html b/tests/django_admin/admin/date_hierarchy.html deleted file mode 100644 index 3975689..0000000 --- a/tests/django_admin/admin/date_hierarchy.html +++ /dev/null @@ -1,25 +0,0 @@ -{% if show %} -
    - -
    -
    -{% endif %} diff --git a/tests/django_admin/admin/delete_confirmation.html b/tests/django_admin/admin/delete_confirmation.html deleted file mode 100644 index 2b2717e..0000000 --- a/tests/django_admin/admin/delete_confirmation.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n admin_urls static %} -{% block extrahead %} - {{ block.super }} - {{ media }} - -{% endblock %} -{% block bodyclass %} - {{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} - {% if perms_lacking %} -

    - {% blocktranslate with escaped_object=object %} - Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects: - {% endblocktranslate %} -

    -
      - {% for obj in perms_lacking %} -
    • - {{ obj }} -
    • - {% endfor %} -
    - {% elif protected %} -

    - {% blocktranslate with escaped_object=object %} - Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects: - {% endblocktranslate %} -

    -
      - {% for obj in protected %} -
    • - {{ obj }} -
    • - {% endfor %} -
    - {% else %} -

    - {% blocktranslate with escaped_object=object %} - Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted: - {% endblocktranslate %} -

    - {% include "admin/includes/object_delete_summary.html" %} -

    {% translate "Objects" %}

    -
      - {{ deleted_objects|unordered_list }} -
    -
    - {% csrf_token %} -
    - - {% if is_popup %} - - {% endif %} - {% if to_field %} - - {% endif %} - - {% translate "No, take me back" %} -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_admin/admin/delete_selected_confirmation.html b/tests/django_admin/admin/delete_selected_confirmation.html deleted file mode 100644 index 6ca5d5d..0000000 --- a/tests/django_admin/admin/delete_selected_confirmation.html +++ /dev/null @@ -1,78 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n l10n admin_urls static %} -{% block extrahead %} - {{ block.super }} - {{ media }} - -{% endblock %} -{% block bodyclass %} - {{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} - {% if perms_lacking %} -

    - {% blocktranslate %} - Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects: - {% endblocktranslate %} -

    -
      - {% for obj in perms_lacking %} -
    • - {{ obj }} -
    • - {% endfor %} -
    - {% elif protected %} -

    - {% blocktranslate %} - Deleting the selected {{ objects_name }} would require deleting the following protected related objects: - {% endblocktranslate %} -

    -
      - {% for obj in protected %} -
    • - {{ obj }} -
    • - {% endfor %} -
    - {% else %} -

    - {% blocktranslate %} - Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted: - {% endblocktranslate %} -

    - {% include "admin/includes/object_delete_summary.html" %} -

    {% translate "Objects" %}

    - {% for deletable_object in deletable_objects %} -
      - {{ deletable_object|unordered_list }} -
    - {% endfor %} -
    - {% csrf_token %} -
    - {% for obj in queryset %} - - {% endfor %} - - - - {% translate "No, take me back" %} -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_admin/admin/edit_inline/stacked.html b/tests/django_admin/admin/edit_inline/stacked.html deleted file mode 100644 index 610b3ff..0000000 --- a/tests/django_admin/admin/edit_inline/stacked.html +++ /dev/null @@ -1,53 +0,0 @@ -{% load i18n admin_urls %} -
    -
    - {% if inline_admin_formset.formset.max_num == 1 %} -

    {{ inline_admin_formset.opts.verbose_name|capfirst }}

    - {% else %} -

    {{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

    - {% endif %} - {{ inline_admin_formset.formset.management_form }} - {{ inline_admin_formset.formset.non_form_errors }} - {% for inline_admin_form in inline_admin_formset %} -
    -

    - - {{ inline_admin_formset.opts.verbose_name|capfirst }}: - - - {% if inline_admin_form.original %} - {{ inline_admin_form.original }} - {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %} - - {% if inline_admin_formset.has_change_permission %}{% translate "Change" %}{% else %}{% translate "View" %}{% endif %} - - {% endif %} - {% else %} - #{{ forloop.counter }} - {% endif %} - - {% if inline_admin_form.show_url %} - - {% translate "View on site" %} - - {% endif %} - {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission and inline_admin_form.original %} - - {{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }} - - {% endif %} -

    - {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %} - {% for fieldset in inline_admin_form %} - {% include "admin/includes/fieldset.html" %}{% endfor %} - {% if inline_admin_form.needs_explicit_pk_field %}{{ inline_admin_form.pk_field.field }}{% endif %} - {% if inline_admin_form.fk_field %}{{ inline_admin_form.fk_field.field }}{% endif %} -
    - {% endfor %} -
    -
    diff --git a/tests/django_admin/admin/edit_inline/tabular.html b/tests/django_admin/admin/edit_inline/tabular.html deleted file mode 100644 index 23cdeec..0000000 --- a/tests/django_admin/admin/edit_inline/tabular.html +++ /dev/null @@ -1,110 +0,0 @@ -{% load i18n admin_urls static admin_modify %} -
    - -
    diff --git a/tests/django_admin/admin/filter.html b/tests/django_admin/admin/filter.html deleted file mode 100644 index e13d963..0000000 --- a/tests/django_admin/admin/filter.html +++ /dev/null @@ -1,17 +0,0 @@ -{% load i18n %} -

    - {% blocktranslate with filter_title=title %} - By {{ filter_title }} - {% endblocktranslate %} -

    - diff --git a/tests/django_admin/admin/includes/fieldset.html b/tests/django_admin/admin/includes/fieldset.html deleted file mode 100644 index 738498b..0000000 --- a/tests/django_admin/admin/includes/fieldset.html +++ /dev/null @@ -1,37 +0,0 @@ -
    - {% if fieldset.name %}

    {{ fieldset.name }}

    {% endif %} - {% if fieldset.description %} -
    - {{ fieldset.description|safe }} -
    - {% endif %} - {% for line in fieldset %} -
    - {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} - {% for field in line %} -
    - {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} - {% if field.is_checkbox %} - {{ field.field }}{{ field.label_tag }} - {% else %} - {{ field.label_tag }} - {% if field.is_readonly %} -
    - {{ field.contents }} -
    - {% else %} - {{ field.field }} - {% endif %} - {% endif %} - {% if field.field.help_text %} -
    - {{ field.field.help_text|safe }} -
    - {% endif %} -
    - {% endfor %} -
    - {% endfor %} -
    diff --git a/tests/django_admin/admin/includes/object_delete_summary.html b/tests/django_admin/admin/includes/object_delete_summary.html deleted file mode 100644 index ac8a4f6..0000000 --- a/tests/django_admin/admin/includes/object_delete_summary.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load i18n %} -

    {% translate "Summary" %}

    -
      - {% for model_name, object_count in model_count %} -
    • - {{ model_name|capfirst }}: {{ object_count }} -
    • - {% endfor %} -
    diff --git a/tests/django_admin/admin/index.html b/tests/django_admin/admin/index.html deleted file mode 100644 index 4046a9d..0000000 --- a/tests/django_admin/admin/index.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block coltype %}colMS{% endblock %} -{% block bodyclass %}{{ block.super }} dashboard{% endblock %} -{% block breadcrumbs %}{% endblock %} -{% block nav-sidebar %}{% endblock %} -{% block content %} -
    - {% include "admin/app_list.html" with app_list=app_list show_changelinks=True %} -
    -{% endblock %} -{% block sidebar %} - -{% endblock %} diff --git a/tests/django_admin/admin/invalid_setup.html b/tests/django_admin/admin/invalid_setup.html deleted file mode 100644 index affaa9c..0000000 --- a/tests/django_admin/admin/invalid_setup.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -

    - {% translate 'Something’s wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user.' %} -

    -{% endblock %} diff --git a/tests/django_admin/admin/login.html b/tests/django_admin/admin/login.html deleted file mode 100644 index af36a68..0000000 --- a/tests/django_admin/admin/login.html +++ /dev/null @@ -1,64 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% block extrastyle %} - {{ block.super }} - - {{ form.media }} -{% endblock %} -{% block bodyclass %}{{ block.super }} login{% endblock %} -{% block usertools %}{% endblock %} -{% block nav-global %}{% endblock %} -{% block nav-sidebar %}{% endblock %} -{% block content_title %}{% endblock %} -{% block breadcrumbs %}{% endblock %} -{% block content %} - {% if form.errors and not form.non_field_errors %} -

    - {% if form.errors.items|length == 1 %} - {% translate "Please correct the error below." %} - {% else %} - {% translate "Please correct the errors below." %} - {% endif %} -

    - {% endif %} - {% if form.non_field_errors %} - {% for error in form.non_field_errors %} -

    - {{ error }} -

    - {% endfor %} - {% endif %} -
    - {% if user.is_authenticated %} -

    - {% blocktranslate trimmed %} - You are authenticated as {{ username }}, but are not authorized to - access this page. Would you like to login to a different account? - {% endblocktranslate %} -

    - {% endif %} -
    - {% csrf_token %} -
    - {{ form.username.errors }} - {{ form.username.label_tag }} {{ form.username }} -
    -
    - {{ form.password.errors }} - {{ form.password.label_tag }} {{ form.password }} - -
    - {% url 'admin_password_reset' as password_reset_url %} - {% if password_reset_url %} - - {% endif %} -
    - -
    -
    -
    -{% endblock %} diff --git a/tests/django_admin/admin/nav_sidebar.html b/tests/django_admin/admin/nav_sidebar.html deleted file mode 100644 index 4764137..0000000 --- a/tests/django_admin/admin/nav_sidebar.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load i18n %} - - diff --git a/tests/django_admin/admin/object_history.html b/tests/django_admin/admin/object_history.html deleted file mode 100644 index a28f59f..0000000 --- a/tests/django_admin/admin/object_history.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n admin_urls %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -
    -
    - {% if action_list %} - - - - - - - - - - {% for action in action_list %} - - - - - - {% endfor %} - -
    {% translate 'Date/time' %}{% translate 'User' %}{% translate 'Action' %}
    {{ action.action_time|date:"DATETIME_FORMAT" }} - {{ action.user.get_username }} - {% if action.user.get_full_name %}({{ action.user.get_full_name }}){% endif %} - {{ action.get_change_message }}
    - {% else %} -

    - {% translate 'This object doesn’t have a change history. It probably wasn’t added via this admin site.' %} -

    - {% endif %} -
    -
    -{% endblock %} diff --git a/tests/django_admin/admin/pagination.html b/tests/django_admin/admin/pagination.html deleted file mode 100644 index 891bdd6..0000000 --- a/tests/django_admin/admin/pagination.html +++ /dev/null @@ -1,23 +0,0 @@ -{% load admin_list %} -{% load i18n %} -

    - {% if pagination_required %} - {% for i in page_range %} - {% paginator_number cl i %} - {% endfor %} - {% endif %} - {{ cl.result_count }} - {% if cl.result_count == 1 %} - {{ cl.opts.verbose_name }} - {% else %} - {{ cl.opts.verbose_name_plural }} - {% endif %} - {% if show_all_url %} - - {% translate 'Show all' %} - - {% endif %} - {% if cl.formset and cl.result_count %} - - {% endif %} -

    diff --git a/tests/django_admin/admin/popup_response.html b/tests/django_admin/admin/popup_response.html deleted file mode 100644 index 830bbc3..0000000 --- a/tests/django_admin/admin/popup_response.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load i18n static %} - - - - {% translate 'Popup closing…' %} - - - - - diff --git a/tests/django_admin/admin/prepopulated_fields_js.html b/tests/django_admin/admin/prepopulated_fields_js.html deleted file mode 100644 index c42ebcd..0000000 --- a/tests/django_admin/admin/prepopulated_fields_js.html +++ /dev/null @@ -1,2 +0,0 @@ -{% load static %} - diff --git a/tests/django_admin/admin/search_form.html b/tests/django_admin/admin/search_form.html deleted file mode 100644 index adf76c7..0000000 --- a/tests/django_admin/admin/search_form.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load i18n static %} -{% if cl.search_fields %} -
    - -
    -{% endif %} diff --git a/tests/django_admin/admin/submit_line.html b/tests/django_admin/admin/submit_line.html deleted file mode 100644 index dee59b6..0000000 --- a/tests/django_admin/admin/submit_line.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load i18n admin_urls %} -
    - {% block submit-row %} - {% if show_save %} - - {% endif %} - {% if show_delete_link and original %} - {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} - - {% endif %} - {% if show_save_as_new %} - - {% endif %} - {% if show_save_and_add_another %} - - {% endif %} - {% if show_save_and_continue %} - - {% endif %} - {% if show_close %} - - {% translate 'Close' %} - - {% endif %} - {% endblock %} -
    diff --git a/tests/django_admin/admin/widgets/clearable_file_input.html b/tests/django_admin/admin/widgets/clearable_file_input.html deleted file mode 100644 index 0197dab..0000000 --- a/tests/django_admin/admin/widgets/clearable_file_input.html +++ /dev/null @@ -1,19 +0,0 @@ -{% if widget.is_initial %} -

    - {{ widget.initial_text }}: - {{ widget.value }} - {% if not widget.required %} - - - - - {% endif %} -
    - {{ widget.input_text }}: - {% endif %} - - {% if widget.is_initial %}

    {% endif %} diff --git a/tests/django_admin/admin/widgets/foreign_key_raw_id.html b/tests/django_admin/admin/widgets/foreign_key_raw_id.html deleted file mode 100644 index ee61804..0000000 --- a/tests/django_admin/admin/widgets/foreign_key_raw_id.html +++ /dev/null @@ -1,11 +0,0 @@ -{% include 'django/forms/widgets/input.html' %} -{% if related_url %} - -{% endif %} -{% if link_label %} - - {% if link_url %}{% endif %} - {{ link_label }} - {% if link_url %}{% endif %} - -{% endif %} diff --git a/tests/django_admin/admin/widgets/many_to_many_raw_id.html b/tests/django_admin/admin/widgets/many_to_many_raw_id.html deleted file mode 100644 index 0dd0331..0000000 --- a/tests/django_admin/admin/widgets/many_to_many_raw_id.html +++ /dev/null @@ -1 +0,0 @@ -{% include 'admin/widgets/foreign_key_raw_id.html' %} diff --git a/tests/django_admin/admin/widgets/radio.html b/tests/django_admin/admin/widgets/radio.html deleted file mode 100644 index 780899a..0000000 --- a/tests/django_admin/admin/widgets/radio.html +++ /dev/null @@ -1 +0,0 @@ -{% include "django/forms/widgets/multiple_input.html" %} diff --git a/tests/django_admin/admin/widgets/related_widget_wrapper.html b/tests/django_admin/admin/widgets/related_widget_wrapper.html deleted file mode 100644 index 295f23d..0000000 --- a/tests/django_admin/admin/widgets/related_widget_wrapper.html +++ /dev/null @@ -1,34 +0,0 @@ -{% load i18n static %} - diff --git a/tests/django_admin/admin/widgets/split_datetime.html b/tests/django_admin/admin/widgets/split_datetime.html deleted file mode 100644 index 9355a62..0000000 --- a/tests/django_admin/admin/widgets/split_datetime.html +++ /dev/null @@ -1,11 +0,0 @@ -

    - {{ date_label }} - {% with widget=widget.subwidgets.0 %} - {% include widget.template_name %} - {% endwith %} -
    - {{ time_label }} - {% with widget=widget.subwidgets.1 %} - {% include widget.template_name %} - {% endwith %} -

    diff --git a/tests/django_admin/admin/widgets/url.html b/tests/django_admin/admin/widgets/url.html deleted file mode 100644 index 2777d8a..0000000 --- a/tests/django_admin/admin/widgets/url.html +++ /dev/null @@ -1,9 +0,0 @@ -{% if url_valid %} -

    - {{ current_label }} - {{ widget.value }} -
    - {{ change_label }} - {% endif %} - {% include "django/forms/widgets/input.html" %} - {% if url_valid %}

    {% endif %} diff --git a/tests/django_admin/registration/logged_out.html b/tests/django_admin/registration/logged_out.html deleted file mode 100644 index be03861..0000000 --- a/tests/django_admin/registration/logged_out.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block nav-sidebar %}{% endblock %} -{% block content %} -

    - {% translate "Thanks for spending some quality time with the Web site today." %} -

    -

    - {% translate 'Log in again' %} -

    -{% endblock %} diff --git a/tests/django_admin/registration/password_change_done.html b/tests/django_admin/registration/password_change_done.html deleted file mode 100644 index 27a1a2e..0000000 --- a/tests/django_admin/registration/password_change_done.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block userlinks %} - {% url 'django-admindocs-docroot' as docsroot %} - {% if docsroot %} - {% translate 'Documentation' %} - / - {% endif %} - {% translate 'Change password' %} / - {% translate 'Log out' %} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -

    - {% translate 'Your password was changed.' %} -

    -{% endblock %} diff --git a/tests/django_admin/registration/password_change_form.html b/tests/django_admin/registration/password_change_form.html deleted file mode 100644 index 058fecc..0000000 --- a/tests/django_admin/registration/password_change_form.html +++ /dev/null @@ -1,69 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block userlinks %} - {% url 'django-admindocs-docroot' as docsroot %} - {% if docsroot %} - {% translate 'Documentation' %} - / - {% endif %} - {% translate 'Change password' %} / - {% translate 'Log out' %} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -
    -
    - {% csrf_token %} -
    - {% if form.errors %} -

    - {% if form.errors.items|length == 1 %} - {% translate "Please correct the error below." %} - {% else %} - {% translate "Please correct the errors below." %} - {% endif %} -

    - {% endif %} -

    - {% translate 'Please enter your old password, for security’s sake, and then enter your new password twice so we can verify you typed it in correctly.' %} -

    -
    -
    - {{ form.old_password.errors }} - {{ form.old_password.label_tag }} {{ form.old_password }} -
    -
    - {{ form.new_password1.errors }} - {{ form.new_password1.label_tag }} {{ form.new_password1 }} - {% if form.new_password1.help_text %} -
    - {{ form.new_password1.help_text|safe }} -
    - {% endif %} -
    -
    - {{ form.new_password2.errors }} - {{ form.new_password2.label_tag }} {{ form.new_password2 }} - {% if form.new_password2.help_text %} -
    - {{ form.new_password2.help_text|safe }} -
    - {% endif %} -
    -
    -
    - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_admin/registration/password_reset_complete.html b/tests/django_admin/registration/password_reset_complete.html deleted file mode 100644 index 2ed2b87..0000000 --- a/tests/django_admin/registration/password_reset_complete.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -

    - {% translate "Your password has been set. You may go ahead and log in now." %} -

    -

    - {% translate 'Log in' %} -

    -{% endblock %} diff --git a/tests/django_admin/registration/password_reset_confirm.html b/tests/django_admin/registration/password_reset_confirm.html deleted file mode 100644 index be40a0e..0000000 --- a/tests/django_admin/registration/password_reset_confirm.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} - {% if validlink %} -

    - {% translate "Please enter your new password twice so we can verify you typed it in correctly." %} -

    -
    - {% csrf_token %} -
    - -
    - {{ form.new_password1.errors }} - - {{ form.new_password1 }} -
    -
    - {{ form.new_password2.errors }} - - {{ form.new_password2 }} -
    - -
    -
    - {% else %} -

    - {% translate "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %} -

    - {% endif %} -{% endblock %} diff --git a/tests/django_admin/registration/password_reset_done.html b/tests/django_admin/registration/password_reset_done.html deleted file mode 100644 index c4dfd5f..0000000 --- a/tests/django_admin/registration/password_reset_done.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -

    - {% translate 'We’ve emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly.' %} -

    -

    - {% translate 'If you don’t receive an email, please make sure you’ve entered the address you registered with, and check your spam folder.' %} -

    -{% endblock %} diff --git a/tests/django_admin/registration/password_reset_email.html b/tests/django_admin/registration/password_reset_email.html deleted file mode 100644 index da66e81..0000000 --- a/tests/django_admin/registration/password_reset_email.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load i18n %} -{% autoescape off %} -{% blocktranslate %} - You're receiving this email because you requested a password reset for your user account at {{ site_name }}. -{% endblocktranslate %} -{% translate "Please go to the following page and choose a new password:" %} -{% block reset_link %} - {{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} -{% endblock %} -{% translate 'Your username, in case you’ve forgotten:' %} {{ user.get_username }} -{% translate "Thanks for using our site!" %} -{% blocktranslate %} - The {{ site_name }} team -{% endblocktranslate %} -{% endautoescape %} diff --git a/tests/django_admin/registration/password_reset_form.html b/tests/django_admin/registration/password_reset_form.html deleted file mode 100644 index a9bee27..0000000 --- a/tests/django_admin/registration/password_reset_form.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n static %} -{% block extrastyle %} - {{ block.super }} - -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -

    - {% translate 'Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.' %} -

    -
    - {% csrf_token %} -
    -
    - {{ form.email.errors }} - - {{ form.email }} -
    - -
    -
    -{% endblock %} diff --git a/tests/django_cms/admin/cms/extensions/change_form.html b/tests/django_cms/admin/cms/extensions/change_form.html deleted file mode 100644 index 13c2e7d..0000000 --- a/tests/django_cms/admin/cms/extensions/change_form.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n admin_urls %} -{% block submit_buttons_bottom %} -
    - - {% if not add %} - - {% endif %} -
    -{% endblock %} diff --git a/tests/django_cms/admin/cms/mail/base.html b/tests/django_cms/admin/cms/mail/base.html deleted file mode 100644 index 90e6e0e..0000000 --- a/tests/django_cms/admin/cms/mail/base.html +++ /dev/null @@ -1,71 +0,0 @@ -{% load i18n %} - - - - {{ title }} - - - - - - - - - - - - -
    -
    -

    {{ title }}

    - {% block header %}{% endblock %} -
    - {% block content %}{% endblock %} -
    -

    - {% blocktrans %} - Log in to administration - here - . - {% endblocktrans %} -

    -

    - Generated by - django cms - {% now "d.m.Y H:i:s" %}. -

    -
    - - diff --git a/tests/django_cms/admin/cms/mail/base.txt b/tests/django_cms/admin/cms/mail/base.txt deleted file mode 100644 index 9e7d387..0000000 --- a/tests/django_cms/admin/cms/mail/base.txt +++ /dev/null @@ -1,10 +0,0 @@ -{% load i18n %} - -{{ title }} --------------- -{% block header %}{% endblock %} -{% block content %}{% endblock %} - -{% blocktrans %}Login url: {{ login_url }}{% endblocktrans %} - -[Generated by: http://www.django-cms.org {% now "d.m.Y H:i:s" %}.] diff --git a/tests/django_cms/admin/cms/mail/page_user_change.html b/tests/django_cms/admin/cms/mail/page_user_change.html deleted file mode 100644 index 571e384..0000000 --- a/tests/django_cms/admin/cms/mail/page_user_change.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends 'admin/cms/mail/base.html' %} -{% load i18n %} -{% block content %} - - - - - - - - - -
    {% trans 'Username:' %}{{ user.username }}
    {% trans 'Password:' %}{{ password }}
    -{% endblock %} diff --git a/tests/django_cms/admin/cms/mail/page_user_change.txt b/tests/django_cms/admin/cms/mail/page_user_change.txt deleted file mode 100644 index e901847..0000000 --- a/tests/django_cms/admin/cms/mail/page_user_change.txt +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'admin/cms/mail/base.txt' %} -{% load i18n %} - -{% block content %} - {% trans 'Username:' %} {{ user.username }} - {% trans 'Password:' %} {{ password }} -{% endblock %} diff --git a/tests/django_cms/admin/cms/page/change_form.html b/tests/django_cms/admin/cms/page/change_form.html deleted file mode 100644 index c5a5b74..0000000 --- a/tests/django_cms/admin/cms/page/change_form.html +++ /dev/null @@ -1,133 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n admin_urls static admin_modify admin_urls cms_admin cms_static %} -{% block title %} - {% if add %} - {% trans 'Add a page' %} - {% else %} - {% trans "Change a page" %} - {% endif %} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block extrahead %} - - - - - {{ block.super }} -{% endblock %} -{% block content_title %} - {% if title %}

    {{ title }}

    {% endif %} - {% if not popup and not add %} - - {% endif %} -{% endblock %} -{% block content %} -
    - {% block object-tools %}{% endblock %} -
    - {% csrf_token %} - {% block form_top %}{% endblock %} -
    - {% if show_language_tabs and not show_permissions %} -
    - {% for lang_code, lang_name in language_tabs %} - - {% endfor %} -
    -
    - {% endif %} -
    - {% if is_popup %}{% endif %} - {% if save_on_top %}{% submit_row %}{% endif %} - {% if errors %} -

    - {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} -

    -
      {% for error in adminform.form.non_field_errors %}
    • {{ error }}
    • {% endfor %}
    - {% endif %} - {% for fieldset in adminform %} - {% include "admin/cms/page/includes/fieldset.html" %}{% endfor %} - {% for inline_admin_formset in inline_admin_formsets %} - {% include inline_admin_formset.opts.template %}{% endfor %} - {% if show_permissions %} - {% if CMS_PERMISSION and can_change_permissions %} -
    - -
    - {% endif %} - {% endif %} - {% block after_related_objects %}{% endblock %} - {% if add %} -
    - - -
    - {% else %} - {% page_submit_row %} - {% endif %} -
    -
    -
    - {% block admin_change_form_document_ready %} - {{ block.super }} - {% endblock %} - {% for url in unihandecode_urls %}{% endfor %} - {% if unihandecode_urls %} - - {% endif %} - {# JavaScript for prepopulated fields #} - {% prepopulated_fields_js %} - {% endblock %} diff --git a/tests/django_cms/admin/cms/page/close_frame.html b/tests/django_cms/admin/cms/page/close_frame.html deleted file mode 100644 index dd8df67..0000000 --- a/tests/django_cms/admin/cms/page/close_frame.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n l10n static cms_static %} -{% block title %} - {% trans "Change a page" %} -{% endblock %} -{% block content %} - {# trick for cms to understand that the plugin was actually correctly saved #} -
    -
    -
    - - -{% endblock %} diff --git a/tests/django_cms/admin/cms/page/includes/fieldset.html b/tests/django_cms/admin/cms/page/includes/fieldset.html deleted file mode 100644 index e95a550..0000000 --- a/tests/django_cms/admin/cms/page/includes/fieldset.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "admin/includes/fieldset.html" %} diff --git a/tests/django_cms/admin/cms/page/permissions.html b/tests/django_cms/admin/cms/page/permissions.html deleted file mode 100644 index a0d7ca4..0000000 --- a/tests/django_cms/admin/cms/page/permissions.html +++ /dev/null @@ -1,73 +0,0 @@ -{% load i18n cms_admin cms_tags admin_urls %} -{% if rows %} - - - - - - - - - - - - - - - - - - {% for row in rows %} - {% with permission=row.permission %} - - - - - - - - - - - - - - {% endwith %} - {% endfor %} - -
    {% trans "Page" %}{% trans "User" %}{% trans "Group" %}{% trans "Can edit" %}{% trans "Can add" %}{% trans "Can delete" %}{% trans "Can publish" %}{% trans "Can change permissions" %}{% trans "Can move" %}{% trans "Can view" %}{% trans "Grant on" %}
    - {% if row.is_global %} - {% if row.can_change %} - - {% trans "(global)" %} - - {% else %} - {% trans "(global)" %} - {% endif %} - {% else %} - {% if permission.page_id == page.id %} - {% trans "(current)" %} - {% else %} - {% if row.can_change %} - - {{ permission.page }} - - {% else %} - {{ permission.page }} - {% endif %} - {% endif %} - {% endif %} - {{ permission.user|default_if_none:"-" }}{{ permission.group|default_if_none:"-" }}{{ permission.can_change|boolean_icon }}{{ permission.can_add|boolean_icon }}{{ permission.can_delete|boolean_icon }}{{ permission.can_publish|boolean_icon }} - {{ permission.can_change_permissions|boolean_icon }} - {{ permission.can_move_page|boolean_icon }}{{ permission.can_view|boolean_icon }} - {% if row.is_global %} - {% trans "All" %} - {% else %} - {{ permission.get_grant_on_display }} - {% endif %} -
    -{% else %} -

    - {% trans "Page doesn't inherit any permissions." %} -

    -{% endif %} diff --git a/tests/django_cms/admin/cms/page/plugin/change_form.html b/tests/django_cms/admin/cms/page/plugin/change_form.html deleted file mode 100644 index 7ee17e1..0000000 --- a/tests/django_cms/admin/cms/page/plugin/change_form.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load cms_admin cms_static %} -{% block extrahead %} - {# in case plugins require widgets, they need to have bundle here #} - - - {{ block.super }} -{% endblock %} -{% block submit_buttons_bottom %} - {% submit_row_plugin %} -{% endblock %} diff --git a/tests/django_cms/admin/cms/page/plugin/confirm_form.html b/tests/django_cms/admin/cms/page/plugin/confirm_form.html deleted file mode 100644 index abf89d7..0000000 --- a/tests/django_cms/admin/cms/page/plugin/confirm_form.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "admin/cms/page/close_frame.html" %} diff --git a/tests/django_cms/admin/cms/page/plugin/delete_confirmation.html b/tests/django_cms/admin/cms/page/plugin/delete_confirmation.html deleted file mode 100644 index e99f71e..0000000 --- a/tests/django_cms/admin/cms/page/plugin/delete_confirmation.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends "admin/delete_confirmation.html" %} -{% load i18n admin_urls cms_tags %} -{% block breadcrumbs %}{% endblock %} diff --git a/tests/django_cms/admin/cms/page/plugin/error_form.html b/tests/django_cms/admin/cms/page/plugin/error_form.html deleted file mode 100644 index e9fee09..0000000 --- a/tests/django_cms/admin/cms/page/plugin/error_form.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n l10n static %} -{% block title %} - {% trans "Edit model" %} -{% endblock %} -{% block content %} -
    - {% csrf_token %} -
    -
    -
    - {{ message }} -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_cms/admin/cms/page/plugin/submit_line.html b/tests/django_cms/admin/cms/page/plugin/submit_line.html deleted file mode 100644 index 852a398..0000000 --- a/tests/django_cms/admin/cms/page/plugin/submit_line.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n admin_urls cms_tags %} -
    - {% if show_save %} - - {% endif %} - {% if show_delete_link %} - - {% endif %} - {% if show_save_as_new %} - - {% endif %} - {% if show_save_and_add_another %} - - {% endif %} - {% if show_save_and_continue %} - - {% endif %} -
    diff --git a/tests/django_cms/admin/cms/page/submit_row.html b/tests/django_cms/admin/cms/page/submit_row.html deleted file mode 100644 index f159527..0000000 --- a/tests/django_cms/admin/cms/page/submit_row.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load i18n cms_tags admin_urls %} -
    - {% if show_save %} - - {% endif %} - - {% if show_save_as_new %} - - {% endif %} - {% if show_save_and_add_another %} - - {% endif %} - {% if show_save_and_continue %} - - {% endif %} -
    diff --git a/tests/django_cms/admin/cms/page/tree/actions_dropdown.html b/tests/django_cms/admin/cms/page/tree/actions_dropdown.html deleted file mode 100644 index fd35e8c..0000000 --- a/tests/django_cms/admin/cms/page/tree/actions_dropdown.html +++ /dev/null @@ -1,154 +0,0 @@ -{% load i18n admin_urls %} -{% spaceless %} - - {% endspaceless %} diff --git a/tests/django_cms/admin/cms/page/tree/base.html.broken b/tests/django_cms/admin/cms/page/tree/base.html.broken deleted file mode 100644 index 891ca49..0000000 --- a/tests/django_cms/admin/cms/page/tree/base.html.broken +++ /dev/null @@ -1,182 +0,0 @@ -{% extends "admin/change_list.html" %} -{% load i18n admin_list static admin_urls cms_admin cms_js_tags cms_static cms_tags %} - -{# TODO might not need that #} -{% block title %}{% trans "List of pages" %}{% endblock %} -{% block bodyclass %}{{ block.super }} change-list cms-pagetree-wrapper{% endblock %} -{% block coltype %}flex{% endblock %} -{% block date_hierarchy %}{% endblock %} -{% block pagination %}{% endblock %} - -{% block extrahead %} - {{ block.super }} - {# INFO: we need to add styles here instead of "extrastyle" to avoid conflicts with adminstyle #} - - - - -{% endblock extrahead %} - -{% if not is_popup %} - {% block breadcrumbs %} - - {% endblock %} -{% endif %} - -{% block content_title %}{% endblock %} - -{% block content %} - {% spaceless %} -
    -
    -
    -
    -
    -
    -
    -

    - {% trans "Page Tree" %} ({{ tree.site.name }}) -

    -
    - - {% if tree.is_filtered or request.GET.q %} - {# INFO: show reset button when filtering is active #} - {% trans "Reset filter"|lower %} - {% endif %} -
    - -
    -
    - -
    - {# INFO: hidden search field with dynamic content #} -
    -
    - -
    -
    -
    - - {# INFO: dropdown for changing sites and recover deleted pages #} -
    - - - -
    - -
    - {# INFO: hidden site form when using the dropdown site switcher #} -
    - - {% csrf_token %} -
    -
    - - {# INFO: "new page" button #} - {% if has_add_permission %} - - {% blocktrans with opts.verbose_name|title as name %} - New {{ name }} - {% endblocktrans %} - - {% endif %} -
    -
    - -
    {% csrf_token %} -
    -

    {% trans "Main Navigation" %}

    -
    - {% if has_add_permission %} - - {% endif %} -
    -
    - - {# INFO: javascript is loaded from cms.pagetree.js #} - -
    - - {# INFO: used when copying nodes #} -
    -
    -
    - {% endspaceless %} -{% endblock content %} diff --git a/tests/django_cms/admin/cms/page/tree/copy_premissions.html b/tests/django_cms/admin/cms/page/tree/copy_premissions.html deleted file mode 100644 index 357da2f..0000000 --- a/tests/django_cms/admin/cms/page/tree/copy_premissions.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -
    -

    {% trans "Copy options" %}

    -

    - {% trans "Choose copy options" %} -

    -
    - {% csrf_token %} - {{ form.as_p }} -
    - - -
    -
    -
    -
    diff --git a/tests/django_cms/admin/cms/page/tree/filter.html b/tests/django_cms/admin/cms/page/tree/filter.html deleted file mode 100644 index fdb9299..0000000 --- a/tests/django_cms/admin/cms/page/tree/filter.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} -

    {{ field.label }}

    - diff --git a/tests/django_cms/admin/cms/page/tree/legend.html b/tests/django_cms/admin/cms/page/tree/legend.html deleted file mode 100644 index a0d65b4..0000000 --- a/tests/django_cms/admin/cms/page/tree/legend.html +++ /dev/null @@ -1,75 +0,0 @@ -{% load i18n %} -{% spaceless %} -
    - -
    - - {% trans "Legend" %} -
    -
    -
      -
    • - - - {% trans "Published" %} - -
    • -
    • - - - {% trans "Changed" %} - -
    • -
    • - - - {% trans "Unpublished" %} - -
    • -
    • - - - {% trans "Empty" %} - -
    • -
    • - - - {% trans "In menu" %} - -
    • -
    • - - - {% trans "Not in menu" %} - -
    • -
    • - - - {% trans "View page" %} - -
    • -
    • - - - {% trans "Home" %} - -
    • -
    • - - - {% trans "Softroot" %} - -
    • -
    • - - - {% trans "Apphook" %} - -
    • -
    -
    -
    -
    -{% endspaceless %} diff --git a/tests/django_cms/admin/cms/page/tree/menu.html.brocken b/tests/django_cms/admin/cms/page/tree/menu.html.brocken deleted file mode 100644 index b2be5f5..0000000 --- a/tests/django_cms/admin/cms/page/tree/menu.html.brocken +++ /dev/null @@ -1,282 +0,0 @@ -{% load i18n cms_admin admin_urls %} - -{# INFO: columns are defined in base.html options #} -{% spaceless %} - -{% endspaceless %} diff --git a/tests/django_cms/admin/cms/usersettings/change_form.html b/tests/django_cms/admin/cms/usersettings/change_form.html deleted file mode 100644 index 5b8006b..0000000 --- a/tests/django_cms/admin/cms/usersettings/change_form.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "admin/change_form.html" %} -{% load i18n cms_tags %} -{% block extrahead %} - {{ block.super }} - -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block object-tools %}{% endblock %} -{% block submit_buttons_bottom %} -
    - -
    -{% endblock %} diff --git a/tests/django_cms/cms/content.html b/tests/django_cms/cms/content.html deleted file mode 100644 index cddd070..0000000 --- a/tests/django_cms/cms/content.html +++ /dev/null @@ -1 +0,0 @@ -{{ content }} diff --git a/tests/django_cms/cms/dummy.html b/tests/django_cms/cms/dummy.html deleted file mode 100644 index f04fcf5..0000000 --- a/tests/django_cms/cms/dummy.html +++ /dev/null @@ -1 +0,0 @@ -{% extends template %} diff --git a/tests/django_cms/cms/plugins/alias.html b/tests/django_cms/cms/plugins/alias.html deleted file mode 100644 index 2982692..0000000 --- a/tests/django_cms/cms/plugins/alias.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load cms_alias_tags %} -{% if request and not instance.is_recursive %} - {% render_alias_plugin instance %} -{% endif %} diff --git a/tests/django_cms/cms/toolbar/clipboard.html b/tests/django_cms/cms/toolbar/clipboard.html deleted file mode 100644 index 58c14fe..0000000 --- a/tests/django_cms/cms/toolbar/clipboard.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load i18n cms_admin %} -
    -
    -
    - {% if clipboard_plugin %} - {% include cms_toolbar.templates.drag_item_template with clipboard="true" plugin=clipboard_plugin %} - {% endif %} -
    -
    diff --git a/tests/django_cms/cms/toolbar/content.html b/tests/django_cms/cms/toolbar/content.html deleted file mode 100644 index 4a428d2..0000000 --- a/tests/django_cms/cms/toolbar/content.html +++ /dev/null @@ -1,2 +0,0 @@ -{% if edit and placeholder %}{{ placeholder }}{% endif %} -{{ content }} diff --git a/tests/django_cms/cms/toolbar/dragbar.html b/tests/django_cms/cms/toolbar/dragbar.html deleted file mode 100644 index 841b57f..0000000 --- a/tests/django_cms/cms/toolbar/dragbar.html +++ /dev/null @@ -1,66 +0,0 @@ -{% load i18n l10n cms_tags %} -
    -
    - -
    -
    -
    -
    - - {% for language in placeholder.get_filled_languages %} - {% if language.code != LANGUAGE_CODE %} - - {% endif %} - {% endfor %} - - - {% render_extra_menu_items placeholder %} -
    -
    -
    -
    - -
    - {# plugin child classes here #} -
    -
    - {{ placeholder.get_label }} - {% if placeholder.is_static %} - - - - {% endif %} - - - {% trans "Expand all" %} - - - {% trans "Collapse all" %} - - -
    -
    diff --git a/tests/django_cms/cms/toolbar/dragitem.html b/tests/django_cms/cms/toolbar/dragitem.html deleted file mode 100644 index 5bee299..0000000 --- a/tests/django_cms/cms/toolbar/dragitem.html +++ /dev/null @@ -1,79 +0,0 @@ -{% load i18n l10n cms_tags %} -{% with allow_children=plugin.get_plugin_class.allow_children disable_child_plugins=plugin.get_plugin_class.disable_child_plugins %} -
    -
    - {% if not disabled_child %} -
    - -
    -
    - {% if not allow_children %} - - {% else %} - - {% endif %} -
    -
    - {% else %} -
    - -
    - {% endif %} -
    -
    - - - - - {% render_extra_menu_items plugin %} -
    -
    - {% if not clipboard %} -
    -
    - -
    - {# plugin child classes here #} -
    - {% endif %} - - {{ plugin.get_plugin_name }} - {{ plugin.get_short_description }} - -
    -
    - {% if plugin.child_plugin_instances %} - {% for child in plugin.child_plugin_instances %} - {% include cms_toolbar.templates.drag_item_template with plugin=child disabled_child=disable_child_plugins %}{% endfor %} - {% endif %} -
    -
    - {% endwith %} diff --git a/tests/django_cms/cms/toolbar/dragitem_extra_menu.html b/tests/django_cms/cms/toolbar/dragitem_extra_menu.html deleted file mode 100644 index 623feec..0000000 --- a/tests/django_cms/cms/toolbar/dragitem_extra_menu.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} - -{% for item in items %} - -{% endfor %} diff --git a/tests/django_cms/cms/toolbar/dragitem_menu.html b/tests/django_cms/cms/toolbar/dragitem_menu.html deleted file mode 100644 index b0d379b..0000000 --- a/tests/django_cms/cms/toolbar/dragitem_menu.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} -{% regroup plugin_menu by module as module_list %} -{% for module in module_list %} -
    - - {% if module.grouper %} - {{ module.grouper|capfirst }} - {% else %} - {% trans "Available plugins" %} - {% endif %} - -
    - {% for p in module.list %} - {% if p.value != 'AliasPlugin' and p.value != 'PlaceholderPlugin' %} - - {% endif %} - {% endfor %} -{% endfor %} diff --git a/tests/django_cms/cms/toolbar/items/break.html b/tests/django_cms/cms/toolbar/items/break.html deleted file mode 100644 index b457173..0000000 --- a/tests/django_cms/cms/toolbar/items/break.html +++ /dev/null @@ -1,3 +0,0 @@ -
  • - ----- -
  • diff --git a/tests/django_cms/cms/toolbar/items/button.html b/tests/django_cms/cms/toolbar/items/button.html deleted file mode 100644 index 4b0c543..0000000 --- a/tests/django_cms/cms/toolbar/items/button.html +++ /dev/null @@ -1,4 +0,0 @@ - - {{ name }} - diff --git a/tests/django_cms/cms/toolbar/items/button_list.html b/tests/django_cms/cms/toolbar/items/button_list.html deleted file mode 100644 index bd11efb..0000000 --- a/tests/django_cms/cms/toolbar/items/button_list.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -{% if 'cms-toolbar-item-cms-mode-switcher' in extra_classes %} -
    - - - -
    -{% else %} -
    - {% for button in buttons %}{{ button.render }}{% endfor %} -
    -{% endif %} diff --git a/tests/django_cms/cms/toolbar/items/button_modal.html b/tests/django_cms/cms/toolbar/items/button_modal.html deleted file mode 100644 index 190e93d..0000000 --- a/tests/django_cms/cms/toolbar/items/button_modal.html +++ /dev/null @@ -1,5 +0,0 @@ - - {{ name }} - diff --git a/tests/django_cms/cms/toolbar/items/button_sideframe.html b/tests/django_cms/cms/toolbar/items/button_sideframe.html deleted file mode 100644 index e8f61e0..0000000 --- a/tests/django_cms/cms/toolbar/items/button_sideframe.html +++ /dev/null @@ -1,5 +0,0 @@ - - {{ name }} - diff --git a/tests/django_cms/cms/toolbar/items/dropdown.html b/tests/django_cms/cms/toolbar/items/dropdown.html deleted file mode 100644 index 2cea9cb..0000000 --- a/tests/django_cms/cms/toolbar/items/dropdown.html +++ /dev/null @@ -1,20 +0,0 @@ -
    - {% if primary_button.has_no_action %} - {{ primary_button.render }} - {% else %} -
    - {{ primary_button.render }} - - - -
    - {% endif %} -
      - {% for button in buttons %} -
    • - {{ button.render }} -
    • - {% endfor %} -
    -
    diff --git a/tests/django_cms/cms/toolbar/items/dropdown_button.html b/tests/django_cms/cms/toolbar/items/dropdown_button.html deleted file mode 100644 index ecdc8b6..0000000 --- a/tests/django_cms/cms/toolbar/items/dropdown_button.html +++ /dev/null @@ -1,5 +0,0 @@ - - {{ name }} - - diff --git a/tests/django_cms/cms/toolbar/items/item_ajax.html b/tests/django_cms/cms/toolbar/items/item_ajax.html deleted file mode 100644 index 7df7dd0..0000000 --- a/tests/django_cms/cms/toolbar/items/item_ajax.html +++ /dev/null @@ -1,12 +0,0 @@ -
  • - - - {{ name }} - - -
  • diff --git a/tests/django_cms/cms/toolbar/items/item_link.html b/tests/django_cms/cms/toolbar/items/item_link.html deleted file mode 100644 index 9a14832..0000000 --- a/tests/django_cms/cms/toolbar/items/item_link.html +++ /dev/null @@ -1,9 +0,0 @@ -
  • - - - {{ name }} - - -
  • diff --git a/tests/django_cms/cms/toolbar/items/item_modal.html b/tests/django_cms/cms/toolbar/items/item_modal.html deleted file mode 100644 index 137ffca..0000000 --- a/tests/django_cms/cms/toolbar/items/item_modal.html +++ /dev/null @@ -1,11 +0,0 @@ -
  • - - - {{ name }} - - -
  • diff --git a/tests/django_cms/cms/toolbar/items/item_sideframe.html b/tests/django_cms/cms/toolbar/items/item_sideframe.html deleted file mode 100644 index 1081c7f..0000000 --- a/tests/django_cms/cms/toolbar/items/item_sideframe.html +++ /dev/null @@ -1,11 +0,0 @@ -
  • - - - {{ name }} - - -
  • diff --git a/tests/django_cms/cms/toolbar/items/live_draft.html b/tests/django_cms/cms/toolbar/items/live_draft.html deleted file mode 100644 index 81c448b..0000000 --- a/tests/django_cms/cms/toolbar/items/live_draft.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -{% spaceless %} -
    - {% if cms_toolbar.edit_mode_active %} - - {% trans "View published" %} - - {% else %} - - {% trans "Edit" %} - - {% endif %} -
    -{% endspaceless %} diff --git a/tests/django_cms/cms/toolbar/items/login.html b/tests/django_cms/cms/toolbar/items/login.html deleted file mode 100644 index fb0f3a6..0000000 --- a/tests/django_cms/cms/toolbar/items/login.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load i18n sekizai_tags cms_tags %} -{% url 'logout' as logout_url %} - diff --git a/tests/django_cms/cms/toolbar/items/logo.html b/tests/django_cms/cms/toolbar/items/logo.html deleted file mode 100644 index 0001196..0000000 --- a/tests/django_cms/cms/toolbar/items/logo.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load i18n %} - diff --git a/tests/django_cms/cms/toolbar/items/menu.html b/tests/django_cms/cms/toolbar/items/menu.html deleted file mode 100644 index 4549960..0000000 --- a/tests/django_cms/cms/toolbar/items/menu.html +++ /dev/null @@ -1,14 +0,0 @@ -
  • - - - {{ title }} - - - {% if items %} -
      - {% for item in items %}{{ item.render }}{% endfor %} -
    - {% endif %} -
  • diff --git a/tests/django_cms/cms/toolbar/plugin.html b/tests/django_cms/cms/toolbar/plugin.html deleted file mode 100644 index aa4dc11..0000000 --- a/tests/django_cms/cms/toolbar/plugin.html +++ /dev/null @@ -1,44 +0,0 @@ -{% spaceless %} - {% load i18n l10n sekizai_tags static cms_tags %} - -{% endspaceless %} -{% if content %} - {{ content }}{% elif render_model_icon %} - -{% elif render_model_add %} - -{% else %} - {{ rendered_content }} -{% endif %} -{% spaceless %} - - {% addtoblock "js" %} - -CMS._plugins.push(['cms-plugin-{% if generic %}{{ generic.app_label }}-{{ generic.model_name }}-{% if attribute_name %}{{ attribute_name|slugify }}-{% endif %}{% endif %}{{ instance.pk|unlocalize }}', { - type: {% if generic %}'generic'{% else %}'plugin'{% endif %}, - placeholder_id: '{{ instance.placeholder_id|unlocalize }}', - plugin_name: '{{ instance.get_plugin_name|default:"" }}', - plugin_type: '{{ instance.plugin_type }}', - plugin_id: '{{ instance.pk|unlocalize }}', - plugin_language: '{{ instance.language|default:"" }}', - {% if instance.node_id %} - plugin_parent: '{{ instance.parent_page.pk|unlocalize }}', - {% else %} - plugin_parent: '{{ instance.parent_id|unlocalize }}', - {% endif %} - plugin_order: '{{ instance.plugin_order }}',{% language request.toolbar.toolbar_language %} - plugin_restriction: [{% for cls in allowed_child_classes %}"{{ cls }}"{% if not forloop.last %},{% endif %}{% endfor %}], - plugin_parent_restriction: [{% for cls in allowed_parent_classes %}"{{ cls }}"{% if not forloop.last %},{% endif %}{% endfor %}], - onClose: {% if refresh_page %}'REFRESH_PAGE'{% else %}{% if redirect_on_close %}'{{ redirect_on_close }}'{% else %}false{% endif %}{% endif %}, - addPluginHelpTitle: '{% trans "Add plugin to" %} {{ instance.get_plugin_name|escapejs }}', - urls: { - add_plugin: '{% if add_url %}{{ add_url }}{% else %}{% cms_admin_url "cms_page_add_plugin" %}{% endif %}', - edit_plugin: '{% if edit_url %}{{ edit_url }}{% elif instance %}{% cms_admin_url "cms_page_edit_plugin" instance.pk %}{% endif %}', - move_plugin: '{% if move_url %}{{ move_url }}{% else %}{% cms_admin_url "cms_page_move_plugin" %}{% endif %}', - delete_plugin: '{% if delete_url %}{{ delete_url }}{% elif instance %}{% cms_admin_url "cms_page_delete_plugin" instance.pk %}{% endif %}', - copy_plugin: '{% if copy_url %}{{ copy_url }}{% else %}{% cms_admin_url "cms_page_copy_plugins" %}{% endif %}' - } {% endlanguage %} -}]); - - {% endaddtoblock %} -{% endspaceless %} diff --git a/tests/django_cms/cms/toolbar/structure.html b/tests/django_cms/cms/toolbar/structure.html deleted file mode 100644 index 031284d..0000000 --- a/tests/django_cms/cms/toolbar/structure.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load cms_tags cms_js_tags i18n sekizai_tags %} - - - - - {{ object.get_page_title }} - {% render_block "css" %} - - - {% cms_toolbar %} - {% render_block "js" %} - {% language cms_toolbar.toolbar_language %} - {% render_cms_structure_js cms_toolbar.structure_renderer object %} - {% endlanguage %} - - diff --git a/tests/django_cms/cms/toolbar/toolbar.html b/tests/django_cms/cms/toolbar/toolbar.html deleted file mode 100644 index 24208e7..0000000 --- a/tests/django_cms/cms/toolbar/toolbar.html +++ /dev/null @@ -1,38 +0,0 @@ -{% load i18n l10n cms_tags cms_js_tags %} -
    - {% block toolbar_top %}{% endblock toolbar_top %} - {# start: toolbar #} -
    -
    -
    - {% include "cms/toolbar/items/logo.html" %} - {% if not user.is_authenticated %} - {% include "cms/toolbar/items/login.html" %} - {% else %} - - {% endif %} -
    -
    - {% for item in cms_toolbar.get_right_items %} - {{ item.render }} - {% endfor %} -
    -
    - {# end: toolbar #} - {% block toolbar_bottom %}{% endblock toolbar_bottom %} -
    diff --git a/tests/django_cms/cms/toolbar/toolbar_javascript.html b/tests/django_cms/cms/toolbar/toolbar_javascript.html deleted file mode 100644 index aebe60f..0000000 --- a/tests/django_cms/cms/toolbar/toolbar_javascript.html +++ /dev/null @@ -1,150 +0,0 @@ -{% load i18n l10n sekizai_tags static cms_tags cms_js_tags cms_static %} -{% addtoblock "css" %} - -{% endaddtoblock %} -{% for css in cms_toolbar.media.render_css %} - {% addtoblock "css" %} - {{ css }} - {% endaddtoblock %} -{% endfor %} -{% addtoblock "js" %} - - -{% endaddtoblock %} -{% if cms_toolbar.clipboard_plugin %}{% render_plugin_init_js cms_toolbar.clipboard_plugin %}{% endif %} -{% for js in cms_toolbar.media.render_js %} - {% addtoblock "js" %}{{ js }}{% endaddtoblock %} - {% endfor %} diff --git a/tests/django_cms/cms/toolbar/toolbar_with_structure.html b/tests/django_cms/cms/toolbar/toolbar_with_structure.html deleted file mode 100644 index 23134ea..0000000 --- a/tests/django_cms/cms/toolbar/toolbar_with_structure.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends "cms/toolbar/toolbar.html" %} -{% load i18n l10n %} -{% block toolbar_top %} -
    - {% trans "Double-click to edit" %} - -
    -
    - {% trans "Tap to edit" %} - -
    -{% endblock %} -{% block toolbar_bottom %} - {# start: messages #} -
    -
    - -
    -
    -
    - {# end: messages #} -
    -
    -
    -
    -
    - {% spaceless %} -
    -
    - - -
    -
    - -
    -
    - {% endspaceless %} -
    - {% if cms_toolbar.edit_mode_active %} - {% include 'cms/toolbar/clipboard.html' with clipboard_plugin=cms_toolbar.clipboard_plugin %} - {% endif %} -
    -
    - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    - {# start: structure #} -
    -
    - {% if cms_renderer.load_structure %} - {% for placeholder in cms_renderer.get_rendered_editable_placeholders %} -
    - {% include cms_toolbar.templates.dragbar_template with placeholder=placeholder %} -
    -
    - {% trans "Drop a plugin here" %} -
    - {% for plugin in placeholder.get_cached_plugins %} - {% include cms_toolbar.templates.drag_item_template with plugin=plugin %} - {% endfor %} -
    -
    - {% endfor %} - {% endif %} -
    -
    - {# end: structure #} - {% if cms_toolbar.redirect_url %} -
    -
    -

    {% trans "This page has no preview!" %}

    -

    - {% trans "It is being redirected to:" %} - {{ cms_toolbar.redirect_url }} -

    -
    -
    - {% endif %} - - {% endblock toolbar_bottom %} diff --git a/tests/django_cms/cms/welcome.html b/tests/django_cms/cms/welcome.html deleted file mode 100644 index b503ef8..0000000 --- a/tests/django_cms/cms/welcome.html +++ /dev/null @@ -1,125 +0,0 @@ - -{% load i18n static cms_tags cms_static sekizai_tags %} - - - - - {% trans "django CMS" %} - - - {% render_block "css" %} - - - - - {% cms_toolbar %} - {% language request.toolbar.toolbar_language %} -
    -
    -

    - - {% trans "Installation successful!" %} -

    - -
    - {{ request.version }} -
    -

    - {% if user.is_authenticated %} - {% trans "Add your first page" %} - {% else %} - {% trans "Please log in" %} - {% endif %} -

    -

    - {% blocktrans %} - Welcome to django CMS version - {{ cms_version }} - . - {% endblocktrans %} -

    -

    - {% url "admin:cms_page_add" as admin_add_page %} - {% if user.is_authenticated %} - {% blocktrans %} - - Add the first page - - to the system to continue. - {% endblocktrans %} - {% else %} - {% blocktrans %} - JavaScript seems to be disabled so please - - add a page - - manually. - {% endblocktrans %} - {% endif %} -

    -
    -
    -

    {% trans "Installation Notes" %}

    - - {% blocktrans %} -

    - If you don't see the django CMS logo at the top, make sure - you linked the - - static/cms - - folder to your - static files. -

    - {% endblocktrans %} - {% if django_debug %} - {% blocktrans %} -

    - You're seeing this message because you have - - DEBUG = True - - in your django settings file and - haven't added any pages yet. -

    - {% endblocktrans %} - {% endif %} -
    -
    - {% endlanguage %} - {% render_block "js" %} - {% language request.toolbar.toolbar_language %} - - {% endlanguage %} - - diff --git a/tests/django_cms/cms/widgets/applicationconfigselect.html b/tests/django_cms/cms/widgets/applicationconfigselect.html deleted file mode 100644 index f46061e..0000000 --- a/tests/django_cms/cms/widgets/applicationconfigselect.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n static %} -{% include 'django/forms/widgets/select.html' %} -{{ widget.script_init|safe }} - diff --git a/tests/django_cms/cms/widgets/pageselectwidget.html b/tests/django_cms/cms/widgets/pageselectwidget.html deleted file mode 100644 index db16509..0000000 --- a/tests/django_cms/cms/widgets/pageselectwidget.html +++ /dev/null @@ -1,2 +0,0 @@ -{% include 'django/forms/widgets/multiwidget.html' %} -{{ widget.script_init|safe }} diff --git a/tests/django_cms/cms/widgets/pagesmartlinkwidget.html b/tests/django_cms/cms/widgets/pagesmartlinkwidget.html deleted file mode 100644 index 81514a1..0000000 --- a/tests/django_cms/cms/widgets/pagesmartlinkwidget.html +++ /dev/null @@ -1,2 +0,0 @@ -{% include 'django/forms/widgets/text.html' %} -{{ widget.script_init|safe }} diff --git a/tests/django_cms/cms/wizards/base.html b/tests/django_cms/cms/wizards/base.html deleted file mode 100755 index 26d901c..0000000 --- a/tests/django_cms/cms/wizards/base.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load static cms_static %} -{% block extrastyle %}{{ block.super }}{% endblock %} -{% block bodyclass %}cms-admin cms-admin-modal{% endblock %} -{% block content %} -
    - {% block wizard %}{% endblock %}
    {% endblock %} - {% block extrahead %} - {{ block.super }} - - - {{ form.media }} - {% endblock %} diff --git a/tests/django_cms/cms/wizards/create.html b/tests/django_cms/cms/wizards/create.html deleted file mode 100755 index 8b5f654..0000000 --- a/tests/django_cms/cms/wizards/create.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "cms/wizards/base.html" %} -{% load i18n admin_urls %} -{% block wizard %} -

    {% trans "Create" %} {{ wizard_entry.title }}

    -
    - {% csrf_token %} - {{ wizard.management_form }} - {% if form.errors %} -

    - {% blocktrans count form.errors|length as counter %} - Please correct the error below.{% plural %}Please correct the errors below. - {% endblocktrans %} -

    - {% endif %} -
    - {% include "cms/wizards/includes/form_fields.html" %} -
    -
    - - -
    -
    -{% endblock %} diff --git a/tests/django_cms/cms/wizards/done.html b/tests/django_cms/cms/wizards/done.html deleted file mode 100644 index 56215f7..0000000 --- a/tests/django_cms/cms/wizards/done.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/tests/django_cms/cms/wizards/includes/form_fields.html b/tests/django_cms/cms/wizards/includes/form_fields.html deleted file mode 100755 index ec1db95..0000000 --- a/tests/django_cms/cms/wizards/includes/form_fields.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load i18n %} -{% csrf_token %} -{{ inlineformset.management_form }} -{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} -
    - {% for field in form.visible_fields %} -
    - {% if field.errors %} -
      - {% for error in field.errors %} -
    • - {{ error }} -
    • - {% endfor %} -
    - {% endif %} -
    - - {{ field }} - {% if field.help_text %} -

    - {{ field.help_text }} -

    - {% endif %} -
    -
    - {% endfor %} -
    diff --git a/tests/django_cms/cms/wizards/start.html b/tests/django_cms/cms/wizards/start.html deleted file mode 100755 index eb8bd61..0000000 --- a/tests/django_cms/cms/wizards/start.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "cms/wizards/base.html" %} -{% load i18n %} -{% block wizard %} -

    {% trans "Create" %}

    - -{% endblock %} diff --git a/tests/django_cms/cms/wizards/wizardoptionwidget.html b/tests/django_cms/cms/wizards/wizardoptionwidget.html deleted file mode 100644 index 536899b..0000000 --- a/tests/django_cms/cms/wizards/wizardoptionwidget.html +++ /dev/null @@ -1,11 +0,0 @@ -{% for group, entries, index in widget.optgroups %} - {% for entry in entries %} - - {% endfor %} -{% endfor %} diff --git a/tests/django_ledger/account_create.html b/tests/django_ledger/account_create.html deleted file mode 100644 index 82ebda5..0000000 --- a/tests/django_ledger/account_create.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/account_create_child.html b/tests/django_ledger/account_create_child.html deleted file mode 100644 index 0d84e25..0000000 --- a/tests/django_ledger/account_create_child.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -

    {{ page_title }}

    -

    - {{ account }} -

    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/account_detail.html b/tests/django_ledger/account_detail.html deleted file mode 100644 index fd32dc7..0000000 --- a/tests/django_ledger/account_detail.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block aux_menu %} - {% period_navigation 'account-detail' %} -{% endblock %} -{% block view_content %} -
    -
    -

    {{ account.code }}: {{ account.name }}

    -

    {% trans 'Account Transaction List Report' %}

    -

    - {% if view_date %} - {{ from_date | date:'m/d/Y' }} - {% else %} - {{ from_date | date:'m/d/Y' }} - {{ to_date | date:'m/d/Y' }} - {% endif %} -

    -
    -
    - {% account_txs_table transactions %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/account_list.html b/tests/django_ledger/account_list.html deleted file mode 100644 index aa126eb..0000000 --- a/tests/django_ledger/account_list.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - - {% trans 'Create Account' %} - - - {% trans 'Back' %} - - {% accounts_table asset_accounts 'Asset Accounts' %} - {% accounts_table liability_accounts 'Liability Accounts' %} - {% accounts_table equity_accounts 'Equity Accounts' %} -
    -{% endblock %} diff --git a/tests/django_ledger/account_update.html b/tests/django_ledger/account_update.html deleted file mode 100644 index 64508ba..0000000 --- a/tests/django_ledger/account_update.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/auth/login.html b/tests/django_ledger/auth/login.html deleted file mode 100644 index 316e116..0000000 --- a/tests/django_ledger/auth/login.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load static %} -{% block nav %}{% endblock %} -{% block header %}{% endblock %} -{% block content %} -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    - {# -

    - #} - {# Hero title#} - {# -

    - #} - {# -

    - #} - {# Hero subtitle#} - {# -

    - #} -
    - {% csrf_token %} -
    -
    - {{ form }} -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -{% endblock %} -{% block footer %}{% endblock %} diff --git a/tests/django_ledger/balance_sheet.html b/tests/django_ledger/balance_sheet.html deleted file mode 100644 index 7f9b993..0000000 --- a/tests/django_ledger/balance_sheet.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block aux_menu %} - {% if entity %} -
    - {% period_navigation 'entity-bs' %} -
    - {% elif ledger %} -
    - {% period_navigation 'ledger-bs' %} -
    - {% elif unit_model %} -
    - {% period_navigation 'unit-bs' %} -
    - {% endif %} -{% endblock %} -{% block view_content %} -
    -
    -
    -
    -
    - {% if entity %} -

    {% session_entity_name %}

    - {% elif ledger %} -

    {{ ledger.name }}

    - {% elif unit_model %} -

    {{ ledger.name }}

    - {% endif %} -

    {% trans 'Balance Sheet' %}

    - {% if unit_model %} -

    - {{ unit_model.name }} {% trans 'Unit' %} -

    - {% endif %} -

    - {% if quarter %} - {{ year }} | Q{{ quarter }} - {% elif month %}{{ from_date | date:'F, Y' }} - {% else %} - {% trans 'Fiscal Year' %} {{ year }} - {% endif %} -

    -

    - As Of {{ to_date | date:'m/d/Y' }} -

    -
    -
    -
    - {% balance_sheet_table io_model=object to_date=to_date %} - {% if entity %} - - {% trans 'Go Back' %} - - {% elif ledger %} - - {% trans 'Go Back' %} - - {% endif %} - - {% trans 'By Unit' %} - -
    -
    -{% endblock %} diff --git a/tests/django_ledger/bank_account_create.html b/tests/django_ledger/bank_account_create.html deleted file mode 100644 index e720948..0000000 --- a/tests/django_ledger/bank_account_create.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/bank_account_list.html b/tests/django_ledger/bank_account_list.html deleted file mode 100644 index ee0e99f..0000000 --- a/tests/django_ledger/bank_account_list.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - - {% bank_account_table bank_accounts %} -
    -{% endblock %} diff --git a/tests/django_ledger/bank_account_update.html b/tests/django_ledger/bank_account_update.html deleted file mode 100644 index 709d44f..0000000 --- a/tests/django_ledger/bank_account_update.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {{ bank_account.name }}

    -

    - {% trans 'Account' %}: {{ bank_account.account_number }} -

    -

    - {% trans 'Routing' %}: {{ bank_account.routing_number }} -

    -

    {% trans 'ABA' %}: {{ bank_account.aba_number }}

    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/base.html b/tests/django_ledger/base.html deleted file mode 100644 index 11822ea..0000000 --- a/tests/django_ledger/base.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load static %} -{% load django_ledger %} -{% load cache %} - - - - - - {% session_entity_name %} | {{ page_title }} - - - - - {% block nav %} - {% include 'django_ledger/includes/nav.html' %}{% endblock %} - {% block header %} - {% include 'django_ledger/includes/page_header.html' with header_title=header_title %}{% endblock %} - {% block breadcrumbs %}{% endblock %} - {% block messages %} - {% include 'django_ledger/includes/messages.html' with messages=messages %}{% endblock %} - {% block content %}{% endblock %} - {% block footer %} - {% include 'django_ledger/includes/footer.html' %}{% endblock %} - {% block script_bottom %} - - - {% endblock %} - - diff --git a/tests/django_ledger/bill_create.html b/tests/django_ledger/bill_create.html deleted file mode 100644 index 63dca76..0000000 --- a/tests/django_ledger/bill_create.html +++ /dev/null @@ -1,115 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    - {% csrf_token %} - {% if po_model %} -
    -

    {% trans 'Bill for' %} {{ po_model.po_number }}

    -

    {% trans 'Bill for' %} {{ po_model.po_title }}

    - {% for po_item in po_items %} -

    - {{ po_item }} -

    - {% endfor %} -
    - {% endif %} -
    -
    -
    -
    -
    -

    - {% trans 'Vendor Information' %} -

    -
    -
    -
    -
    - {{ form.vendor }} -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Bill Amount & Terms' %} -

    -
    -
    -
    -
    - {{ form.xref }} -
    -
    -
    -
    - {{ form.date }} -
    -
    -
    - -
    - {{ form.terms }} -
    -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Connected Accounts' %} -

    -
    -
    -
    - -
    - {{ form.cash_account }} -
    -
    -
    - -
    - {{ form.prepaid_account }} -
    -
    -
    - -
    - {{ form.unearned_account }} -
    -
    -
    -
    -
    -
    - - - Back - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/bill_delete.html b/tests/django_ledger/bill_delete.html deleted file mode 100644 index e2fc517..0000000 --- a/tests/django_ledger/bill_delete.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% csrf_token %} -
    -
    -

    - Are you sure you want to delete - Bill {{ bill.bill_number }} -

    -
    -
    -

    - All transactions associated with this Bill will be deleted. - If you want to void the bill instead, click - - here - -

    -
    -
    - - {% trans 'Go Back' %} - - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/bill_detail.html b/tests/django_ledger/bill_detail.html deleted file mode 100644 index f7fa2dc..0000000 --- a/tests/django_ledger/bill_detail.html +++ /dev/null @@ -1,168 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% include 'django_ledger/includes/card_bill.html' with bill=bill entity_slug=view.kwargs.entity_slug style='bill-detail' %} -
    -
    - {% include 'django_ledger/includes/card_vendor.html' with vendor=bill.vendor %} -
    - -
    -
    -
    -
    - {% if bill.is_configured %} -
    - -
    - {% endif %} -
    -
    -
    -

    - {% icon 'grommet-icons:transaction' 36 %} - {% trans 'Bill Items' %} -

    -
    -
    -
    - - - - - - - - - - - - - {% for bill_item in bill_items %} - - - - - - - - - {% endfor %} - - - - - - - - - - - -
    {% trans 'Item' %}{% trans 'Entity Unit' %}{% trans 'Unit Cost' %}{% trans 'Quantity' %}{% trans 'Total' %}{% trans 'PO' %}
    {{ bill_item.item_model }} - {% if bill_item.entity_unit %}{{ bill_item.entity_unit }}{% endif %} - {% currency_symbol %}{{ bill_item.unit_cost | currency_format }}{{ bill_item.quantity }}{% currency_symbol %}{{ bill_item.total_amount | currency_format }} - {% if bill_item.po_model_id %} - - {% trans 'View PO' %} - - {% endif %} -
    {% trans 'Total' %}{% currency_symbol %}{{ total_amount_due | currency_format }}
    -
    -
    -
    -
    -
    -
    -
    -

    - {% icon 'grommet-icons:transaction' 36 %} - {% trans 'Bill Transactions' %} -

    -
    -
    - {% bill_txs_table bill %} -
    -
    -
    -
    -
    -
    - {% endblock %} diff --git a/tests/django_ledger/bill_list.html b/tests/django_ledger/bill_list.html deleted file mode 100644 index 18ec04a..0000000 --- a/tests/django_ledger/bill_list.html +++ /dev/null @@ -1,121 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    - {% if month %} -

    {{ month | date:'F Y' }}

    - {% elif year %} -

    - Year {{ year | date:'Y' }} - Bills -

    - {% else %} -

    {% trans 'Latest Bills' %}

    - {% endif %} -
    - -
    -
    - {% if previous_month %} - - {% endif %} - {% if next_month %} - - {% endif %} - {% if previous_year %} - - {% endif %} - {% if next_year %} - - {% endif %} - {% if page_obj %} - {% if page_obj.has_previous %} - - {% endif %} -
    -

    - page {{ page_obj.number }} - of {{ page_obj.paginator.num_pages }} -

    -
    - {% if page_obj.has_next %} - - {% endif %} - {% endif %} -
    -
    - {% bill_table bills %} - {% if year %} -
    {% trans 'Go to month:' %}
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date | date:'F' }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% else %} -
    {% trans 'Go to year:' %}
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date.year }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% endif %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/bill_update.html b/tests/django_ledger/bill_update.html deleted file mode 100644 index c98bcb2..0000000 --- a/tests/django_ledger/bill_update.html +++ /dev/null @@ -1,234 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - {% if form.errors %}{{ form.errors }}{% endif %} - {% csrf_token %} -
    -
    - {% include 'django_ledger/includes/card_vendor.html' with vendor=bill.vendor %} -
    -
    -
    -
    -

    - {% trans 'Bill Amount & Terms' %} -

    -
    -
    -
    -

    - Bill Amount: - ${{ bill.amount_due | currency_format }} - -

    - -

    Bill Date: {{ bill.date }}

    -

    Terms: {{ bill.get_terms_display }}

    -

    - External Reference: {{ bill.xref }} - -

    -

    Accrue Bill: {{ form.accrue }}

    - -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Bill State' %} -

    -
    -
    -
    - - {% csrf_token %} -
    - -
    - {{ form.amount_paid }} -
    -
    -
    - -
    -
    - -
    - {{ form.paid_date }} -
    -
    -
    - -
    - {{ form.progress }} -
    -
    - - - {% trans 'Bill List' %} - - - {% trans 'Dashboard' %} - - -
    -
    -
    -
    - {% if bill.is_configured %} -
    -
    -
    -

    - {% trans 'Bill State' %} -

    -
    -
    -
    -
    -
    -

    {% trans 'Bill State' %}

    -

    - {{ bill.cash_account }}: - ${{ bill.get_amount_cash | currency_format }} -

    -

    - {{ bill.prepaid_account }}: - ${{ bill.get_amount_receivable | currency_format }} -

    -

    - {{ bill.unearned_account }}: - ${{ bill.get_amount_payable | currency_format }} -

    -

    - {{ bill.earnings_account }}: - ${{ bill.get_amount_earned | currency_format }} -

    -
    -
    -

    {% trans 'Ledger State' %}

    -

    - {{ bill.cash_account }}: ${{ bill.amount_paid | currency_format }} -

    -

    - {{ bill.prepaid_account }}: - ${{ bill.amount_receivable | currency_format }} -

    -

    - {{ bill.unearned_account }}: - ${{ bill.amount_unearned | currency_format }} -

    -

    - {{ bill.earnings_account }}: - ${{ bill.amount_earned | currency_format }} -

    -
    - {% now "Y" as current_year %} - {% now "m" as current_month %} - - - -
    -
    -
    -
    -
    - {% else %} -
    -
    -
    -

    - {% trans 'Bill Configuration' %} -

    -
    -
    -
    -
    -
    - - {{ form.cash_account }} -
    -
    -
    -
    - - {{ form.prepaid_account }} -
    -
    -
    -
    - - {{ form.unearned_account }} -
    -
    -
    -
    -
    -
    - {% endif %} -
    - - {% bill_item_formset_table item_formset %} -{% endblock %} diff --git a/tests/django_ledger/bill_void.html b/tests/django_ledger/bill_void.html deleted file mode 100644 index ee8794e..0000000 --- a/tests/django_ledger/bill_void.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% csrf_token %} -
    -
    -

    - Are you sure you want to void - Bill {{ bill.bill_number }}? -

    -
    -
    -

    - All transactions associated with this Bill will be reversed as of today - {% now "jS F Y" %}. -

    -
    -
    - - {% trans 'Go Back' %} - - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/coa_update.html b/tests/django_ledger/coa_update.html deleted file mode 100644 index e77e146..0000000 --- a/tests/django_ledger/coa_update.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/customer_create.html b/tests/django_ledger/customer_create.html deleted file mode 100644 index 1d5e617..0000000 --- a/tests/django_ledger/customer_create.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {{ form.as_p }} - {% csrf_token %} -
    -
    - - - {% trans 'Go Back' %} - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/customer_list.html b/tests/django_ledger/customer_list.html deleted file mode 100644 index 34576c3..0000000 --- a/tests/django_ledger/customer_list.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} - - -{% endblock %} diff --git a/tests/django_ledger/customer_update.html b/tests/django_ledger/customer_update.html deleted file mode 100644 index d7eb630..0000000 --- a/tests/django_ledger/customer_update.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {{ form.as_p }} - {% csrf_token %} -
    -
    - - - {% trans 'Go Back' %} - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/data_import_job_list.html b/tests/django_ledger/data_import_job_list.html deleted file mode 100644 index 7ed07cf..0000000 --- a/tests/django_ledger/data_import_job_list.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - - {% trans 'Import OFX File' %} - - - {% trans 'Back' %} - - {% data_import_job_list_table %} -
    -{% endblock %} diff --git a/tests/django_ledger/data_import_job_txs.html b/tests/django_ledger/data_import_job_txs.html deleted file mode 100644 index d41c933..0000000 --- a/tests/django_ledger/data_import_job_txs.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -

    Pending Transactions

    - {% data_import_job_txs_pending %} -
    -
    -

    Imported Transactions

    - {% data_import_job_txs_imported %} -
    -
    - Back -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/data_import_ofx.html b/tests/django_ledger/data_import_ofx.html deleted file mode 100644 index 3bae24a..0000000 --- a/tests/django_ledger/data_import_ofx.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -
    - {% csrf_token %} -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -{% endblock %} -{% block script_bottom %} - {{ block.super }} - -{% endblock %} diff --git a/tests/django_ledger/entitiy_list.html b/tests/django_ledger/entitiy_list.html deleted file mode 100644 index 85c08f9..0000000 --- a/tests/django_ledger/entitiy_list.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load i18n %} -{% load static %} -{% block content %} -
    -
    -
    -
    -
    -
    -
    - {% trans 'My Entities' %} -
    -
    -
    - - - {% trans 'New Entity' %} - -
    -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/entity_create.html b/tests/django_ledger/entity_create.html deleted file mode 100644 index f71c84c..0000000 --- a/tests/django_ledger/entity_create.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_2.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    - {% csrf_token %} -
    -
    -
    -

    - - - - {% trans 'New Entity Information' %} -

    -
    -
    - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/entity_dashboard.html b/tests/django_ledger/entity_dashboard.html deleted file mode 100644 index 62b89a5..0000000 --- a/tests/django_ledger/entity_dashboard.html +++ /dev/null @@ -1,120 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block content %} -
    -
    -
    -
    -
    -
    - {% if view.kwargs.unit_slug or request.GET.unit %} - {% period_navigation 'unit-dashboard' %} - {% else %} - {% period_navigation 'entity-dashboard' %} - {% endif %} -
    -
    - {% navigation_menu 'desktop' %} -
    -
    -
    -
    -
    -
    - {% include 'django_ledger/includes/widget_bs.html' with tx_digest=tx_digest %} -
    -
    - {% include 'django_ledger/includes/widget_ic.html' with tx_digest=equity_digest %} -
    -
    -
    - {% chart_container pnl_chart_id pnl_chart_endpoint %} -
    -
    -
    - {% include 'django_ledger/includes/widget_ratios.html' with tx_digest=tx_digest %} -
    -
    -
    -
    -
    -
    - {# RECEIVABLES SECTION START #} -
    -
    -
    -

    {% trans 'Receivables' %}

    -

    - {% icon "ic:baseline-business" 16 %} - {{ entity.name }} -

    -
    -
    -
    -
    -
    -
    - {% if invoices %} -
    -
    - {% chart_container receivables_chart_id receivables_chart_endpoint %} -
    -
    - {% endif %} - {% for invoice in invoices %} -
    - {% include 'django_ledger/includes/card_invoice.html' with invoice=invoice entity_slug=entity.slug style='dashboard' %} -
    - {% endfor %} -
    - {% include 'django_ledger/includes/card_invoice.html' with create_invoice=True entity_slug=entity.slug %} -
    -
    -
    -
    - {# RECEIVABLES SECTION END #} - {# PAYABLES SECTION START #} -
    -
    -
    -

    {% trans 'Payables' %}

    -

    - {% icon "ic:baseline-business" 16 %} - {{ entity.name }} -

    -
    -
    -
    -
    -
    -
    - {% if bills %} -
    -
    - {% chart_container payables_chart_id payables_chart_endpoint %} -
    -
    - {% endif %} - {% for bill in bills %} -
    - {% include 'django_ledger/includes/card_bill.html' with bill=bill entity_slug=entity.slug style='dashboard' %} -
    - {% endfor %} -
    - {% include 'django_ledger/includes/card_bill.html' with create_bill=True entity_slug=entity.slug style='dashboard' %} -
    -
    -
    -
    - {# PAYABLES SECTION END #} -{% endblock %} -{% block script_bottom %} - {{ block.super }} - -{% endblock %} diff --git a/tests/django_ledger/entity_delete.html b/tests/django_ledger/entity_delete.html deleted file mode 100644 index 019773a..0000000 --- a/tests/django_ledger/entity_delete.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_2.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% csrf_token %} -
    -
    -

    - Are you sure you want to delete - Entity {{ entity.name }}? -

    -
    -
    -

    - All data associated with this entity will be deleted. -

    -
    -
    - - {% trans 'Go Back' %} - - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/entity_update.html b/tests/django_ledger/entity_update.html deleted file mode 100644 index 26e5cf5..0000000 --- a/tests/django_ledger/entity_update.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load i18n %} -{% load static %} -{% block content %} -
    -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/expense_create.html b/tests/django_ledger/expense_create.html deleted file mode 100644 index 36dd25d..0000000 --- a/tests/django_ledger/expense_create.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/expense_list.html b/tests/django_ledger/expense_list.html deleted file mode 100644 index 05f77d1..0000000 --- a/tests/django_ledger/expense_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'The Things I Pay For' %}

    -
    - -
    -
    - {% expense_item_table expense_list %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/expense_update.html b/tests/django_ledger/expense_update.html deleted file mode 100644 index cfcbd76..0000000 --- a/tests/django_ledger/expense_update.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/home.html b/tests/django_ledger/home.html deleted file mode 100644 index 92e559b..0000000 --- a/tests/django_ledger/home.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block content %} -
    -
    -
    - {% for entity in entities %} -
    - {% include 'django_ledger/includes/card_entity.html' with entity=entity %} -
    - {% endfor %} -
    - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/includes/breadcrumbs.html b/tests/django_ledger/includes/breadcrumbs.html deleted file mode 100644 index 72ec318..0000000 --- a/tests/django_ledger/includes/breadcrumbs.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load django_ledger %} -
    -
    -
    - {% nav_breadcrumbs %} -
    -
    -
    diff --git a/tests/django_ledger/includes/card_bill.html b/tests/django_ledger/includes/card_bill.html deleted file mode 100644 index a170873..0000000 --- a/tests/django_ledger/includes/card_bill.html +++ /dev/null @@ -1,181 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -{% if not create_bill %} - {% if style == 'dashboard' %} -
    -
    -

    - {% icon "ri:bill-line" 16 %} - {% trans 'Bill' %} -

    -

    - {{ bill.vendor.vendor_name }} -

    -

    - {{ bill.vendor.address_1 }} -

    - {% if not bill.is_past_due %} -

    - Due in: {{ bill.due_date | timeuntil }} -

    - {% else %} -

    - Past Due: {{ bill.due_date | timesince }} ago -

    - {% endif %} - {% if bill.progressible %} -

    - Is Accrued: - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} -

    - Is Progressible: - {% icon 'maki:roadblock-11' 24 %} - {% endif %} -

    - You Still Owe: - {% currency_symbol %}{{ bill.get_amount_open | currency_format }} -

    -

    - Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }} -

    -

    - Progressed: {{ bill.get_progress | percentage }} -

    -
    - - {{ bill.get_progress | percentage }} - - {# MARK AS PAID MODAL #} - {% mark_as_paid bill %} -
    - -
    - {% elif style == 'bill-detail' %} -
    -
    -

    - {% icon 'uil:bill' 36 %} - {% trans 'Bill Info' %} -

    -
    -
    - {% if bill.paid %} -

    - Is Paid - - {% icon 'ant-design:check-circle-filled' 48 %} - -

    -

    - Amount Paid: - - {% currency_symbol %}{{ bill.amount_paid | currency_format }} - -

    - {% else %} - {% if not bill.void %} -

    - Bill Amount: - - {% currency_symbol %}{{ bill.amount_due | currency_format }} - -

    - {% if not bill.is_past_due %} -

    - Due in: {{ bill.due_date | timeuntil }} -

    - {% else %} -

    - Due in: {{ bill.due_date | date }} -

    -

    - Past - Due: {{ bill.due_date | timesince }} ago -

    - {% endif %} -

    - You Still Owe: - {% currency_symbol %}{{ bill.get_amount_open | currency_format }} -

    - {% if bill.accrue %} -

    - Is Accrued: - {% icon 'ant-design:check-circle-filled' 24 %} -

    - {% else %} -

    - Is Accrued: - {% icon 'maki:roadblock-11' 24 %} -

    - {% endif %} -

    - Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }} -

    -

    - Progressed: {{ bill.get_progress | percentage }} -

    -
    - - {{ bill.get_progress | percentage }} - - - {# MARK AS PAID MODAL #} - {% mark_as_paid bill %} - {% else %} -

    - Bill Amount: - - {% currency_symbol %}{{ bill.amount_due | currency_format }} - -

    -

    - VOIDED {{ bill.void_date | date }} -

    - {% endif %} - {% endif %} -
    -
    - {% endif %} - {% else %} - - {% endif %} diff --git a/tests/django_ledger/includes/card_customer.html b/tests/django_ledger/includes/card_customer.html deleted file mode 100644 index 7c4cc69..0000000 --- a/tests/django_ledger/includes/card_customer.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load i18n %} -{% load django_ledger %} -
    -
    -

    - {% icon 'bi:person-lines-fill' 36 %} - {% trans 'Customer Information' %} -

    -
    -
    -
    -

    {{ customer.customer_name }}

    -

    - {% if customer.address_1 %} - {{ customer.address_1 }} -
    - {% endif %} - {% if customer.address_2 %} - {{ customer.address_2 }} -
    - {% endif %} - {% if customer.get_cszc %} - {{ customer.get_cszc }} -
    - {% endif %} - {% if customer.phone %} - {{ customer.phone }} -
    - {% endif %} - {% if customer.email %} - {{ customer.email }} -
    - {% endif %} - {% if customer.website %} - {{ customer.website }} -
    - {% endif %} -

    -
    -
    - -
    diff --git a/tests/django_ledger/includes/card_entity.html b/tests/django_ledger/includes/card_entity.html deleted file mode 100644 index 9be7184..0000000 --- a/tests/django_ledger/includes/card_entity.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load django_ledger %} -{% now "Y" as current_year %} -
    -
    -

    - {% icon "ic:baseline-business" 36 %} - {{ entity.name }} -

    -

    - {{ entity.address_1 }} -

    -

    - Created: {{ entity.created | timesince }} ago -

    -
    - -
    diff --git a/tests/django_ledger/includes/card_invoice.html b/tests/django_ledger/includes/card_invoice.html deleted file mode 100644 index de44b5a..0000000 --- a/tests/django_ledger/includes/card_invoice.html +++ /dev/null @@ -1,161 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -{% if not create_invoice %} - {% if style == 'dashboard' %} -
    -
    -

    - {% icon "bi:cash-stack" 16 %} - {% trans 'Invoice' %} -

    -

    - {{ invoice.customer.customer_name }} -

    -

    - {{ invoice.customer.address_1 }} -

    - {% if not invoice.is_past_due %} -

    - Due in: {{ invoice.due_date | timeuntil }} -

    - {% else %} -

    - Past - Due: {{ invoice.due_date | timesince }} ago -

    - {% endif %} - {% if invoice.progressible %} -

    - Is Progressible: - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} -

    - Is Progressible: - {% icon 'maki:roadblock-11' 24 %} - {% endif %} -

    - Owed to You: {% currency_symbol %}{{ invoice.get_amount_open | currency_format }} -

    -

    - Amount Paid: {% currency_symbol %}{{ invoice.amount_paid | currency_format }} -

    -

    - Progressed: {{ invoice.get_progress | percentage }} -

    -
    - - {{ invoice.get_progress | percentage }} - - {# MARK AS PAID MODAL #} - {% mark_as_paid invoice %} -
    - -
    - {% elif style == 'invoice-detail' %} -
    -
    -

    - {% icon 'uil:bill' 36 %} - {% trans 'Invoice Info' %} -

    -
    -
    - {% if invoice.paid %} -

    - Is Paid - - {% icon 'ant-design:check-circle-filled' 48 %} - -

    -

    - Amount Paid: - - {% currency_symbol %}{{ invoice.amount_paid | currency_format }} - -

    - {% else %} -

    - Invoice Amount: - - {% currency_symbol %}{{ invoice.amount_due | currency_format }} - -

    - {% if not invoice.is_past_due %} -

    - Due in: {{ invoice.due_date | timeuntil }} -

    - {% else %} -

    - Past - Due: {{ invoice.due_date | timesince }} ago -

    - {% endif %} -

    - Owed to You: {% currency_symbol %}{{ invoice.get_amount_open | currency_format }} -

    - {% if invoice.progressible %} -

    - Is Progressible: - {% icon 'ant-design:check-circle-filled' 24 %} -

    - {% else %} -

    - Is Progressible: - {% icon 'maki:roadblock-11' 24 %} -

    - {% endif %} -

    - Amount Paid: {% currency_symbol %}{{ invoice.amount_paid | currency_format }} -

    -

    - Progressed: {{ invoice.get_progress_percent }}% -

    -
    - - {{ invoice.get_progress | percentage }} - - {% endif %} - {# MARK AS PAID MODAL #} - {% mark_as_paid invoice %} -
    - -
    - {% endif %} - {% else %} - - {% endif %} diff --git a/tests/django_ledger/includes/card_markdown.html b/tests/django_ledger/includes/card_markdown.html deleted file mode 100644 index 8095004..0000000 --- a/tests/django_ledger/includes/card_markdown.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load trans from i18n %} -{% load django_ledger %} -{% if style == 'card_1' %} -
    -
    -
    -

    - {% if title %} - {{ title }} - {% else %} - {% trans 'Notes' %} - {% endif %} -

    -
    -
    -
    -
    - {% if notes_html %} - {% autoescape off %} - {{ notes_html | safe }} - {% endautoescape %} - {% else %} -

    - {% trans 'No available notes to display...' %} -

    - {% endif %} -
    -
    -
    -{% endif %} diff --git a/tests/django_ledger/includes/card_po.html b/tests/django_ledger/includes/card_po.html deleted file mode 100644 index 2161a29..0000000 --- a/tests/django_ledger/includes/card_po.html +++ /dev/null @@ -1,61 +0,0 @@ -{% load i18n %} -{% load django_ledger %} -{% if not create_po %} - {% if style == 'po-detail' %} -
    -
    -

    - {% icon 'uil:bill' 36 %} - {% trans 'Purchase Order Info' %} -

    -
    -
    -

    {{ po_model.po_number }}

    -

    - Status: - - {{ po_model.get_po_status_display }} - -

    -

    - Inventory Purchase: - {% if po_model.for_inventory %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} -

    -

    - Fulfilled: - {% if po_model.fulfilled %} - {% icon 'ant-design:check-circle-filled' 24 %} - {{ po_model.fulfillment_date | date }} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} -

    -
    - -
    - {% endif %} -{% else %} - -{% endif %} diff --git a/tests/django_ledger/includes/card_vendor.html b/tests/django_ledger/includes/card_vendor.html deleted file mode 100644 index db5e206..0000000 --- a/tests/django_ledger/includes/card_vendor.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load i18n %} -{% load django_ledger %} -
    -
    -

    - {% icon 'bi:person-lines-fill' 36 %} - {% trans 'Vendor Info' %} -

    -
    -
    -
    -

    {{ vendor.vendor_name }}

    -

    - {% if vendor.address_1 %} - {{ vendor.address_1 }} -
    - {% endif %} - {% if vendor.address_2 %} - {{ vendor.address_2 }} -
    - {% endif %} - {% if vendor.get_cszc %} - {{ vendor.get_cszc }} -
    - {% endif %} - {% if vendor.phone %} - {{ vendor.phone }} -
    - {% endif %} - {% if vendor.email %} - {{ vendor.email }} -
    - {% endif %} - {% if vendor.website %} - {{ vendor.website }} -
    - {% endif %} -

    -
    -
    - -
    diff --git a/tests/django_ledger/includes/footer.html b/tests/django_ledger/includes/footer.html deleted file mode 100644 index a526f4f..0000000 --- a/tests/django_ledger/includes/footer.html +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/tests/django_ledger/includes/messages.html b/tests/django_ledger/includes/messages.html deleted file mode 100644 index 2c3fa2a..0000000 --- a/tests/django_ledger/includes/messages.html +++ /dev/null @@ -1,11 +0,0 @@ -{% if messages %} - {# Messages Container #} -
    - {% for msg in messages %} -
    - - {{ msg | safe }} -
    - {% endfor %} -
    -{% endif %} diff --git a/tests/django_ledger/includes/nav.html b/tests/django_ledger/includes/nav.html deleted file mode 100644 index b0ceaee..0000000 --- a/tests/django_ledger/includes/nav.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load static %} -{% load django_ledger %} -{% load cache %} -{% load i18n %} -{% now "Y" as current_year %} - diff --git a/tests/django_ledger/includes/page_header.html b/tests/django_ledger/includes/page_header.html deleted file mode 100644 index 12597e7..0000000 --- a/tests/django_ledger/includes/page_header.html +++ /dev/null @@ -1,52 +0,0 @@ -{% load static %} -{% load i18n %} -{% load django_ledger %} -{% if not header_style %} -
    -
    -
    -
    - {% if header_subtitle_icon %} -
    - {% icon header_subtitle_icon 36 %} -
    -
    - {% icon header_subtitle_icon 48 %} -
    -
    - {% icon header_subtitle_icon 60 %} -
    - {% endif %} -
    -

    {{ header_title }}

    - {% if header_subtitle %}

    {{ header_subtitle }}

    {% endif %} -
    -
    -
    -
    - {% else %} -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    - {% if header_title %} -
    -
    -

    - {{ header_title }} -

    -
    -
    - {% endif %} -
    -
    -
    - {% endif %} diff --git a/tests/django_ledger/includes/widget_bs.html b/tests/django_ledger/includes/widget_bs.html deleted file mode 100644 index ea64d64..0000000 --- a/tests/django_ledger/includes/widget_bs.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    -

    - {% trans 'Assets' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_ASSETS | currency_format }} -

    -

    - {% trans 'Liabilities' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_LIABILITIES | currency_format }} -

    -

    - {% trans 'Equity' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EQUITY | currency_format }} -

    -

    - {% trans 'Cash' %} -

    -

    - {% currency_symbol %}{{ tx_digest.role_balance.ASSET_CA_CASH | currency_format }} -

    -
    diff --git a/tests/django_ledger/includes/widget_ic.html b/tests/django_ledger/includes/widget_ic.html deleted file mode 100644 index aa03c25..0000000 --- a/tests/django_ledger/includes/widget_ic.html +++ /dev/null @@ -1,34 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    -

    - {% trans 'Revenue' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_INCOME | currency_format }} -

    -

    - {% trans 'Expenses' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EXPENSES | reverse_sing | currency_format }} -

    -

    - {% trans 'Earnings (Loss)' %} -

    -

    - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EARNINGS | currency_format }} -

    -

    - {% trans 'Accounting Period' %} -

    - {% if not has_date %} -

    - {{ from_date | date }} - {% trans 'thru' %} - {{ to_date | date }} -

    - {% else %} -

    {{ from_date | date }}

    - {% endif %} -
    diff --git a/tests/django_ledger/includes/widget_ratios.html b/tests/django_ledger/includes/widget_ratios.html deleted file mode 100644 index 8159e55..0000000 --- a/tests/django_ledger/includes/widget_ratios.html +++ /dev/null @@ -1,72 +0,0 @@ -{% load django_ledger %} -
    -

    - Financial Analysis -

    -

    Solvency:

    -
    - Current - Ratio: {{ tx_digest.ratios.current_ratio | currency_format }} -
    - - {{ tx_digest.ratios.current_ratio }} - -
    - Quick - Ratio: {{ tx_digest.ratios.quick_ratio | currency_format }} -
    - - {{ tx_digest.ratios.current_ratio }} - -

    Leverage:

    -
    - Debt to - Equity: {{ tx_digest.ratios.debt_to_equity | currency_format }} -
    - - {{ tx_digest.ratios.debt_to_equity }} - -

    Profitability:

    -
    - Return on - Equity: {{ tx_digest.ratios.return_on_equity | percentage }} -
    - - {{ tx_digest.ratios.return_on_equity }} - -
    - Return on - Assets: {{ tx_digest.ratios.return_on_assets | percentage }} -
    - - {{ tx_digest.ratios.return_on_assets }} - -
    - Net Profit - Margin: {{ tx_digest.ratios.net_profit_margin | percentage }} -
    - - {{ tx_digest.ratios.net_profit_margin }} - -
    - Gross Profit - Margin: {{ tx_digest.ratios.gross_profit_margin | percentage }} -
    - - {{ tx_digest.ratios.gross_profit_margin }} - -
    diff --git a/tests/django_ledger/income_statement.html b/tests/django_ledger/income_statement.html deleted file mode 100644 index 210f23a..0000000 --- a/tests/django_ledger/income_statement.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block aux_menu %} - {% if unit_model %} -
    - {% period_navigation 'unit-ic' %} -
    - {% elif entity %} -
    - {% period_navigation 'entity-ic' %} -
    - {% elif ledger %} -
    - {% period_navigation 'ledger-ic' %} -
    - {% endif %} -{% endblock %} -{% block view_content %} -
    -
    -
    -
    -
    - {% if entity %} -

    {% session_entity_name %}

    - {% elif ledger %} -

    {{ ledger.name }}

    - {% endif %} - {% if unit_model %} -

    - {{ unit_model.name }} {% trans 'Unit' %} -

    - {% endif %} -

    {% trans 'Income Statement' %}

    -

    - {% if quarter %} - {{ year }} | Q{{ quarter }} - {% elif month %}{{ start_date | date:'F, Y' }} - {% else %} - Fiscal Year {{ year }} - {% endif %} -

    -

    - {{ from_date | date:'m/d/Y' }} - {{ to_date | date:'m/d/Y' }} -

    -
    -
    -
    - {% income_statement_table io_model=object from_date=from_date to_date=to_date %} - {% if ledger %} - - Go - Back - - {% elif entity %} - - Go - Back - - {% endif %} - - {% trans 'By Unit' %} - -
    -
    -{% endblock %} diff --git a/tests/django_ledger/inventory_item_create.html b/tests/django_ledger/inventory_item_create.html deleted file mode 100644 index 8911619..0000000 --- a/tests/django_ledger/inventory_item_create.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/inventory_item_list.html b/tests/django_ledger/inventory_item_list.html deleted file mode 100644 index d9cdb09..0000000 --- a/tests/django_ledger/inventory_item_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'My Inventory Items' %}

    -
    - -
    -
    - {% inventory_item_table inventory_item_list %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/inventory_item_update.html b/tests/django_ledger/inventory_item_update.html deleted file mode 100644 index add90ae..0000000 --- a/tests/django_ledger/inventory_item_update.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/invoice_create.html b/tests/django_ledger/invoice_create.html deleted file mode 100644 index 4341f2c..0000000 --- a/tests/django_ledger/invoice_create.html +++ /dev/null @@ -1,104 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    - {% csrf_token %} -
    -
    -
    -
    -
    -

    - {% trans 'Customer Information' %} -

    -
    -
    -
    -
    - {{ form.customer }} -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Invoice Amount & Terms' %} -

    -
    -
    -
    -
    - {{ form.date }} -
    -
    -
    -
    - {{ form.amount_due }} -
    -
    -
    - -
    - {{ form.terms }} -
    -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Connected Accounts' %} -

    -
    -
    -
    - -
    - {{ form.cash_account }} -
    -
    -
    - -
    - {{ form.prepaid_account }} -
    -
    -
    - -
    - {{ form.unearned_account }} -
    -
    -
    -
    -
    -
    - - - Back - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/invoice_delete.html b/tests/django_ledger/invoice_delete.html deleted file mode 100644 index 36c1369..0000000 --- a/tests/django_ledger/invoice_delete.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% csrf_token %} -
    -
    -

    - Are you sure you want to delete - Invoice {{ invoice.invoice_number }} -

    -
    -
    -

    - All transactions associated with this invoice will be deleted. - If you want to void the invoice instead, click here -

    -
    -
    - - {% trans 'Go Back' %} - - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/invoice_detail.html b/tests/django_ledger/invoice_detail.html deleted file mode 100644 index 815ffb1..0000000 --- a/tests/django_ledger/invoice_detail.html +++ /dev/null @@ -1,152 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% include 'django_ledger/includes/card_invoice.html' with invoice=invoice entity_slug=view.kwargs.entity_slug style='invoice-detail' %} -
    -
    - {% include 'django_ledger/includes/card_customer.html' with customer=invoice.customer %} -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    - {% icon 'grommet-icons:transaction' 36 %} - {% trans 'Invoice Items' %} -

    -
    - {# todo: make this table a template... #} -
    -
    - - - - - - - - - - - {% for invoice_item in invoice_items %} - - - - - - - {% endfor %} - - - - - - - - - -
    {% trans 'Item' %}{% trans 'Unit Cost' %}{% trans 'Quantity' %}{% trans 'Total' %}
    {{ invoice_item.item_model }}{% currency_symbol %}{{ invoice_item.unit_cost | currency_format }}{{ invoice_item.quantity }}{% currency_symbol %}{{ invoice_item.total_amount | currency_format }}
    {% trans 'Total' %}{% currency_symbol %}{{ total_amount_due | currency_format }}
    -
    -
    -
    -
    -
    -
    -
    -

    - {% icon 'grommet-icons:transaction' 36 %} - {% trans 'Invoice Transactions' %} -

    -
    -
    - {% invoice_txs_table invoice %} -
    -
    -
    -
    -
    -
    - {% endblock %} diff --git a/tests/django_ledger/invoice_list.html b/tests/django_ledger/invoice_list.html deleted file mode 100644 index c6347ea..0000000 --- a/tests/django_ledger/invoice_list.html +++ /dev/null @@ -1,121 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    - {% if month %} -

    {{ month | date:'F Y' }}

    - {% elif year %} -

    - Year {{ year | date:'Y' }} - {% trans 'Invoices' %} -

    - {% else %} -

    {% trans 'Latest Invoices' %}

    - {% endif %} -
    - -
    -
    - {% if previous_month %} - - {% endif %} - {% if next_month %} - - {% endif %} - {% if previous_year %} - - {% endif %} - {% if next_year %} - - {% endif %} - {% if page_obj %} - {% if page_obj.has_previous %} - - {% endif %} -
    -

    - page {{ page_obj.number }} - of {{ page_obj.paginator.num_pages }} -

    -
    - {% if page_obj.has_next %} - - {% endif %} - {% endif %} -
    -
    - {% invoice_table %} - {% if year %} -
    Go to month:
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date | date:'F' }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% else %} -
    Go to year:
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date.year }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% endif %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/invoice_update.html b/tests/django_ledger/invoice_update.html deleted file mode 100644 index 49c6a37..0000000 --- a/tests/django_ledger/invoice_update.html +++ /dev/null @@ -1,200 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - {% if form.errors %}{{ form.errors }}{% endif %} - {% csrf_token %} -
    -
    - {% include 'django_ledger/includes/card_customer.html' with customer=invoice.customer %} -
    -
    -
    -
    -

    - {% trans 'Invoice Amount & Terms' %} -

    -
    -
    -
    -

    - {% trans 'Invoice Amount:' %} - ${{ invoice.amount_due | currency_format }} - -

    - -

    Invoice Date: {{ object.date }}

    -

    Terms: {{ object.get_terms_display }}

    -

    Accrue Invoice: {{ form.accrue }}

    -
    -
    -
    -
    -
    -
    -
    -

    - {% trans 'Invoice State' %} -

    -
    -
    -
    - - {% csrf_token %} -
    - -
    - {{ form.amount_paid }} -
    -
    -
    - -
    -
    - -
    - {{ form.paid_date }} -
    -
    -
    - -
    - {{ form.progress }} -
    -
    - - - {% trans 'Invoice List' %} - - - {% trans 'Dashboard' %} - - -
    -
    -
    -
    -
    - {# todo: change the format of the state... show only account balances, move to detail view? #} -
    -
    -

    - {% trans 'Invoice State' %} -

    -
    -
    -
    -
    -
    -

    {% trans 'Ledger State' %}

    -

    - {{ invoice.cash_account }}: - ${{ invoice.get_amount_cash | currency_format }} -

    -

    - {{ invoice.prepaid_account }}: - ${{ invoice.get_amount_receivable | currency_format }} -

    -

    - {{ invoice.unearned_account }}: - ${{ invoice.get_amount_payable | currency_format }} -

    -

    - {{ invoice.earnings_account }}: - ${{ invoice.get_amount_earned | currency_format }} -

    -
    -
    -

    {% trans 'Invoice State' %}

    -

    - {{ invoice.cash_account }}: ${{ invoice.amount_paid | currency_format }} -

    -

    - {{ invoice.prepaid_account }}: - ${{ invoice.amount_receivable | currency_format }} -

    -

    - {{ invoice.unearned_account }}: - ${{ invoice.amount_unearned | currency_format }} -

    -

    - {{ invoice.earnings_account }}: - ${{ invoice.amount_earned | currency_format }} -

    -
    -
    -

    - Ledger is Posted: - {% if invoice.ledger.posted %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} -

    -

    - Ledger Locked: - {% if invoice.ledger.locked %} - {% icon 'bi:lock-fill' 24 %} - {% else %} - {% icon 'bx:bx-lock-open-alt' 24 %} - {% endif %} -

    -
    - {% now "Y" as current_year %} - {% now "m" as current_month %} - - - -
    -
    -
    -
    -
    -
    - - {% invoice_item_formset_table item_formset %} -{% endblock %} diff --git a/tests/django_ledger/je_create.html b/tests/django_ledger/je_create.html deleted file mode 100644 index 03c1496..0000000 --- a/tests/django_ledger/je_create.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/je_detail.html b/tests/django_ledger/je_detail.html deleted file mode 100644 index 67f2195..0000000 --- a/tests/django_ledger/je_detail.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% journal_entry_txs_table journal_entry %} - - Edit - Txs - - - Back - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/je_list.html b/tests/django_ledger/je_list.html deleted file mode 100644 index 26792aa..0000000 --- a/tests/django_ledger/je_list.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - - Add - - - Back - - {% jes_table %} -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/je_update.html b/tests/django_ledger/je_update.html deleted file mode 100644 index 6161f69..0000000 --- a/tests/django_ledger/je_update.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/layouts/content_layout_1.html b/tests/django_ledger/layouts/content_layout_1.html deleted file mode 100644 index d256ce0..0000000 --- a/tests/django_ledger/layouts/content_layout_1.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% load navigation_menu from django_ledger %} -{% block content %} -
    -
    -
    - {# SIDE MENU #} - {% if not hide_menu %} -
    -
    - {% block aux_menu %}{% endblock %} -
    - {% navigation_menu 'desktop' %} -
    -
    -
    - {% endif %} -
    - {% block view_content %}{% endblock %} -
    -
    -
    -
    -{% endblock content %} diff --git a/tests/django_ledger/layouts/content_layout_2.html b/tests/django_ledger/layouts/content_layout_2.html deleted file mode 100644 index 6f8cb99..0000000 --- a/tests/django_ledger/layouts/content_layout_2.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'django_ledger/base.html' %} -{% block content %} -
    -
    -
    -
    - {% block view_content %}{% endblock %} -
    -
    -
    -
    -{% endblock content %} diff --git a/tests/django_ledger/ledger_create.html b/tests/django_ledger/ledger_create.html deleted file mode 100644 index c3a8bc5..0000000 --- a/tests/django_ledger/ledger_create.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/ledger_list.html b/tests/django_ledger/ledger_list.html deleted file mode 100644 index 158c482..0000000 --- a/tests/django_ledger/ledger_list.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    - - Add - - - Back - - {% ledgers_table %} -
    -{% endblock %} diff --git a/tests/django_ledger/ledger_update.html b/tests/django_ledger/ledger_update.html deleted file mode 100644 index 4f6d842..0000000 --- a/tests/django_ledger/ledger_update.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - Back - -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/pns_list.html b/tests/django_ledger/pns_list.html deleted file mode 100644 index 9c18d31..0000000 --- a/tests/django_ledger/pns_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Products & Services List' %}

    -
    - -
    -
    - {% items_table pns_list %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/po_create.html b/tests/django_ledger/po_create.html deleted file mode 100644 index ddff223..0000000 --- a/tests/django_ledger/po_create.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    - {% csrf_token %} -
    - {{ form }} - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/po_delete.html b/tests/django_ledger/po_delete.html deleted file mode 100644 index 96a93bc..0000000 --- a/tests/django_ledger/po_delete.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {% csrf_token %} -
    -
    -

    - Are you sure you want to delete - Purchase Order {{ po_model.po_number }} -

    -
    -
    -

    - All transactions associated with this Purchase Order will be deleted. - If you want to void the PO instead, click here -

    -
    -
    - - {% trans 'Go Back' %} - - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/po_detail.html b/tests/django_ledger/po_detail.html deleted file mode 100644 index af797f3..0000000 --- a/tests/django_ledger/po_detail.html +++ /dev/null @@ -1,107 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load trans from i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% include 'django_ledger/includes/card_po.html' with po_model=po_model entity_slug=view.kwargs.entity_slug style='po-detail' %} -
    - -
    -
    -
    - -
    -
    -

    {{ po_model.po_title }}

    -
    -
    -
    - - - - - - - - - - - - - {% for item in po_items %} - - - - - - - - - {% endfor %} - - - - - - - - - - - -
    {% trans 'Item' %}{% trans 'Quantity' %}{% trans 'Unit Cost' %}{% trans 'Total Cost' %}{% trans 'Status' %}{% trans 'Billed' %}
    {{ item.item_model }}{{ item.quantity }}{{ item.unit_cost }} - {% currency_symbol %}{{ item.total_amount | currency_format }} - - {% if item.po_item_status %}{{ item.get_po_item_status_display }}{% endif %} - - {% if item.bill_model_id %} - - View Bill - - {% endif %} -
    Total PO Amount - {% currency_symbol %}{{ total_amount_due | currency_format }} -
    -
    -
    -
    - {% include 'django_ledger/includes/card_markdown.html' with style='card_1' title='PO Notes' notes_html=po_model.notes_html %} -
    -
    -
    -
    - {% endblock %} diff --git a/tests/django_ledger/po_list.html b/tests/django_ledger/po_list.html deleted file mode 100644 index f05aca2..0000000 --- a/tests/django_ledger/po_list.html +++ /dev/null @@ -1,121 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    - {% if month %} -

    {{ month | date:'F Y' }}

    - {% elif year %} -

    - Year {{ year | date:'Y' }} - Bills -

    - {% else %} -

    {% trans 'Latest Purchase Orders' %}

    - {% endif %} -
    - -
    -
    - {% if previous_month %} - - {% endif %} - {% if next_month %} - - {% endif %} - {% if previous_year %} - - {% endif %} - {% if next_year %} - - {% endif %} - {% if page_obj %} - {% if page_obj.has_previous %} - - {% endif %} -
    -

    - page {{ page_obj.number }} - of {{ page_obj.paginator.num_pages }} -

    -
    - {% if page_obj.has_next %} - - {% endif %} - {% endif %} -
    -
    - {% po_table po_list %} - {% if year %} -
    {% trans 'Go to month:' %}
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date | date:'F' }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% else %} -
    {% trans 'Go to year:' %}
    -

    - - {% trans 'All' %} | - - {% for date in date_list %} - - {{ date.year }} - {% if not forloop.last %}>{% endif %} - - {% endfor %} -

    - {% endif %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/po_update.html b/tests/django_ledger/po_update.html deleted file mode 100644 index 8852765..0000000 --- a/tests/django_ledger/po_update.html +++ /dev/null @@ -1,95 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -

    {% trans 'Update Purchase Order' %}

    -

    {{ po_model.po_number }}

    -
    -
    -
    - {% csrf_token %} - {% if form.errors %}{{ form.errors }}{% endif %} -
    -
    -
    - -
    - {{ form.po_title }} -
    -
    -
    - -
    - {{ form.po_date }} -
    -
    -
    - -
    - {{ form.po_status }} -
    -
    -
    - -
    - {{ form.fulfillment_date }} -
    -
    -
    - -
    - {{ form.fulfilled }} -
    -
    -
    -
    -
    - - {{ form.markdown_notes }} -
    -
    - -
    -

    - {% trans 'Purchase Order Amount' %}: - {% currency_symbol %}{{ po_model.po_amount | currency_format }} -

    -

    - {% trans 'Received Amount' %}: - {% currency_symbol %}{{ po_model.po_amount_received | currency_format }} -

    -
    -
    -
    -
    - {% po_item_formset_table item_formset %} -{% endblock %} diff --git a/tests/django_ledger/product_create.html b/tests/django_ledger/product_create.html deleted file mode 100644 index 947dcff..0000000 --- a/tests/django_ledger/product_create.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/product_list.html b/tests/django_ledger/product_list.html deleted file mode 100644 index 6ffade7..0000000 --- a/tests/django_ledger/product_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Products & Services List' %}

    -
    - -
    -
    - {% pns_table pns_list %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/product_update.html b/tests/django_ledger/product_update.html deleted file mode 100644 index f5677c1..0000000 --- a/tests/django_ledger/product_update.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/tags/account_txs_table.html b/tests/django_ledger/tags/account_txs_table.html deleted file mode 100644 index c443b66..0000000 --- a/tests/django_ledger/tags/account_txs_table.html +++ /dev/null @@ -1,63 +0,0 @@ -{% load django_ledger %} -{% load trans from i18n %} -
    - - - - - - - - - {% for tx in transactions %} - - - - - - - - {% endfor %} - - - - - - - -
    DateCreditDebitDescriptionActions
    {{ tx.journal_entry.date }} - {% if tx.tx_type == 'credit' %}${{ tx.amount | currency_format }}{% endif %} - - {% if tx.tx_type == 'debit' %}${{ tx.amount | currency_format }}{% endif %} - {{ tx.description }} - -
    Total${{ total_credits | currency_format }}${{ total_debits | currency_format }}
    -
    diff --git a/tests/django_ledger/tags/accounts_table.html b/tests/django_ledger/tags/accounts_table.html deleted file mode 100644 index 4d13597..0000000 --- a/tests/django_ledger/tags/accounts_table.html +++ /dev/null @@ -1,88 +0,0 @@ -{% load i18n %} -{% load django_ledger %} -
    - - - {% if title %} - - - - - - - - - - - {% endif %} - - - - - - - - - - - - - {% for account in accounts %} - - - - - - - - - - - {% endfor %} -
    -

    {{ title }}

    -
    {% trans 'Role' %}{% trans 'Parent' %}{% trans 'Code' %}{% trans 'Account Name' %}{% trans 'Balance Type' %}{% trans 'Active' %}{% trans 'Locked' %}{% trans 'Actions' %}
    {{ account.get_role_display }}{{ account.parent.code }}{{ account.code }}{{ account.name }} - {% if account.is_debit %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif account.is_credit %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - - {% if account.active %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% endif %} - - {% if account.locked %} - {% icon 'bi:lock-fill' 24 %} - {% elif not account.locked %} - {% icon 'bx:bx-lock-open-alt' 24 %} - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/activity_form.html b/tests/django_ledger/tags/activity_form.html deleted file mode 100644 index 9fa937b..0000000 --- a/tests/django_ledger/tags/activity_form.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load i18n %} -
    -
    -
    - -
    -
    -
    -
    -
    - {{ activity_form.activity }} -
    -
    -
    - -
    -
    -
    -
    -
    diff --git a/tests/django_ledger/tags/balance_sheet.html b/tests/django_ledger/tags/balance_sheet.html deleted file mode 100644 index a2a1249..0000000 --- a/tests/django_ledger/tags/balance_sheet.html +++ /dev/null @@ -1,178 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - {% if by_unit %} - - {% endif %} - - - - - - - - - {% if by_unit %}{% endif %} - - - - {# ASSETS #} - {% for acc in tx_digest.group_account.GROUP_ASSETS %} - - - - {% if by_unit %} - - {% endif %} - - - - {% endfor %} - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %}{% endif %} - - - - {# LIABILITIES #} - {% for acc in tx_digest.group_account.GROUP_LIABILITIES %} - - - - {% if by_unit %} - - {% endif %} - - - - {% endfor %} - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %}{% endif %} - - - - {# CAPITAL #} - {% for acc in tx_digest.group_account.GROUP_CAPITAL %} - - - - {% if by_unit %} - - {% endif %} - - - - {% endfor %} - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %} - - {% endif %} - - - - - - - {% if by_unit %} - - {% endif %} - - - - -
    {% trans 'Account Number' %}{% trans 'Account Name' %}{% trans 'Unit' %}{% trans 'Balance Type' %}{% trans 'Balance' %}
    -

    {% trans 'Assets' %}

    -
    {{ acc.code }}{{ acc.name }} - {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} - - {% if acc.balance_type == 'debit' %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif acc.balance_type == 'credit' %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - {% currency_symbol %}{{ acc.balance | currency_format }}
    {% trans 'Total Assets' %} - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_ASSETS | currency_format }} -
    -

    {% trans 'Liabilities' %}

    -
    {{ acc.code }}{{ acc.name }} - {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} - - {% if acc.balance_type == 'debit' %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif acc.balance_type == 'credit' %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - {% currency_symbol %}{{ acc.balance | currency_format }}
    {% trans 'Total Liabilities' %} - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_LIABILITIES | currency_format }} -
    -

    {% trans 'Equity' %}

    -
    - {{ acc.code }} - - {{ acc.name }} - - {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} - - {% if acc.balance_type == 'debit' %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif acc.balance_type == 'credit' %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - - {% currency_symbol %}{{ acc.balance | currency_format }} -
    - {% trans 'Total Capital' %} - - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_CAPITAL | currency_format }} -
    - {% trans 'Retained Earnings' %} - - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EARNINGS | currency_format }} -
    - {% trans 'Total Equity' %} - - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EQUITY | currency_format }} -
    - {% trans 'Total Equity + Liabilities' %} - - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_LIABILITIES_EQUITY | currency_format }} -
    -
    diff --git a/tests/django_ledger/tags/bank_accounts_table.html b/tests/django_ledger/tags/bank_accounts_table.html deleted file mode 100644 index 28600d1..0000000 --- a/tests/django_ledger/tags/bank_accounts_table.html +++ /dev/null @@ -1,55 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - - {% for bank_acc in bank_account_qs %} - - - - - - - - - - {% endfor %} - -
    NameAccount NumberRouting NumberTypeCash AccountActiveActions
    {{ bank_acc.name }}{{ bank_acc.account_number | last_four }}{{ bank_acc.routing_number | last_four }}{{ bank_acc.get_account_type_display }}{{ bank_acc.cash_account }} - {% if bank_acc.active %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/bill_item_formset.html b/tests/django_ledger/tags/bill_item_formset.html deleted file mode 100644 index 60eaab3..0000000 --- a/tests/django_ledger/tags/bill_item_formset.html +++ /dev/null @@ -1,67 +0,0 @@ -{% load trans from i18n %} -{% load django_ledger %} -
    -
    -
    -

    {% trans 'Bill Items' %}

    -
    -
    -
    - {% csrf_token %} - {{ item_formset.non_form_errors }} - {{ item_formset.management_form }} - - - - - - - - - - - - - {% for f in item_formset %} - - - - - - - - - {% endfor %} - - - - - - - - - - - -
    {% trans 'Item' %}{% trans 'Unit Cost' %}{% trans 'Quantity' %}{% trans 'Unit' %}{% trans 'Total' %}{% trans 'Delete' %}
    - {% for hidden_field in f.hidden_fields %} - {{ hidden_field }} - {% endfor %} - {{ f.item_model }} - {{ f.unit_cost }}{{ f.quantity }}{{ f.entity_unit }} - {% currency_symbol %}{{ f.instance.total_amount | currency_format }} - - {% if item_formset.can_delete %}{{ f.DELETE }}{% endif %} -
    {% trans 'Total' %} - {% currency_symbol %}{{ total_amount_due | currency_format }} -
    -
    -
    -
    - - {% trans 'New Item' %} - - -
    -
    -
    diff --git a/tests/django_ledger/tags/bill_table.html b/tests/django_ledger/tags/bill_table.html deleted file mode 100644 index 6205ad3..0000000 --- a/tests/django_ledger/tags/bill_table.html +++ /dev/null @@ -1,78 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - - - {% for bill in bills %} - - - - - - - - - - - {% endfor %} - -
    Bill NumberBill DateBill FromAmountPaymentsIs Paid?Past Due?Actions
    {{ bill.bill_number }}{{ bill.date }}{{ bill.vendor.vendor_name }}${{ bill.amount_due | currency_format }}${{ bill.amount_paid | currency_format }} - {% if bill.paid %} - {% icon 'bi:check-circle-fill' 24 %} - {% else %} - {% icon 'clarity:no-access-solid' 24 %} - {% endif %} - - {% if bill.is_past_due %} - {% icon 'bi:check-circle-fill' 24 %} - {% else %} - {% icon 'clarity:no-access-solid' 24 %} - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/breadcrumbs.html b/tests/django_ledger/tags/breadcrumbs.html deleted file mode 100644 index d1e1b82..0000000 --- a/tests/django_ledger/tags/breadcrumbs.html +++ /dev/null @@ -1,38 +0,0 @@ - diff --git a/tests/django_ledger/tags/chart_container.html b/tests/django_ledger/tags/chart_container.html deleted file mode 100644 index 2d66ad2..0000000 --- a/tests/django_ledger/tags/chart_container.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - -
    diff --git a/tests/django_ledger/tags/customer_table.html b/tests/django_ledger/tags/customer_table.html deleted file mode 100644 index 245c19a..0000000 --- a/tests/django_ledger/tags/customer_table.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - {% for customer in customers %} - - - - - - {% endfor %} - -
    CustomerAddressActions
    {{ customer.customer_name }}{{ customer.address_1 }} - -
    -
    diff --git a/tests/django_ledger/tags/data_import_job_list_table.html b/tests/django_ledger/tags/data_import_job_list_table.html deleted file mode 100644 index b461fd0..0000000 --- a/tests/django_ledger/tags/data_import_job_list_table.html +++ /dev/null @@ -1,58 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - {% for job in import_jobs %} - - - - - - - - - {% endfor %} - -
    StatusDescriptionLedgerCreatedCompletedActions
    {{ job.status }}{{ job.description }}{{ job.ledger }}{{ job.created }} - {% if job.completed %} - - - - {% else %} - - - - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/data_import_job_txs_imported.html b/tests/django_ledger/tags/data_import_job_txs_imported.html deleted file mode 100644 index 49f40c7..0000000 --- a/tests/django_ledger/tags/data_import_job_txs_imported.html +++ /dev/null @@ -1,32 +0,0 @@ -
    - - - - - - - - - - - - - {% for imported_tx in imported_txs %} - - - - - - - - - {% endfor %} - -
    Dated PostedDescriptionAmountMap ToTXActions
    {{ imported_tx.date_posted }}{{ imported_tx.name }} - ${{ imported_tx.amount }} - {{ imported_tx.earnings_account }}{{ imported_tx.tx }} - - View - -
    -
    diff --git a/tests/django_ledger/tags/data_import_job_txs_table.html b/tests/django_ledger/tags/data_import_job_txs_table.html deleted file mode 100644 index c3c9770..0000000 --- a/tests/django_ledger/tags/data_import_job_txs_table.html +++ /dev/null @@ -1,53 +0,0 @@ -{% load i18n %} -
    - {{ staged_txs_formset.non_form_errors }} - {% if staged_txs_formset.errors %}{{ staged_txs_formset.errors }}{% endif %} - {{ staged_txs_formset.management_form }} - {% csrf_token %} -
    - - - - - - - - - {# - - #} - - - - {% for txf in staged_txs_formset %} - - {% for hidden_field in txf.hidden_fields %} - {{ hidden_field }} - {% endfor %} - - - - - - - {% endfor %} - -
    Dated PostedDescriptionAmountMap ToCommit TXTX
    {{ txf.date_posted.value }}{{ txf.name.value }} - ${{ txf.amount.value }} - {{ txf.earnings_account }}{{ txf.tx_import }}
    -
    -
    -
    - -
    - -
    -
    diff --git a/tests/django_ledger/tags/date_picker.html b/tests/django_ledger/tags/date_picker.html deleted file mode 100644 index cbe5666..0000000 --- a/tests/django_ledger/tags/date_picker.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} -{% if date_navigation_url %} - -{% endif %} diff --git a/tests/django_ledger/tags/default_entity.html b/tests/django_ledger/tags/default_entity.html deleted file mode 100644 index 1a61d95..0000000 --- a/tests/django_ledger/tags/default_entity.html +++ /dev/null @@ -1,10 +0,0 @@ -
    - {% csrf_token %} -
    -
    -
    - {{ default_entity_form.entity_model }} -
    -
    -
    -
    diff --git a/tests/django_ledger/tags/expense_item_table.html b/tests/django_ledger/tags/expense_item_table.html deleted file mode 100644 index 1e7c423..0000000 --- a/tests/django_ledger/tags/expense_item_table.html +++ /dev/null @@ -1,43 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - {% for expense_item in expense_list %} - - - - - - - {% endfor %} - -
    ItemUOMExpense AccountActions
    {{ expense_item.name }}{{ expense_item.uom }}{{ expense_item.expense_account }} - -
    -
    diff --git a/tests/django_ledger/tags/feedback_button.html b/tests/django_ledger/tags/feedback_button.html deleted file mode 100644 index 04d9184..0000000 --- a/tests/django_ledger/tags/feedback_button.html +++ /dev/null @@ -1,83 +0,0 @@ -{% load i18n %} -{% load icon from django_ledger %} - -{# BUG MODAL #} - -{# FEATURE MODAL #} - diff --git a/tests/django_ledger/tags/filters.html b/tests/django_ledger/tags/filters.html deleted file mode 100644 index 8c5d44d..0000000 --- a/tests/django_ledger/tags/filters.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load django_ledger %} -
    -
    -

    - Filters -

    -
    -
    - {% activity_filter %} -
    -
    diff --git a/tests/django_ledger/tags/icon.html b/tests/django_ledger/tags/icon.html deleted file mode 100644 index 0e7d770..0000000 --- a/tests/django_ledger/tags/icon.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/django_ledger/tags/income_statement.html b/tests/django_ledger/tags/income_statement.html deleted file mode 100644 index 93a40f4..0000000 --- a/tests/django_ledger/tags/income_statement.html +++ /dev/null @@ -1,98 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %}{% endif %} - - - - {% for acc in tx_digest.group_account.GROUP_INCOME %} - - - - {% if by_unit %} - - {% endif %} - - - - {% endfor %} - - - - {% if by_unit %}{% endif %} - - - - - - - - {% if by_unit %}{% endif %} - - - {% for acc in tx_digest.group_account.GROUP_EXPENSES %} - - - - {% if by_unit %} - - {% endif %} - - - - {% endfor %} - - - - {% if by_unit %}{% endif %} - - - - - - - {% if by_unit %}{% endif %} - - - -
    Account NumberDescriptionUnitBalance TypeBalance
    -

    {% trans 'Income' %}

    -
    {{ acc.code }}{{ acc.name }} - {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} - - {% if acc.balance_type == 'debit' %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif acc.balance_type == 'credit' %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - {% currency_symbol %}{{ acc.balance | currency_format }}
    Total Income - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_INCOME | currency_format }} -
    -

    {% trans 'Expenses' %}

    -
    {{ acc.code }}{{ acc.name }} - {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} - - {% if acc.balance_type == 'debit' %} - {% icon 'bi:arrow-bar-down' 24 %} - {% elif acc.balance_type == 'credit' %} - {% icon 'bi:arrow-bar-up' 24 %} - {% endif %} - {% currency_symbol %}{{ acc.balance | reverse_sing | currency_format }}
    Total Expenses - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EXPENSES | reverse_sing | currency_format }} -
    - Total Income (Loss) - - {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EARNINGS | currency_format }} -
    -
    diff --git a/tests/django_ledger/tags/inventory_item_table.html b/tests/django_ledger/tags/inventory_item_table.html deleted file mode 100644 index 8a1dc40..0000000 --- a/tests/django_ledger/tags/inventory_item_table.html +++ /dev/null @@ -1,45 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - {% for inv_item in inventory_item_list %} - - - - - - - - {% endfor %} - -
    ItemUOMInventory AccountCOGS AccountActions
    {{ inv_item.name }}{{ inv_item.uom }}{{ inv_item.inventory_account }}{{ inv_item.cogs_account }} - -
    -
    diff --git a/tests/django_ledger/tags/invoice_item_formset.html b/tests/django_ledger/tags/invoice_item_formset.html deleted file mode 100644 index 9172a26..0000000 --- a/tests/django_ledger/tags/invoice_item_formset.html +++ /dev/null @@ -1,65 +0,0 @@ -{% load trans from i18n %} -{% load django_ledger %} -
    -
    -
    -

    {% trans 'Invoice Items' %}

    -
    -
    -
    - {% csrf_token %} - {{ item_formset.non_form_errors }} - {{ item_formset.management_form }} - - - - - - - - - - - - {% for f in item_formset %} - - - - - - - - {% endfor %} - - - - - - - - - - -
    {% trans 'Item' %}{% trans 'Unit Cost' %}{% trans 'Quantity' %}{% trans 'Total' %}{% trans 'Delete' %}
    - {% for hidden_field in f.hidden_fields %} - {{ hidden_field }} - {% endfor %} - {{ f.item_model }} - {{ f.unit_cost }}{{ f.quantity }} - {% currency_symbol %}{{ f.instance.total_amount | currency_format }} - - {% if item_formset.can_delete %}{{ f.DELETE }}{% endif %} -
    {% trans 'Total' %} - {% currency_symbol %}{{ total_amount_due | currency_format }} -
    -
    -
    -
    - - {% trans 'New Item' %} - - -
    -
    -
    diff --git a/tests/django_ledger/tags/invoice_table.html b/tests/django_ledger/tags/invoice_table.html deleted file mode 100644 index 6659e20..0000000 --- a/tests/django_ledger/tags/invoice_table.html +++ /dev/null @@ -1,78 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - - - {% for invoice in invoices %} - - - - - - - - - - - {% endfor %} - -
    Invoice NumberInvoice DateInvoiced ToAmountPaymentsIs Paid?Past Due?Actions
    {{ invoice.invoice_number }}{{ invoice.date }}{{ invoice.customer.customer_name }}${{ invoice.amount_due | currency_format }}${{ invoice.amount_paid | currency_format }} - {% if invoice.paid %} - {% icon 'bi:check-circle-fill' 24 %} - {% else %} - {% icon 'clarity:no-access-solid' 24 %} - {% endif %} - - {% if invoice.is_past_due %} - {% icon 'bi:check-circle-fill' 24 %} - {% else %} - {% icon 'clarity:no-access-solid' 24 %} - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/jes_table.html b/tests/django_ledger/tags/jes_table.html deleted file mode 100644 index bac6e1d..0000000 --- a/tests/django_ledger/tags/jes_table.html +++ /dev/null @@ -1,68 +0,0 @@ -{% load django_ledger %} -
    - - - - - - - - - - - - - - {% for je in jes %} - - - - - - - - - - {% endfor %} - -
    DescriptionActivityJE DatePostedLockedCreatedActions
    {{ je.description }}{{ je.get_activity_display }}{{ je.date }} - {% if je.posted %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} - - {% if je.locked %} - {% icon 'bi:lock-fill' 24 %} - {% else %} - {% icon 'bx:bx-lock-open-alt' 24 %} - {% endif %} - {{ je.created | timesince }} - -
    -
    diff --git a/tests/django_ledger/tags/ledgers_table.html b/tests/django_ledger/tags/ledgers_table.html deleted file mode 100644 index bd03bb9..0000000 --- a/tests/django_ledger/tags/ledgers_table.html +++ /dev/null @@ -1,65 +0,0 @@ -{% now "Y" as current_year %} -{% load icon from django_ledger %} -
    - - - - - - - - - - - - - - {% for ledger in ledgers %} - - - - - - - - - - {% endfor %} - -
    NameDetailBalance SheetIncome StatementPostedLockedActions
    {{ ledger.name }} - - Journal - Entries - - - - Balance - Sheet - - - - Income - Statement - - - {% if ledger.posted %} - {% icon 'ant-design:check-circle-filled' 24 %} - {% else %} - {% icon 'maki:roadblock-11' 24 %} - {% endif %} - - {% if ledger.locked %} - {% icon 'bi:lock-fill' 24 %} - {% else %} - {% icon 'bx:bx-lock-open-alt' 24 %} - {% endif %} - - - Edit - -
    -
    diff --git a/tests/django_ledger/tags/menu.html b/tests/django_ledger/tags/menu.html deleted file mode 100644 index 442c7b0..0000000 --- a/tests/django_ledger/tags/menu.html +++ /dev/null @@ -1,54 +0,0 @@ -{% load django_ledger %} -{% load trans from i18n %} -{% if style == 'desktop' %} -
    - -
    - {# A menu that renders only on mobile devices when the burger menu is opened #} -{% elif style == 'mobile' %} - -{% endif %} diff --git a/tests/django_ledger/tags/modals.html b/tests/django_ledger/tags/modals.html deleted file mode 100644 index 05f2e0f..0000000 --- a/tests/django_ledger/tags/modals.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load i18n %} - diff --git a/tests/django_ledger/tags/period_navigator.html b/tests/django_ledger/tags/period_navigator.html deleted file mode 100644 index 849408f..0000000 --- a/tests/django_ledger/tags/period_navigator.html +++ /dev/null @@ -1,54 +0,0 @@ -{% load django_ledger %} -{% load trans from i18n %} -
    -
    -
    -

    - {% if has_month %}{{ to_date | date:"F Y" }}{% endif %} - {% if has_quarter %}Q{{ quarter }} {{ year }}{% endif %} - {% if has_date %}{{ to_date | date }}{% endif %} -

    -
    -

    - Year: - - << {{ previous_year }} - - | - {{ year }} - | - {{ next_year }} >> -

    -

    - Quarter: - {% for q_url in quarter_urls %} - {{ q_url.quarter_name }} - {% if not forloop.last %}|{% endif %} - {% endfor %} -

    -

    - Month: - {% for m_url in month_urls %} - {{ m_url.month_abbr }} - {% if not forloop.last %}|{% endif %} - {% endfor %} -

    -
    - {% if has_date %} -

    - {{ from_date | date:"m/d/Y" }} -

    - {% else %} -

    - {{ from_date | date:"m/d/Y" }} - {% trans 'thru' %} - {{ to_date | date:"m/d/Y" }} -

    - {% endif %} - {% trans 'Go To Current Month' %} -
    -
    - {% date_picker date_navigation_url %} -
    -
    -
    diff --git a/tests/django_ledger/tags/pns_table.html b/tests/django_ledger/tags/pns_table.html deleted file mode 100644 index 3e898f4..0000000 --- a/tests/django_ledger/tags/pns_table.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - {% for pns in pns_list %} - - - - - - - - - {% endfor %} - -
    ItemUOMSKUUPCEarnings AccountActions
    {{ pns.name }}{{ pns.uom }}{{ pns.sku }}{{ pns.upc }}{{ pns.earnings_account }} - -
    -
    diff --git a/tests/django_ledger/tags/po_item_formset.html b/tests/django_ledger/tags/po_item_formset.html deleted file mode 100644 index ec2938e..0000000 --- a/tests/django_ledger/tags/po_item_formset.html +++ /dev/null @@ -1,87 +0,0 @@ -{% load trans from i18n %} -{% load django_ledger %} -
    -
    -
    -

    {% trans 'Purchase Order Items' %}

    -
    -
    -
    - {% csrf_token %} - {{ item_formset.non_form_errors }} - {{ item_formset.management_form }} - - - - - - - - - - {% if item_formset.can_delete %} - - {% endif %} - - - - - {% for f in item_formset %} - - - - - - - - {% if item_formset.can_delete %}{% endif %} - - - {% endfor %} - - - - - - - - - - {% if item_formset.can_delete %}{% endif %} - - - -
    {% trans 'Item' %}{% trans 'Unit Cost' %}{% trans 'Quantity' %}{% trans 'Unit' %}{% trans 'Total' %}{% trans 'Status' %}{% trans 'Delete' %}{% trans 'Create Bill' %}
    - {% for hidden_field in f.hidden_fields %} - {{ hidden_field }} - {% endfor %} - {{ f.item_model }} - {% if f.errors %}{{ f.errors }}{% endif %} - {{ f.unit_cost }}{{ f.quantity }}{{ f.entity_unit }} - {% currency_symbol %}{{ f.instance.total_amount | currency_format }} - {{ f.po_item_status }}{{ f.DELETE }} - {% if f.instance.can_create_bill %} - {{ f.create_bill }} - {% elif f.instance.bill_model %} - - View - Bill - - {# -{% else %} - #} - {% endif %} -
    {% trans 'Total' %} - {% currency_symbol %}{{ total_amount_due | currency_format }} -
    -
    -
    -
    - - {% trans 'New Item' %} - - -
    -
    -
    diff --git a/tests/django_ledger/tags/po_table.html b/tests/django_ledger/tags/po_table.html deleted file mode 100644 index bd0aed1..0000000 --- a/tests/django_ledger/tags/po_table.html +++ /dev/null @@ -1,55 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - - - - - {% for po in po_list %} - - - - - - - - - - {% endfor %} - -
    PO NumberDescriptionPO DatePO StatusFulfilment DatePO AmountActions
    {{ po.po_number }}{{ po.po_title }}{{ po.po_date }}{{ po.get_po_status_display }} - {% if po.fulfillment_date %}{{ po.fulfillment_date }}{% endif %} - {% currency_symbol %}{{ po.po_amount | currency_format }} - -
    -
    diff --git a/tests/django_ledger/tags/txs_table.html b/tests/django_ledger/tags/txs_table.html deleted file mode 100644 index 161ccdd..0000000 --- a/tests/django_ledger/tags/txs_table.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load django_ledger %} -
    - - - - - - - - - - - {% for tx in txs %} - - - - - - - - - - {% endfor %} - - - - - - - - - -
    DateAccountAccount NameUnitCreditDebitDescription
    {{ tx.journal_entry.date }}{{ tx.account.code }}{{ tx.account.name }} - {% if tx.journal_entry.entity_unit %}{{ tx.journal_entry.entity_unit }}{% endif %} - - {% if tx.tx_type == 'credit' %}${{ tx.amount | currency_format }}{% endif %} - - {% if tx.tx_type == 'debit' %}${{ tx.amount | currency_format }}{% endif %} - {{ tx.description }}
    Total{% currency_symbol %}{{ total_credits | currency_format }}{% currency_symbol %}{{ total_debits | currency_format }}
    -
    diff --git a/tests/django_ledger/tags/uom_table.html b/tests/django_ledger/tags/uom_table.html deleted file mode 100644 index 94b0af6..0000000 --- a/tests/django_ledger/tags/uom_table.html +++ /dev/null @@ -1,49 +0,0 @@ -{% load trans from i18n %} -{% load icon from django_ledger %} -
    - - - - - - - - - - - {% for uom in uom_list %} - - - - - - - {% endfor %} - -
    {% trans 'UOM' %}{% trans 'Abbreviation' %}{% trans 'Active' %}{% trans 'Actions' %}
    {{ uom.name }}{{ uom.unit_abbr }} - {% if uom.is_active %} - {% icon 'bi:check-circle-fill' 24 %} - {% else %} - {% icon 'clarity:no-access-solid' 24 %} - {% endif %} - - -
    -
    diff --git a/tests/django_ledger/tags/vendor_table.html b/tests/django_ledger/tags/vendor_table.html deleted file mode 100644 index 908e87a..0000000 --- a/tests/django_ledger/tags/vendor_table.html +++ /dev/null @@ -1,46 +0,0 @@ -{% load django_ledger %} -{% load i18n %} -
    - - - - - - - - - - {% for vendor in vendors %} - - - - - - {% endfor %} - -
    VendorAddressActions
    {{ vendor.vendor_name }}{{ vendor.address_1 }} - -
    -
    diff --git a/tests/django_ledger/txs.html b/tests/django_ledger/txs.html deleted file mode 100644 index 7b27ab3..0000000 --- a/tests/django_ledger/txs.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% block view_content %} -
    -
    - {% csrf_token %} -
    -
    - {{ txs_formset.non_form_errors }} - {{ txs_formset.management_form }} -
    -
    - - - - - - - {% if txs_formset.can_delete %}{% endif %} - - {% for f in txs_formset %} - - - - - - - - {% endfor %} -
    AccountTX TypeAmountDescriptionDelete
    - {% for hidden_field in f.hidden_fields %} - {{ hidden_field }} - {% endfor %} - {{ f.account }} - {{ f.tx_type }}{{ f.amount }}{{ f.description }} - {% if txs_formset.can_delete %}{{ f.DELETE }}{% endif %} -
    -
    -
    - - Done -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/unit_create.html b/tests/django_ledger/unit_create.html deleted file mode 100644 index 82a403f..0000000 --- a/tests/django_ledger/unit_create.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Create Entity Unit' %}

    -
    -
    -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/unit_detail.html b/tests/django_ledger/unit_detail.html deleted file mode 100644 index 708189b..0000000 --- a/tests/django_ledger/unit_detail.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} - -{% endblock %} diff --git a/tests/django_ledger/unit_list.html b/tests/django_ledger/unit_list.html deleted file mode 100644 index cffd4fe..0000000 --- a/tests/django_ledger/unit_list.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Entity Units List' %}

    -
    - -
    -
    -
    - {% for unit in unit_list %} -
    -
    -
    - {# -

    - #} - {# -{% icon "bi:cash-stack" 16 %} - #} - {# {% trans 'Unit' %} -

    - #} -

    - {{ unit.name }} -

    -
    - -
    -
    -{% endfor %} -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/unit_update.html b/tests/django_ledger/unit_update.html deleted file mode 100644 index 6e2482b..0000000 --- a/tests/django_ledger/unit_update.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Update Entity Unit' %}

    -
    -
    -
    -
    -
    -
    - {% csrf_token %} - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/uom_create.html b/tests/django_ledger/uom_create.html deleted file mode 100644 index b97b964..0000000 --- a/tests/django_ledger/uom_create.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/uom_list.html b/tests/django_ledger/uom_list.html deleted file mode 100644 index 0000655..0000000 --- a/tests/django_ledger/uom_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    -
    -

    {% trans 'Unit of Measures List' %}

    -
    - -
    -
    - {% uom_table uom_list %} -
    -
    -{% endblock %} diff --git a/tests/django_ledger/uom_update.html b/tests/django_ledger/uom_update.html deleted file mode 100644 index 97c22b6..0000000 --- a/tests/django_ledger/uom_update.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    -
    - {% csrf_token %} -
    -

    - - {% icon 'ic:baseline-production-quantity-limits' 36 %} - - {{ page_title }} -

    -
    -
    - {{ form.as_p }} - - - {% trans 'Back' %} - -
    -
    -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/vendor_create.html b/tests/django_ledger/vendor_create.html deleted file mode 100644 index 6f02e8c..0000000 --- a/tests/django_ledger/vendor_create.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {{ form.as_p }} - {% csrf_token %} -
    -
    - - - {% trans 'Go Back' %} - -
    -
    -
    -{% endblock %} diff --git a/tests/django_ledger/vendor_list.html b/tests/django_ledger/vendor_list.html deleted file mode 100644 index a05b9d9..0000000 --- a/tests/django_ledger/vendor_list.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load static %} -{% load django_ledger %} -{% block view_content %} - -{% endblock %} diff --git a/tests/django_ledger/vendor_update.html b/tests/django_ledger/vendor_update.html deleted file mode 100644 index c1c42fe..0000000 --- a/tests/django_ledger/vendor_update.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'django_ledger/layouts/content_layout_1.html' %} -{% load i18n %} -{% load django_ledger %} -{% block view_content %} -
    -
    -
    - {{ form.as_p }} - {% csrf_token %} -
    -
    - - - {% trans 'Go Back' %} - -
    -
    -
    -{% endblock %} diff --git a/tests/django_oscar/flatpages/default.html b/tests/django_oscar/flatpages/default.html deleted file mode 100644 index 08a80e0..0000000 --- a/tests/django_oscar/flatpages/default.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block title %}{{ flatpage.title }} | {{ block.super }}{% endblock %} -{% block header %} - -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block content %} -
    - {{ flatpage.content }} -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/403.html b/tests/django_oscar/oscar/403.html deleted file mode 100644 index af016f7..0000000 --- a/tests/django_oscar/oscar/403.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "oscar/error.html" %} -{% load i18n %} -{% block title %} - {% trans 'Permission denied!' %} | {{ block.super }} -{% endblock %} -{% block error_heading %} - {% trans "Permission denied!" %} -{% endblock %} -{% block error_message %} -

    - {% trans "We're sorry but you are not permitted to access this page." %} -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/404.html b/tests/django_oscar/oscar/404.html deleted file mode 100644 index 0946e84..0000000 --- a/tests/django_oscar/oscar/404.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "oscar/error.html" %} -{% load i18n %} -{% block title %} - {% trans 'Page not found' %} | {{ block.super }} -{% endblock %} -{% block error_heading %} - {% trans "Page not found!" %} -{% endblock %} -{% block error_message %} -

    - {% trans "We're sorry but the page you are looking for can't be found." %} -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/500.html b/tests/django_oscar/oscar/500.html deleted file mode 100644 index b7df5d0..0000000 --- a/tests/django_oscar/oscar/500.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - Server error! - - - - -

    Server error!

    -

    - We're sorry but something went terribly wrong and we've been unable to generate the page you requested. -

    -

    - This incident has been logged and will be addressed by an engineer as soon as possible. -

    -

    - Return to previous page -
    - Go to homepage -

    - - diff --git a/tests/django_oscar/oscar/README.rst b/tests/django_oscar/oscar/README.rst deleted file mode 100644 index 2738fe9..0000000 --- a/tests/django_oscar/oscar/README.rst +++ /dev/null @@ -1,68 +0,0 @@ -================== -Template Structure -================== - -Markup ------- - -Template markup for the most part has been written in accordance with Twitter Bootstrap. -Documentation on Bootstrap HTML markup and classes used see (http://twitter.github.com/bootstrap/index.html). - -Layouts -------- - -Currently there are 5 different layouts that extend the base.html - -layout.html : - For single column layouts -* detail.html -* basket.html -* flatpages/default.html - -layout_2_col.html : - For two column layouts whereby first column is subservient (aside) to the main column -* home.html -* browse.html - -layout_3_col.html : - For three column layouts whereby first and third columns are subservient (aside) to the main middlecolumn -* Currently NOT used - -checkout/layout.html : - For the checkout pages, removes the main navigation and uses a single column by default -* checkout.html -* gateway.html -* thank_you.html - -dashboard/layout.html : - For dashboard section specifically different from the other frontend features: -* separate css -* separate js -* single column 100% page width - -Forms ------ - -Forms are rendered using either of these two partial templates - -* form_fields.html -* form_fields_inline.html - -form_fields.html : - This is used for the majority of the forms in the frontend and dashboard, using a horizontal label / field stack - -form_fields_inline.html : - Used for smaller forms to reduced screen space (mainly in the dashboard section for search forms) - -Partials form_fields:: - - 'include "oscar/partials/form_fields.html" with form=form' - -Partials form_fields_inline:: - - 'include "oscar/partials/form_fields_inline.html" with form=form' - -Conventions ------------ - -Template names should use underscores, not hyphens. diff --git a/tests/django_oscar/oscar/base.html b/tests/django_oscar/oscar/base.html deleted file mode 100644 index 5c7cd8a..0000000 --- a/tests/django_oscar/oscar/base.html +++ /dev/null @@ -1,48 +0,0 @@ -{% load i18n %} -{% load static %} - - - - - {% block title %}{{ shop_name }} - {{ shop_tagline }}{% endblock %} - - - - - - {% block favicon %} - - {% endblock %} - {# Block where global CSS will go. #} - {% block styles %}{% endblock %} - {# Additional CSS - specific to certain pages #} - {% block extrastyles %}{% endblock %} - {% block extrahead %}{% endblock %} - {% block tracking %} - {# Default to using Google analytics #} - {% include "oscar/partials/google_analytics.html" %} - {% endblock %} - - - {# Main content goes in this 'layout' block #} - {% block layout %}{% endblock %} - {# Scripts loaded from a CDN. #} - {% block cdn_scripts %} - - - - {% endblock %} - {# Local scripts #} - {% block scripts %}{% endblock %} - {# Additional JS scripts #} - {% block extrascripts %}{% endblock %} - {# Block for body onload functions #} - - {# Page meta-data - this is populated by the 'metadata' template context processor #} - - diff --git a/tests/django_oscar/oscar/basket/basket.html b/tests/django_oscar/oscar/basket/basket.html deleted file mode 100644 index 58c60ee..0000000 --- a/tests/django_oscar/oscar/basket/basket.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block title %} - {% trans "Basket" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{# Hide mini-basket so we don't have two baskets to keep in sync #} -{% block mini_basket %}{% endblock %} -{% block headertext %} - {% trans "Basket" %} -{% endblock %} -{% block content %} - {# Use a partial template so that AJAX can be used to re-render basket #} - {% include 'oscar/basket/partials/basket_content.html' %} -{% endblock content %} -{% block onbodyload %} - {{ block.super }} - {# We pass in the URL to send AJAX requests to #} - var options = { - 'basketURL': '{% url 'basket:summary' %}' - }; - oscar.basket.init(options); -{% endblock %} diff --git a/tests/django_oscar/oscar/basket/messages/addition.html b/tests/django_oscar/oscar/basket/messages/addition.html deleted file mode 100644 index 073db55..0000000 --- a/tests/django_oscar/oscar/basket/messages/addition.html +++ /dev/null @@ -1,14 +0,0 @@ -{% load i18n %} -{% if quantity == 1 %} - {% blocktrans with title=product.get_title %} - {{ title }} - has been added to your basket. - {% endblocktrans %} -{% else %} - {% blocktrans with title=product.get_title quantity=quantity %} - {{ quantity }} - copies of - {{ title }} - have been added to your basket. - {% endblocktrans %} -{% endif %} diff --git a/tests/django_oscar/oscar/basket/messages/line_restored.html b/tests/django_oscar/oscar/basket/messages/line_restored.html deleted file mode 100644 index 10f321c..0000000 --- a/tests/django_oscar/oscar/basket/messages/line_restored.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load i18n %} -{% blocktrans with title=line.product.get_title %} - {{ title }} - has been moved back to your basket. -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/basket/messages/line_saved.html b/tests/django_oscar/oscar/basket/messages/line_saved.html deleted file mode 100644 index c67cf7d..0000000 --- a/tests/django_oscar/oscar/basket/messages/line_saved.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load i18n %} -{% blocktrans with title=line.product.get_title %} - {{ title }} - has been saved for later -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/basket/messages/new_total.html b/tests/django_oscar/oscar/basket/messages/new_total.html deleted file mode 100644 index c8d0720..0000000 --- a/tests/django_oscar/oscar/basket/messages/new_total.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load i18n %} -{% load currency_filters %} -{% if basket.is_empty %} - {% trans "Your basket is now empty" %} -{% else %} - {% if basket.is_tax_known %} - {% blocktrans with total=basket.total_incl_tax|currency:basket.currency %} - Your basket total is now - {{ total }} - {% endblocktrans %} - {% else %} - {% blocktrans with total=basket.total_excl_tax|currency:basket.currency %} - Your basket total is now - {{ total }} - {% endblocktrans %} - {% endif %} -{% endif %} -{% if include_buttons %} -
    - - {% trans "View basket" %} - - - {% trans "Checkout now" %} - -{% endif %} diff --git a/tests/django_oscar/oscar/basket/messages/offer_gained.html b/tests/django_oscar/oscar/basket/messages/offer_gained.html deleted file mode 100644 index c9f9cdd..0000000 --- a/tests/django_oscar/oscar/basket/messages/offer_gained.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load i18n %} -{% blocktrans with name=offer.name %} - Your basket now qualifies for the - {{ name }} - offer. -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/basket/messages/offer_lost.html b/tests/django_oscar/oscar/basket/messages/offer_lost.html deleted file mode 100644 index 3852d17..0000000 --- a/tests/django_oscar/oscar/basket/messages/offer_lost.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load i18n %} -{% blocktrans with name=offer.name %} - Your basket no longer qualifies for the - {{ name }} - offer. -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/basket/partials/basket_content.html b/tests/django_oscar/oscar/basket/partials/basket_content.html deleted file mode 100644 index 94fb96f..0000000 --- a/tests/django_oscar/oscar/basket/partials/basket_content.html +++ /dev/null @@ -1,273 +0,0 @@ -{% load i18n %} -{% load image_tags %} -{% load currency_filters %} -{% load purchase_info_tags %} -{% load widget_tweaks %} -{% if basket_warnings %} -
    {% trans "Important messages about items in your basket" %}
    - {% for warning in basket_warnings %} -
    - {{ warning }} -
    - {% endfor %} -{% endif %} -{% if upsell_messages %} -
    -

    {% trans "You could be missing out on offers!" %}

    - {% for upsell in upsell_messages %} - {% blocktrans with message=upsell.message url=upsell.offer.get_absolute_url offer_name=upsell.offer.name %} -
    - {{ message }} to qualify for the - {{ offer_name }} - special offer -
    - {% endblocktrans %} - {% endfor %} -
    -{% endif %} -{% if not basket.is_empty %} - {% block basket_form_headers %} -
    -
    -

    {% trans "Items to buy now" %}

    -

    {% trans "Quantity" %}

    -

    {% trans "Price" %}

    -

    {% trans "Total" %}

    -
    -
    - {% endblock %} - {% block basket_form_main %} -
    - {% csrf_token %} - {{ formset.management_form }} - {% for form in formset %} - {% with line=form.instance product=form.instance.product %} - {% purchase_info_for_line request line as session %} -
    -
    -
    - {{ form.id }} - {% with image=product.primary_image %} - {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} - - {{ product.get_title }} - - {% endwith %} -
    -
    -

    - {{ line.description }} -

    -

    - {{ session.availability.message }} -

    -
    -
    -
    -
    - {% render_field form.quantity class+="form-control" %} -
    - -
    -
    -
    -
    - - {% trans "Remove" %} - - {% if user.is_authenticated %} - | - - {% trans "Save for later" %} - - {% endif %} -
    - {{ form.save_for_later }} - {{ form.DELETE }} -
    - {% for field_errors in form.errors.values %} - {% for error in field_errors %} - - - {{ error }} - - {% endfor %} - {% endfor %} -
    -
    -
    - {% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %} -

    - — -

    - {% else %} -

    - {% trans "Price" %}: - {% if line.is_tax_known %} - {{ line.unit_price_incl_tax|currency:line.price_currency }} - {% else %} - {{ line.unit_price_excl_tax|currency:line.price_currency }} - {% endif %} -

    - {% endif %} -
    -
    - {% if not line.line_price_incl_tax and not line_price_excl_tax %} -

    - — -

    - {% else %} -

    - {% trans "Total" %}: - {% if line.is_tax_known %} - {{ line.line_price_incl_tax|currency:line.price_currency }} - {% else %} - {{ line.line_price_excl_tax|currency:line.price_currency }} - {% endif %} -

    - {% endif %} -
    -
    -
    - {% endwith %} - {% endfor %} -
    - {% endblock %} -
    - {% block vouchers %} - {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} - {% if voucher_form %} -
    -
    -

    {% trans "Voucher/promo code" %}

    -
    - - -
    - {% endif %} - {% endblock vouchers %} - {% block baskettotals %} -
    -
    -

    {% trans "Totals" %}

    -
    - {% include 'oscar/basket/partials/basket_totals.html' with editable=1 %} -
    - {% endblock baskettotals %} -
    - {% block formactions %} - - {% endblock formactions %} -{% else %} - {% block emptybasket %} -

    - {% trans "Your basket is empty." %} - {% trans "Continue shopping" %} -

    - {% endblock %} -{% endif %} -{% block savedbasket %} - {% if user.is_authenticated and saved_formset %} -
    -
    -

    {% trans "Items to buy later" %}

    -
    -
    -
    - {% trans "Items" %} -
    -
    - {% trans "Price" %} -
    -
    -   -
    -
    -
    - {% csrf_token %} - {{ saved_formset.management_form }} - {% for form in saved_formset %} - {% purchase_info_for_product request form.instance.product as session %} -
    -
    -
    - {{ form.id }} - {% with image=form.instance.product.primary_image %} - {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} - - {{ form.instance.product.get_title }} - - {% endwith %} -
    -
    -

    - - {{ form.instance.description }} - -

    -

    - {{ session.availability.message }} -

    - - {% trans "Remove" %} - -
    - {{ form.move_to_basket }} - {{ form.DELETE }} -
    -
    - {% purchase_info_for_product request form.instance.product as saved %} -
    -

    - {% if saved.price.is_tax_known %} - {{ saved.price.incl_tax|currency:saved.price.currency }} - {% else %} - {{ saved.price.excl_tax|currency:saved.price.currency }} - {% endif %} -

    -
    - -
    -
    - {% endfor %} -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/basket/partials/basket_quick.html b/tests/django_oscar/oscar/basket/partials/basket_quick.html deleted file mode 100644 index e138866..0000000 --- a/tests/django_oscar/oscar/basket/partials/basket_quick.html +++ /dev/null @@ -1,69 +0,0 @@ -{% load history_tags %} -{% load basket_tags %} -{% load currency_filters %} -{% load image_tags %} -{% load i18n %} -
      - {% if request.basket.num_lines %} - {% for line in request.basket.all_lines %} -
    • -
      -
      -
      - {% with image=line.product.primary_image %} - {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} - - {{ line.product.get_title }} - - {% endwith %} -
      -
      - -
      - {% trans "Qty" %} - {{ line.quantity }} -
      -
      - {{ line.unit_price_excl_tax|currency:request.basket.currency }} -
      -
      -
    • - {% endfor %} -
    • -

      - {% if request.basket.is_tax_known %} - - {% trans "Total:" %} {{ request.basket.total_incl_tax|currency:request.basket.currency }} - - {% else %} - - {% trans "Total:" %} {{ request.basket.total_excl_tax|currency:request.basket.currency }} - - {% endif %} -

      - - {% trans "View basket" %} - - - - {% trans "Checkout" %} - -
    • - {% else %} -
    • -

      - {% trans "Your basket is empty." %} -

      -
    • - {% endif %} -
    diff --git a/tests/django_oscar/oscar/basket/partials/basket_totals.html b/tests/django_oscar/oscar/basket/partials/basket_totals.html deleted file mode 100644 index 62b5232..0000000 --- a/tests/django_oscar/oscar/basket/partials/basket_totals.html +++ /dev/null @@ -1,265 +0,0 @@ -{% load i18n %} -{% load currency_filters %} -{% load shipping_tags %} -
    - - - {% block basket_header %} - - - - {% endblock %} - {% with offer_discounts=basket.offer_discounts voucher_discounts=basket.grouped_voucher_discounts %} - {% block discount_totals %} - {% if offer_discounts or voucher_discounts %} - {# Basket total will be discounted so we show a before and after version #} - - - - - {% for discount in offer_discounts %} - - - - - {% endfor %} - {% if voucher_discounts %} - - - - {% for discount in voucher_discounts %} - - - - - {% endfor %} - {% endif %} - {% endif %} - {% endblock %} - {% block basket_total %} - {% if offer_discounts or voucher_discounts %} - - - - - {% else %} - {# No discounts to basket #} - - - - - {% endif %} - {% endblock %} - {% endwith %} - {% block shipping_totals %} - - - - - - - - {% if not shipping_method.is_discounted %} - - - - - {% else %} - {% shipping_charge_discount shipping_method basket as shipping_discount %} - {% shipping_charge_excl_discount shipping_method basket as shipping_charge_excl_discount %} - {# As shipping is discounted, we break it down into its original charge and a discount #} - - - - - - - - - {# This section needs adjustment to when taxes are shown separately #} - - - - - - - - - {% endif %} - {% endblock %} - {% block surcharges %} - {% if surcharges %} - - - - - - - - {% for surcharge in surcharges %} - - - - - {% endfor %} - {% endif %} - {% endblock %} - {% block tax_totals %} - {% if show_tax_separately %} - - - - - - - - - - - - - - - - {% endif %} - {% endblock %} - {% block post_order_action_totals %} - {% if basket.post_order_actions %} - - - - - - - - - {% for discount in basket.post_order_actions %} - - - - {% endfor %} - {% endif %} - {% endblock %} - {% block order_total %} - - - - - - - - - {% if not order_total.is_tax_known %} - - - - {% endif %} - {% endblock %} - -
    -

    {% trans "Basket" %}

    -
    {% trans "Basket total (before discounts)" %} - {% if basket.is_tax_known and not show_tax_separately %} - {{ basket.total_incl_tax_excl_discounts|currency:basket.currency }} - {% else %} - {{ basket.total_excl_tax_excl_discounts|currency:basket.currency }} - {% endif %} -
    - {% trans "Discount" %} - {{ discount.name }} - {% if discount.description %} -
    - - {{ discount.description }} - - {% endif %} -
    -{{ discount.discount|currency:basket.currency }}
    -

    {% trans "Vouchers" %}

    -
    - {{ discount.voucher.name }} ({{ discount.voucher.code }}) - {% if editable %} -
    - {% csrf_token %} - -
    - {% endif %} -
    -{{ discount.discount|currency:basket.currency }}
    {% trans "Basket total (after discounts)" %} - {% if not show_tax_separately and basket.is_tax_known %} - {{ basket.total_incl_tax|currency:basket.currency }} - {% else %} - {{ basket.total_excl_tax|currency:basket.currency }} - {% endif %} -
    {% trans "Basket total" %} - {% if not show_tax_separately and basket.is_tax_known %} - {{ basket.total_incl_tax|currency:basket.currency }} - {% else %} - {{ basket.total_excl_tax|currency:basket.currency }} - {% endif %} -
     
    -

    {% trans "Shipping" %}

    - {% if shipping_methods|length > 1 and editable %} - - {% trans "Alternative shipping methods can be chosen during checkout" %} - - {% endif %} -
    {{ shipping_method.name }} - {% if not show_tax_separately and shipping_charge.is_tax_known %} - {{ shipping_charge.incl_tax|currency:basket.currency }} - {% else %} - {{ shipping_charge.excl_tax|currency:basket.currency }} - {% endif %} -
    {% trans "Shipping method" %}{{ shipping_method.name }}
    {% trans "Shipping total (before discounts)" %} - {% if not show_tax_separately and shipping_charge_excl_discount.is_tax_known %} - {{ shipping_charge_excl_discount.incl_tax|currency:basket.currency }} - {% else %} - {{ shipping_charge_excl_discount.excl_tax|currency:basket.currency }} - {% endif %} -
    - {% trans "Discount" %} - {{ shipping_method.discount_name }} - -{{ shipping_discount|currency:basket.currency }}
    {% trans "Shipping total (after discounts)" %} - {% if not show_tax_separately and shipping_charge.is_tax_known %} - {{ shipping_charge.incl_tax|currency:basket.currency }} - {% else %} - {{ shipping_charge.excl_tax|currency:basket.currency }} - {% endif %} -
     
    -

    {% trans "Surcharges" %}

    -
    {{ surcharge.surcharge.name }} - {% if not show_tax_separately and surcharge.price.is_tax_known %} - {{ surcharge.price.incl_tax|currency:basket.currency }} - {% else %} - {{ surcharge.price.excl_tax|currency:basket.currency }} - {% endif %} -
     
    -

    {% trans "Tax" %}

    -
    {% trans "Basket" %}{{ basket.total_tax|currency:basket.currency }}
    {% trans "Shipping" %}{{ shipping_charge.tax|currency:basket.currency }}
     
    -

    {% trans "Post order actions" %}

    - - {% trans "These will be applied once your order is placed." %} - -
    - {{ discount.name }} -
    -

    - {{ discount.description }} -

    -
     
    -

    {% trans "Order total" %}

    -
    -

    - {% if order_total.is_tax_known %} - {{ order_total.incl_tax|currency:basket.currency }} - {% else %} - {{ order_total.excl_tax|currency:basket.currency }} - {% endif %} -

    -
    - - {% trans "Taxes will be added during checkout." %} - -
    -
    diff --git a/tests/django_oscar/oscar/catalogue/browse.html b/tests/django_oscar/oscar/catalogue/browse.html deleted file mode 100644 index af0c568..0000000 --- a/tests/django_oscar/oscar/catalogue/browse.html +++ /dev/null @@ -1,130 +0,0 @@ -{% extends "oscar/layout_2_col.html" %} -{% load basket_tags %} -{% load category_tags %} -{% load product_tags %} -{% load i18n %} -{% block title %} - {% if summary %}{{ summary }} |{% endif %} - {{ block.super }} -{% endblock %} -{% block headertext %}{{ summary }}{% endblock %} -{% block breadcrumbs %} - -{% endblock breadcrumbs %} -{% block column_left %} - {% category_tree as tree_categories %} - {% if tree_categories %} -

    {% trans "Show results for" %}

    -
    - -
    -{% endif %} -{% if has_facets %} -

    {% trans "Refine by" %}

    -
    - {% for field, data in facet_data.items %} - {% if data.results %} - {% include 'oscar/search/partials/facet.html' with name=data.name items=data.results %} - {% endif %} - {% endfor %} -
    -{% endif %} -{% endblock %} -{% block content %} -
    - {# Render other search params as hidden inputs #} - {% for value in selected_facets %} - - {% endfor %} - - {% if paginator.count %} - {% if paginator.num_pages > 1 %} - {% blocktrans with start=page_obj.start_index end=page_obj.end_index count num_results=paginator.count %} - {{ num_results }} - result - showing - {{ start }} - to - {{ end }} - . - {% plural %} - {{ num_results }} - results - showing - {{ start }} - to - {{ end }} - . - {% endblocktrans %} - {% else %} - {% blocktrans count num_results=paginator.count %} - {{ num_results }} - result. - {% plural %} - {{ num_results }} - results. - {% endblocktrans %} - {% endif %} - {% if form %} -
    - {% include "oscar/partials/form_field.html" with field=form.sort_by style='horizontal' %} -
    - {% endif %} - {% else %} -

    - {% trans " - 0 - results." %} -

    - {% endif %} -
    - {% if products %} -
    -
    -
      - {% for product in products %} -
    1. - {% render_product product %} -
    2. - {% endfor %} -
    - {% include "oscar/partials/pagination.html" %} -
    -
    - {% else %} -

    - {% trans "No products found." %} -

    - {% endif %} -{% endblock content %} -{% block onbodyload %} - {{ block.super }} - oscar.search.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/category.html b/tests/django_oscar/oscar/catalogue/category.html deleted file mode 100644 index be6b55c..0000000 --- a/tests/django_oscar/oscar/catalogue/category.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "oscar/catalogue/browse.html" %} -{% load i18n %} -{% block title %}{{ category.get_meta_title }} | {{ block.super }}{% endblock %} -{% block description %}{{ category.get_meta_description }}{% endblock %} -{% block header %} - -{% endblock %} -{% block breadcrumbs %} - -{% endblock breadcrumbs %} -{% block content %} - {% if category.description %} -
    -
    -

    - {{ category.description|safe }} -

    -
    - {% if category.image %} -
    - {{ category.name }} -
    - {% endif %} -
    - {% endif %} - {{ block.super }} -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/detail.html b/tests/django_oscar/oscar/catalogue/detail.html deleted file mode 100644 index 41175d2..0000000 --- a/tests/django_oscar/oscar/catalogue/detail.html +++ /dev/null @@ -1,208 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load history_tags %} -{% load currency_filters %} -{% load reviews_tags %} -{% load product_tags %} -{% load display_tags %} -{% load i18n %} -{% load purchase_info_tags %} -{% block title %}{{ product.get_meta_title }} | {{ block.super }}{% endblock %} -{% block description %}{{ product.get_meta_description }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %}{% endblock header %} -{% block content %} -
    - -
    - {% block product_gallery %} -
    - {% include "oscar/catalogue/partials/gallery.html" %} -
    - {% endblock %} - {% block product_main %} -
    - {% comment %} - This is a bit clunky here. Better to have some kind of JS-driven dashboard menu that - pops out when clicked. A bit like the Django-Debug-Toolbar button - {% endcomment %} - {% if user.is_staff %} - - - - {% trans "Edit this product" %} - - - {% endif %} -

    {{ product.get_title }}

    - {% block product_stock_record %} - {% include "oscar/catalogue/partials/stock_record.html" with verbose=1 %} - {% endblock %} - {% iffeature "reviews" %} - {% include "oscar/catalogue/reviews/partials/review_stars.html" %} - {% endiffeature %} -
    - {% if not product.is_parent %} - {% block product_basket_form %} - {% include "oscar/catalogue/partials/add_to_basket_form.html" %} - {% endblock %} - {% else %} - {% block variants %} -

    {% trans 'Variants:' %}

    - {% for child in product.children.public %} - {% purchase_info_for_product request child as child_session %} - {% if child_session.availability.is_available_to_buy %} - {{ child.get_title }} -
    - {% endif %} - {% endfor %} - {% endblock %} - {% endif %} -
    - - {% endblock %} -
    - - {% block product_description %} - {% if product.description %} -
    -

    {% trans "Product Description" %}

    -
    -

    - {{ product.description|safe }} -

    - {% endif %} - {% endblock %} - {% block product_info %} -
    -

    {% trans "Product Information" %}

    -
    - - {% if product.upc %} - - - - - {% endif %} - - - - - {% purchase_info_for_product request product as session %} - {% if session.price.exists %} - - - - - {% if session.price.is_tax_known %} - - - - - - - - - {% endif %} - - - - - {% endif %} - {% for av in product.get_attribute_values %} - - - - - {% endfor %} - {% iffeature "reviews" %} - - - - - {% endiffeature %} -
    {% trans "UPC" %}{{ product.upc }}
    {% trans "Product Type" %}{{ product.get_product_class.name }}
    {% trans "Price (excl. tax)" %}{{ session.price.excl_tax|currency:session.price.currency }}
    {% trans "Price (incl. tax)" %}{{ session.price.incl_tax|currency:session.price.currency }}
    {% trans "Tax" %}{{ session.price.tax|currency:session.price.currency }}
    {% trans "Availability" %}{{ session.availability.message }}
    {{ av.attribute.name }}{{ av.value_as_html }}
    {% trans "Number of reviews" %}{{ product.num_approved_reviews }}
    - {% endblock %} - {% iffeature "reviews" %} - {% block product_review %} -
    -
    - {% if product.num_approved_reviews > 3 %} - - {% trans "See all reviews" %} - - {% endif %} -

    {% trans "Customer Reviews" %}

    -
    - {% if product.num_approved_reviews == 0 %} -

    - {% if product|is_review_permitted:user %} - {% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id as add_review_url %} - {% blocktrans %} - This product does not have any reviews yet - - be the first to write one - . - {% endblocktrans %} - {% else %} - {% trans "This product does not have any reviews yet" %}. - {% endif %} -

    - {% else %} -
      - {% for review in product.reviews.approved.all|slice:":3" %} -
    1. - {% include 'oscar/catalogue/partials/review.html' %} -
    2. - {% endfor %} -
    - {% endif %} -
    - {% endblock product_review %} - {% endiffeature %} - {% with recommended_products=product.sorted_recommended_products|slice:":6" %} - {% if recommended_products %} -
    -

    {% trans "Recommended items" %}

    -
    -
      - {% for product in recommended_products %} -
    • - {% render_product product %} -
    • - {% endfor %} -
    - {% endif %} - {% endwith %} - {% recently_viewed_products current_product=product %} -
    - -{% endblock content %} -{% block extrascripts %}{{ block.super }}{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form.html b/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form.html deleted file mode 100644 index e639915..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load basket_tags %} -{% load display_tags %} -{% load i18n %} -{% load purchase_info_tags %} -{% purchase_info_for_product request product as session %} -{% if session.availability.is_available_to_buy %} - {% basket_form request product as basket_form %} -
    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" with form=basket_form %} - -
    - {% iffeature "wishlists" %} - {% include "oscar/catalogue/partials/add_to_wishlist.html" %} - {% endiffeature %} -{% else %} - {% if has_active_alert %} -

    - {% trans "You have an active stock alert for this product." %} -

    - {% else %} -
    - {% csrf_token %} -

    - {% trans "You can get an email alert when this product is back in stock." %} -

    - {% include "oscar/partials/form_fields.html" with form=alert_form %} - -
    - {% endif %} - {% iffeature "wishlists" %} - {% include "oscar/catalogue/partials/add_to_wishlist.html" %} - {% endiffeature %} -{% endif %} diff --git a/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form_compact.html b/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form_compact.html deleted file mode 100644 index 8538136..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/add_to_basket_form_compact.html +++ /dev/null @@ -1,18 +0,0 @@ -{% load basket_tags %} -{% load i18n %} -{% load purchase_info_tags %} -{% purchase_info_for_product request product as session %} -{% if session.availability.is_available_to_buy %} - {% basket_form request product 'single' as basket_form %} -
    - {% csrf_token %} - {{ basket_form.as_p }} - -
    -{% else %} - - {% trans "Add to basket" %} - -{% endif %} diff --git a/tests/django_oscar/oscar/catalogue/partials/add_to_wishlist.html b/tests/django_oscar/oscar/catalogue/partials/add_to_wishlist.html deleted file mode 100644 index c75b1b5..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/add_to_wishlist.html +++ /dev/null @@ -1,69 +0,0 @@ -{% load i18n %} -{% load wishlist_tags %} -{% if user.is_authenticated %} - {% with wishlists=user.wishlists.all %} - {# Select wishlists that contains product #} - {% wishlists_containing_product wishlists product as product_wishlists %} - {% if wishlists %} -
    - - {% trans "Add to wish list" %} - - -
    - {% else %} - {# 1 or no existing wishlists - show a simple button #} -
    - {% csrf_token %} - -
    - {% endif %} - {% for wishlist in product_wishlists %} -
    - {% csrf_token %} - {% blocktrans with name=wishlist.name url=wishlist.get_absolute_url %} - - Product is in - '{{ name }}' - wishlist. - - {% endblocktrans %} - -
    - {% endfor %} - {% endwith %} -{% else %} - -
    -{% endif %} diff --git a/tests/django_oscar/oscar/catalogue/partials/gallery.html b/tests/django_oscar/oscar/catalogue/partials/gallery.html deleted file mode 100644 index eb7aa40..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/gallery.html +++ /dev/null @@ -1,51 +0,0 @@ -{% load i18n %} -{% load image_tags %} -{% with all_images=product.get_all_images %} - {# use length rather then count as the images get queried anyways #} - {% if all_images|length > 1 %} - - {% else %} - {# Only one image to show #} - - {% endif %} -{% endwith %} diff --git a/tests/django_oscar/oscar/catalogue/partials/product.html b/tests/django_oscar/oscar/catalogue/partials/product.html deleted file mode 100644 index 0273250..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/product.html +++ /dev/null @@ -1,46 +0,0 @@ -{% load display_tags %} -{% load i18n %} -{% load image_tags %} -{% load reviews_tags %} -{% block product %} -
    - {% block product_image %} -
    - {% with image=product.primary_image %} - {% oscar_thumbnail image.original "x155" upscale=False as thumb %} - - {{ product.get_title }} - - {% endwith %} -
    - {% endblock %} - {% block product_review %} - {% iffeature "reviews" %} -

    - - - - - -

    - {% endiffeature %} - {% endblock %} - {% block product_title %} -

    - - {{ product.get_title|truncatewords:4 }} - -

    - {% endblock %} - {% block product_price %} -
    - {% include "oscar/catalogue/partials/stock_record.html" %} - {% if not product.is_parent and not product.has_options %} - {% include "oscar/catalogue/partials/add_to_basket_form_compact.html" %} - {% endif %} -
    - {% endblock %} -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/partials/review.html b/tests/django_oscar/oscar/catalogue/partials/review.html deleted file mode 100644 index 173a24a..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/review.html +++ /dev/null @@ -1,75 +0,0 @@ -{% load reviews_tags %} -{% load i18n %} -
    -
    -

    - - - - - - - - {{ review.title }} -

    -
    -

    - {{ review.body|striptags }} -

    -

    - - {% if review.user == user %} - {% blocktrans with review_date=review.date_created %} - Reviewed by you on {{ review_date }} - {% endblocktrans %} - {% else %} - {% blocktrans with name=review.reviewer_name review_date=review.date_created %} - Reviewed by - {{ name }} - on {{ review_date }} - {% endblocktrans %} - {% endif %} - | - - {% trans 'Permalink' %} - - -

    - {% if review|may_vote:user %} - - {% trans "Is this review helpful?" %} - -
    - {% csrf_token %} - - -
    -
    - {% csrf_token %} - - -
    - {% endif %} -

    - - {% if review.has_votes %} - {% blocktrans with num_up_votes=review.num_up_votes count num_votes=review.total_votes %} - {{ num_up_votes }} - of {{ num_votes }} customer found this useful - {% plural %} - {{ num_up_votes }} - of {{ num_votes }} customers found this useful - {% endblocktrans %} - {% else %} - {% trans "This review has no votes." %} - {% endif %} - -

    -
    diff --git a/tests/django_oscar/oscar/catalogue/partials/stock_record.html b/tests/django_oscar/oscar/catalogue/partials/stock_record.html deleted file mode 100644 index 39e52b5..0000000 --- a/tests/django_oscar/oscar/catalogue/partials/stock_record.html +++ /dev/null @@ -1,35 +0,0 @@ -{% load currency_filters %} -{% load i18n %} -{% load purchase_info_tags %} -{% purchase_info_for_product request product as session %} -{% if session.price.exists %} - {% if session.price.excl_tax == 0 %} -

    - {% trans "Free" %} -

    - {% elif session.price.is_tax_known %} -

    - {{ session.price.incl_tax|currency:session.price.currency }} -

    - {% else %} -

    - {{ session.price.excl_tax|currency:session.price.currency }} -

    - {% endif %} -{% else %} -

    -   -

    -{% endif %} -

    - {% if session.availability.is_available_to_buy %} - - {% else %} - - {% endif %} - {% if verbose %} - {{ session.availability.message }} - {% else %} - {{ session.availability.short_message }} - {% endif %} -

    diff --git a/tests/django_oscar/oscar/catalogue/reviews/partials/review_stars.html b/tests/django_oscar/oscar/catalogue/reviews/partials/review_stars.html deleted file mode 100644 index 5139f85..0000000 --- a/tests/django_oscar/oscar/catalogue/reviews/partials/review_stars.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load reviews_tags %} -{% load i18n %} -{% if product.rating != None %} -

    - - - - - - - - {% blocktrans count product.num_approved_reviews as num_reviews %} - {{ num_reviews }} customer review - {% plural %} - {{ num_reviews }} customer reviews - {% endblocktrans %} - - -   - {% else %} -

    - {% endif %} - {% if product|is_review_permitted:user %} - - {% trans "Write a review" %} - - {% endif %} -

    diff --git a/tests/django_oscar/oscar/catalogue/reviews/review_detail.html b/tests/django_oscar/oscar/catalogue/reviews/review_detail.html deleted file mode 100644 index 77e57f6..0000000 --- a/tests/django_oscar/oscar/catalogue/reviews/review_detail.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block title %} - {{ review.title }} | {% trans "Reviews" %} | {{ product.title }} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Customer reviews" %} -{% endblock %} -{% block content %} -
    - {% include 'oscar/catalogue/reviews/review_product.html' %} - {% include 'oscar/catalogue/partials/review.html' %} -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/reviews/review_form.html b/tests/django_oscar/oscar/catalogue/reviews/review_form.html deleted file mode 100644 index 1b4f003..0000000 --- a/tests/django_oscar/oscar/catalogue/reviews/review_form.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "oscar/catalogue/detail.html" %} -{% load i18n %} -{% block product_review %} -
    -
    -
    - - {% trans "Leave a product review" %} - - {% csrf_token %} - {% include 'oscar/partials/form_field.html' with field=form.title %} -
    - -
    - {{ form.score }} -
    - - - - - -
    - {% for error in form.score.errors %} - - - {{ error }} - - {% endfor %} -
    - {% comment %} - {% include 'oscar/partials/form_field.html' with field=form.score %} - {% endcomment %} -
    - {% include 'oscar/partials/form_field.html' with field=form.body %} - {% if form.name %} - {% include 'oscar/partials/form_field.html' with field=form.name %} - {% endif %} - {% if form.email %} - {% include 'oscar/partials/form_field.html' with field=form.email %} - {% endif %} - - {% trans "or" %} - {% trans "cancel" %} -
    -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/reviews/review_list.html b/tests/django_oscar/oscar/catalogue/reviews/review_list.html deleted file mode 100644 index eea2ab1..0000000 --- a/tests/django_oscar/oscar/catalogue/reviews/review_list.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load history_tags %} -{% load i18n %} -{% block title %} - {% trans "All reviews" %} | {{ product.title }} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Customer reviews" %} -{% endblock %} -{% block content %} -
    - {% include 'oscar/catalogue/reviews/review_product.html' %} - {% if reviews %} -
    - {% include "oscar/partials/form_fields_inline.html" with form=form %} - -
    -
    - {% for review in reviews %} - {% include 'oscar/catalogue/partials/review.html' %} - {% endfor %} - {% include 'oscar/partials/pagination.html' %} - {% else %} -

    - {% trans "This product does not have any reviews yet." %} -

    - {% endif %} -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/catalogue/reviews/review_product.html b/tests/django_oscar/oscar/catalogue/reviews/review_product.html deleted file mode 100644 index 9feb4ab..0000000 --- a/tests/django_oscar/oscar/catalogue/reviews/review_product.html +++ /dev/null @@ -1,21 +0,0 @@ -{% load image_tags %} -
    -
    -
    - {% with image=product.primary_image %} - {% oscar_thumbnail image.original "x155" upscale=False as thumb %} - - {{ product.get_title }} - - {% endwith %} -
    -
    -
    -

    - {{ product.get_title }} -

    - {% include "oscar/catalogue/partials/stock_record.html" %} - {% include "oscar/catalogue/reviews/partials/review_stars.html" %} -
    -
    -
    diff --git a/tests/django_oscar/oscar/checkout/checkout.html b/tests/django_oscar/oscar/checkout/checkout.html deleted file mode 100644 index 8c327f3..0000000 --- a/tests/django_oscar/oscar/checkout/checkout.html +++ /dev/null @@ -1,174 +0,0 @@ -{% extends "oscar/checkout/layout.html" %} -{% load currency_filters %} -{% load i18n %} -{% load image_tags %} -{% load purchase_info_tags %} -{% block title %} - {% trans "Checkout" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' %} -{% endblock %} -{% block content %} - {% if error %} -
    - {{ error }} -
    - {% endif %} -
    - {% block shipping_address %} -
    -
    -

    {% trans "Shipping" %}

    -
    - {% if shipping_address %} -
    -

    - {% trans "Address" %} - {% block shipping_address_actions %} - - {% trans "Change" %} - - {% endblock %} -

    -
    - {% for field in shipping_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    - {% if shipping_address.phone_number %} -

    {% trans "Contact" %}

    -

    - {% trans "Phone" %}: {{ shipping_address.phone_number }} - {% if guest_email %} -
    - {% trans "Email" %}: {{ guest_email }} - {% endif %} -

    - {% endif %} - {% if shipping_address.notes %} -

    {% trans "Instructions" %}

    -

    - {{ shipping_address.notes|linebreaks }} -

    - {% endif %} -
    - {% endif %} - {% if shipping_method %} -
    -

    - {% trans "Shipping method" %} - {% block shipping_method_actions %} - - {% trans "Change" %} - - {% endblock %} -

    -

    - {{ shipping_method.name }} - {% if shipping_method.description %}- {{ shipping_method.description|safe }}{% endif %} -

    -
    - {% endif %} -
    - {% endblock shipping_address %} - {# You will almost certainly want to override this block to provide a payment summary #} - {% block payment_method %} -
    -
    -

    {% trans "Payment" %}

    -
    -
    -

    - {% trans "Payment" %} - - {% trans "Change" %} - -

    -

    - {% trans "Payment details to go here" %} -

    -
    -
    - {% endblock payment_method %} -
    - {% block order_contents %} -
    - {% block order_contents_actions %} - - {% trans "Edit order contents" %} - - {% endblock %} -

    {% trans "Order contents" %}

    -
    -
    -
    -

    - {% trans "Item" %} -

    -

    - {% trans "Quantity" %} -

    -

    - {% trans "Total" %} -

    -
    -
    - {% for line in basket.all_lines %} - {% purchase_info_for_line request line as session %} -
    -
    -
    -
    - {% with image=line.product.primary_image %} - {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} - - {{ product.get_title }} - - {% endwith %} -
    -
    -
    -

    - - {{ line.description }} - -

    - - {{ session.availability.message }} - -
    -
    - {{ line.quantity }} -
    -
    -

    - {% if not show_tax_separately and line.is_tax_known %} - {{ line.line_price_incl_tax|currency:basket.currency }} - {% else %} - {{ line.line_price_excl_tax|currency:basket.currency }} - {% endif %} -

    -
    -
    -
    - {% endfor %} -
    -
    -   -
    -
    -
    -

    {% trans 'Totals' %}

    -
    - {% include 'oscar/basket/partials/basket_totals.html' %} -
    -
    - {% endblock order_contents %} - {% block shipping_method %}{% endblock shipping_method %} - {% block payment_details %}{% endblock payment_details %} - {% block place_order %}{% endblock place_order %} -{% endblock content %} diff --git a/tests/django_oscar/oscar/checkout/gateway.html b/tests/django_oscar/oscar/checkout/gateway.html deleted file mode 100644 index 3f1830b..0000000 --- a/tests/django_oscar/oscar/checkout/gateway.html +++ /dev/null @@ -1,65 +0,0 @@ -{% extends "oscar/checkout/layout.html" %} -{% load i18n %} -{% load widget_tweaks %} -{% block title %} - {% trans "Checkout gateway" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=0 %} -{% endblock %} -{% block checkout_title %} - {% trans "Who are you?" %} -{% endblock %} -{% block content %} -
    - {% csrf_token %} - {{ form.non_field_errors }} - {% include "oscar/partials/form_field.html" with field=form.username %} -
    -
    -
    - {{ form.options.0 }} -
    -
    -
    -
    - {{ form.options.errors }} -
    -
    - {{ form.options.2 }} -
    - {% render_field form.password class+="form-control mr-sm-2" %} - - - {% trans "Get a password reminder" %} - - - {% for error in form.password.errors %}{{ error }}{% endfor %} -
    -
    -
    -
    -
    -
    -
    - {{ form.options.1 }} -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -{% endblock content %} -{% block onbodyload %} - {{ block.super }} - oscar.checkout.gateway.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/checkout/layout.html b/tests/django_oscar/oscar/checkout/layout.html deleted file mode 100644 index daf7133..0000000 --- a/tests/django_oscar/oscar/checkout/layout.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% load category_tags %} -{% block layout %} -
    -
    -
    - {% include "oscar/partials/brand.html" %} -
    - -
    - {% block checkout_nav %}{% endblock %} -
    - -
    -
    - {% include 'oscar/partials/alert_messages.html' %} -
    -

    {% block checkout_title %}{% endblock %}

    -
    - - {% block modal %} - {% load flatpages %} - {% get_flatpages '/order/' as flatpages %} - {% for page in flatpages %} - - {% endfor %} - {% endblock %} - {% block content %}{% endblock %} -
    - -
    - {% include "oscar/partials/footer_checkout.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/checkout/nav.html b/tests/django_oscar/oscar/checkout/nav.html deleted file mode 100644 index 2a1e1e5..0000000 --- a/tests/django_oscar/oscar/checkout/nav.html +++ /dev/null @@ -1,66 +0,0 @@ -{% load i18n %} - - diff --git a/tests/django_oscar/oscar/checkout/payment_details.html b/tests/django_oscar/oscar/checkout/payment_details.html deleted file mode 100644 index 8f60f4b..0000000 --- a/tests/django_oscar/oscar/checkout/payment_details.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load i18n %} -{% block title %} - {% trans "Payment details" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=3 %} -{% endblock %} -{% block checkout_title %} - {% trans "Enter payment details" %} -{% endblock %} -{% block order_contents %}{% endblock %} -{% block shipping_address %}{% endblock %} -{% block shipping_method %}{% endblock %} -{% block payment_method %}{% endblock %} -{% block payment_details %} - {% block payment_details_content %} -

    - {% trans "This page needs implementing within your project. You may want to use one of Oscar's payment gateway libraries:" %} -

    - - - {% trans "Continue" %} - - {% endblock payment_details_content %} -{% endblock payment_details %} diff --git a/tests/django_oscar/oscar/checkout/preview.html b/tests/django_oscar/oscar/checkout/preview.html deleted file mode 100644 index fb29f5a..0000000 --- a/tests/django_oscar/oscar/checkout/preview.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load i18n %} -{% block title %} - {% trans "Order preview" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=4 %} -{% endblock %} -{% block checkout_title %} - {% trans "Preview order" %} -{% endblock %} -{% block place_order %} -
    - {% csrf_token %} - - {% comment %} - When submitting sensitive data on the payment details page (eg a bankcard) - we don't want to save the data and so we pass the bound form to the preview - template and render it in a hidden div. Then the payment information will - get re-submitted when the user confirms the order. - {% endcomment %} -
    - {% block hiddenforms %}{% endblock %} -
    -
    -
    -
    - -
    -
    -
    -
    -{% endblock place_order %} diff --git a/tests/django_oscar/oscar/checkout/shipping_address.html b/tests/django_oscar/oscar/checkout/shipping_address.html deleted file mode 100644 index 8a70d79..0000000 --- a/tests/django_oscar/oscar/checkout/shipping_address.html +++ /dev/null @@ -1,106 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load i18n %} -{% block title %} - {% trans "Shipping address" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=1 %} -{% endblock %} -{% block checkout_title %} - {% trans "Shipping address" %} -{% endblock %} -{% block order_contents %}{% endblock %} -{% block shipping_address %} -
    -
    -

    {% trans "Where should we ship to?" %}

    -
    - {% if user.is_authenticated %} - {% if addresses %} -

    {% trans "An address from your address book?" %}

    -
    -
    - {% for address in addresses %} - {% block select_address_form %} -
    -
    -
    - {% block select_address_fields %} - {% for field in address.active_address_fields %} - {{ field }} - {% if not forloop.first %}
    {% endif %} - {% endfor %} - {% endblock %} -
    -
    - {% csrf_token %} - - - {% if address.is_default_for_shipping %} - - {% else %} - - {% endif %} - -
    -
    -
    - {% if forloop.counter|divisibleby:2 %} -
    -
    - {% endif %} - {% endblock %} - {% endfor %} -
    -
    -

    {% trans "Or a new address?" %}

    - {% endif %} - {% endif %} - {% block new_address_form %} -
    -
    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" with form=form style='horizontal' %} -
    -
    - - {% trans "or" %} - {% trans "return to basket" %} -
    -
    -
    -
    - {% endblock %} -
    -{% endblock shipping_address %} -{% block shipping_method %}{% endblock %} -{% block payment_method %}{% endblock %} diff --git a/tests/django_oscar/oscar/checkout/shipping_methods.html b/tests/django_oscar/oscar/checkout/shipping_methods.html deleted file mode 100644 index 41a804e..0000000 --- a/tests/django_oscar/oscar/checkout/shipping_methods.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load currency_filters %} -{% load i18n %} -{% load shipping_tags %} -{% block title %} - {% trans "Shipping method" %} | {{ block.super }} -{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=2 %} -{% endblock %} -{% block checkout_title %} - {% trans "Shipping method" %} -{% endblock %} -{% block order_contents %}{% endblock %} -{% block shipping_address %}{% endblock %} -{% block payment_method %}{% endblock %} -{% block shipping_method %} -
    -
    -

    {% trans "Method" %}

    -

    {% trans "Cost" %}

    -
    -
    - {% for method in methods %} -
    -
    -
    -

    {{ method.name }}

    - {% if method.description %} -

    - {{ method.description|safe }} -

    - {% endif %} - {% if method.is_discounted %} - - {% shipping_charge_discount method basket as discount %} - {% blocktrans with amount=discount|currency:basket.currency name=method.discount_name %} - This includes a discount of - {{ amount }} - as - your basket qualifies for the - {{ name }} - offer. - {% endblocktrans %} - - {% endif %} -
    -
    - {% shipping_charge method basket as charge %} - {% if charge.is_tax_known %} - {{ charge.incl_tax|currency:basket.currency }} - {% else %} - {{ charge.excl_tax|currency:basket.currency }} - {% endif %} -
    -
    -
    - {% csrf_token %} - - -
    -
    -
    -
    - {% endfor %} -{% endblock shipping_method %} diff --git a/tests/django_oscar/oscar/checkout/thank_you.html b/tests/django_oscar/oscar/checkout/thank_you.html deleted file mode 100644 index 14f3e08..0000000 --- a/tests/django_oscar/oscar/checkout/thank_you.html +++ /dev/null @@ -1,223 +0,0 @@ -{% extends "oscar/checkout/layout.html" %} -{% load currency_filters %} -{% load i18n %} -{% load image_tags %} -{% block title %} - {% blocktrans with number=order.number %} - Order {{ number }}: confirmation - {% endblocktrans %} - | {{ block.super }} -{% endblock title %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=5 %} -{% endblock %} -{% block checkout_title %} - {% blocktrans with number=order.number %} - Order {{ number }}: confirmation - {% endblocktrans %} -{% endblock %} -{% block content %} -

    - {% blocktrans with number=order.number %} - Your order has been placed and a confirmation email has been sent - your order number is - {{ number }} - . - {% endblocktrans %} - {% trans "Please make a note of this reference or print this page and quote it in any communication with us regarding your order." %} -

    -
    -
    - {% block shipping_info %} -
    -

    {% trans "Shipping" %}

    -
    -
    -

    {% trans "Address" %}

    - {% if order.shipping_address %} -
    - {% for field in order.shipping_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    - {% if order.shipping_address.phone_number %} -

    {% trans "Contact" %}

    -

    - {% trans "Phone" %}: {{ order.shipping_address.phone_number }} - {% if order.guest_email %} -
    - {% trans "Email" %}: {{ order.guest_email }} - {% endif %} -

    - {% endif %} - {% if order.shipping_address.notes %} -

    {% trans "Instructions" %}

    -

    - {{ order.shipping_address.notes|linebreaks }} -

    - {% endif %} - {% else %} -

    - {% trans "No shipping address required." %} -

    - {% endif %} -
    -
    -

    {% trans "Shipping method" %}

    -

    - {{ order.shipping_method }} -

    -
    - {% endblock %} -
    -
    - {% block payment_info %} -
    -

    {% trans "Payment" %}

    -
    -
    -

    {% trans "Payment" %}

    - {% for source in order.sources.all %} -

    - {% if source.reference %} - {% blocktrans with amount=source.amount_allocated|currency:source.currency type=source.source_type.name reference=source.reference %} - Allocation of {{ amount }} from type {{ type }} (reference: {{ reference }}) - {% endblocktrans %} - {% else %} - {% blocktrans with amount=source.amount_allocated|currency:source.currency type=source.source_type.name %} - Allocation of {{ amount }} from type {{ type }} - {% endblocktrans %} - {% endif %} -

    - {% empty %} -

    - {% trans "No payment was required for this order." %} -

    - {% endfor %} - {% if order.billing_address %} -

    {% trans "Billing address" %}

    -
    - {% for field in order.billing_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    - {% endif %} -
    - {% endblock %} -
    -
    - {% block order_contents %} -
    -

    {% trans "Order contents" %}

    -
    -
    -
    -

    - {% trans "Items purchased" %} -

    -

    - {% trans "Quantity" %} -

    -

    - {% trans "Total" %} -

    -
    -
    - {% for line in order.lines.all %} -
    -
    -
    -
    - {% with image=line.product.primary_image %} - {% oscar_thumbnail image.original "200x200" upscale=False as thumb %} - - {{ product.get_title }} - - {% endwith %} -
    -
    -
    -

    - - {{ line.description }} - -

    - {% if line.upc %} -

    - {{ line.upc }} -

    - {% endif %} -
    -
    - {{ line.quantity }} -
    -
    -

    - {% if show_tax_separately %} - {{ line.line_price_before_discounts_excl_tax|currency:order.currency }} - {% else %} - {{ line.line_price_before_discounts_incl_tax|currency:order.currency }} - {% endif %} -

    -
    -
    -
    - {% endfor %} - {% block basket_totals %} -
    -
    -   -
    -
    -
    -

    {% trans 'Totals' %}

    -
    - {% include 'oscar/order/partials/basket_totals.html' %} -
    -
    - {% endblock basket_totals %} - {% endblock order_contents %} - {% block order_tracking %} - {% if not order.user %} -
    -

    {% trans "Tracking your order" %}

    -
    -

    - {% trans "You can track the status of your order" %} - - {% trans "View order status" %} - - . -

    - {% endif %} - {% endblock %} - {% block order_actions %} - - {% endblock order_actions %} -{% endblock content %} -{% block tracking %} - {% if send_analytics_event %} - {% include "oscar/partials/google_analytics_transaction.html" %} - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/checkout/user_address_delete.html b/tests/django_oscar/oscar/checkout/user_address_delete.html deleted file mode 100644 index 013212e..0000000 --- a/tests/django_oscar/oscar/checkout/user_address_delete.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load i18n %} -{% block title %} - {% trans "Delete address?" %} | {{ block.super }} -{% endblock title %} -{% block order_contents %}{% endblock %} -{% block shipping_method %}{% endblock %} -{% block payment_method %}{% endblock %} -{% block payment_details %}{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=1 %} -{% endblock %} -{% block checkout_title %} - {% trans "Delete address?" %} -{% endblock %} -{% block shipping_address %} -
    - {% csrf_token %} -
    -
    - {% for field in object.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    -
    -

    - {% trans "Are you sure you want to delete this address?" %} - - {% trans "or" %} - - {% trans "cancel" %} - - . -

    -
    -{% endblock shipping_address %} diff --git a/tests/django_oscar/oscar/checkout/user_address_form.html b/tests/django_oscar/oscar/checkout/user_address_form.html deleted file mode 100644 index 18ec4b2..0000000 --- a/tests/django_oscar/oscar/checkout/user_address_form.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "oscar/checkout/checkout.html" %} -{% load i18n %} -{% block title %} - {% trans "Edit address" %} | {{ block.super }} -{% endblock title %} -{% block order_contents %}{% endblock %} -{% block shipping_method %}{% endblock %} -{% block payment_method %}{% endblock %} -{% block payment_details %}{% endblock %} -{% block checkout_nav %} - {% include 'oscar/checkout/nav.html' with step=1 %} -{% endblock %} -{% block checkout_title %} - {% trans "Edit address" %} -{% endblock %} -{% block shipping_address %} -
    -
    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" with form=form style='horizontal' %} -
    -
    - - {% trans "or" %} - - {% trans "cancel" %} - - . -
    -
    -
    -
    -{% endblock shipping_address %} diff --git a/tests/django_oscar/oscar/communication/email/email_detail.html b/tests/django_oscar/oscar/communication/email/email_detail.html deleted file mode 100644 index 2c1761a..0000000 --- a/tests/django_oscar/oscar/communication/email/email_detail.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block extra_breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - - - - - - - - - - - - - -
    {% trans 'Date sent' %}{{ email.date_sent }}
    {% trans 'Subject' %}{{ email.subject }}
    {% trans 'Body' %} - -
    -{% endblock tabcontent %} -{% block onbodyload %} - {{ block.super }} - $(function() { - // Sets the HTML email preview so it's css doesn't touch the page. - var el_preview_html = document.getElementById('preview_box'); - var html = $(el_preview_html).text(); - var doc = el_preview_html.contentWindow.document; - doc.open(); - doc.write(html); - doc.close(); - }); -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/email/email_list.html b/tests/django_oscar/oscar/communication/email/email_list.html deleted file mode 100644 index ac79b9b..0000000 --- a/tests/django_oscar/oscar/communication/email/email_list.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% if emails %} - - - - - - - - - {% for email in emails %} - - - - - {% endfor %} - -
    {% trans 'Subject' %}{% trans 'Date sent' %}
    - - {{ email.subject }} - - {{ email.date_sent }}
    - {% include "oscar/partials/pagination.html" %} - {% else %} -

    - {% trans 'No emails found' %} -

    - {% endif %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/communication/emails/base.html b/tests/django_oscar/oscar/communication/emails/base.html deleted file mode 100644 index 921599b..0000000 --- a/tests/django_oscar/oscar/communication/emails/base.html +++ /dev/null @@ -1,302 +0,0 @@ -{% load i18n %} - - - - - - - - - - - - - - -
    -
    - - - - -
    - - {% block header %}{% endblock %} - {% block tbody %} - - - - {% endblock %} - {% block footer %} - - - - {% endblock %} -
    {% block body %}{% endblock %}
    -

    - {% trans "Thanks for using our site!" %} -

    -

    - {% blocktrans with name=site.name %} - The {{ name }} team - {% endblocktrans %} -

    -
    -
    -
    -
    - - diff --git a/tests/django_oscar/oscar/communication/emails/base.txt b/tests/django_oscar/oscar/communication/emails/base.txt deleted file mode 100644 index 95f76a2..0000000 --- a/tests/django_oscar/oscar/communication/emails/base.txt +++ /dev/null @@ -1,4 +0,0 @@ -{% load i18n %}{% block header %}{% endblock %}{% block body %}{% endblock %}{% block footer %} - -{% trans "Thanks for using our site!" %} -{% blocktrans with name=site.name %}The {{ name }} team{% endblocktrans %}{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.html b/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.html deleted file mode 100644 index 127caa3..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load i18n %} -{% load url_tags %} -{% block tbody %} - - - {% blocktrans with email=new_email %} - You're receiving this email because your email address has been changed to - {{ email }} - . - {% endblocktrans %} - - - - - {% trans "If it wasn't you who changed it, please reset your password immediately and correct your email address:" %} - - - - - - Reset password - - - - - - {% trans "If it was you who changed the email address, you can ignore this email." %} - - -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.txt deleted file mode 100644 index ab3f91c..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_body.txt +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "oscar/communication/emails/base.txt" %} -{% load i18n %} -{% load url_tags %} - -{% block body %}{% autoescape off %}{% blocktrans with email=new_email %}You're receiving this email because your email address has been changed to {{ email }}.{% endblocktrans %} - -{% trans "If it wasn't you who changed it, please reset your password immediately and correct your email address:" %} -{% absolute_url site.domain reset_url %} - -{% trans "If it was you who changed the email address, you can ignore this email." %} -{% endautoescape %}{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_email_changed_subject.txt deleted file mode 100644 index e52dfed..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_email_changed_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans with site_name=site.name %}Your email address has changed at {{ site_name }}.{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.html b/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.html deleted file mode 100644 index 7f969cc..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load currency_filters i18n %} -{% block tbody %} - - -

    - {% trans 'Hello,' %} -

    -

    - {% blocktrans with order_number=order.number %} - We are pleased to confirm your order {{ order_number }} has been received and - will be processed shortly. - {% endblocktrans %} -

    - - - - - - - - - - - - - -
    {% trans 'Your order contains:' %}
    - - - {% for line in order.lines.all %} - - - - - {% endfor %} - - - - - - - - - - - - - -
    {{ line.title }} × {{ line.quantity }} - {{ line.line_price_incl_tax|currency:order.currency }} -
    {% trans 'Basket total:' %} - {{ order.basket_total_incl_tax|currency:order.currency }} -
    {% trans 'Shipping:' %} - {{ order.shipping_incl_tax|currency:order.currency }} -
    {% trans 'Order Total:' %}{{ order.total_incl_tax|currency:order.currency }}
    -
    - - - - -

    - {% trans 'Shipping address:' %} -

    -

    - {% for field in order.shipping_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -

    - - - {% if status_url %} - - - {% blocktrans %} - You can view the status of this order by clicking - - here - - {% endblocktrans %} - - - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.txt deleted file mode 100644 index 2dd27ef..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_body.txt +++ /dev/null @@ -1,24 +0,0 @@ -{% load currency_filters i18n %}{% blocktrans with order_number=order.number %}Hello, - -We are pleased to confirm your order {{ order_number }} has been received and -will be processed shortly.{% endblocktrans %} - -{% trans 'Your order contains:' %} - -{% for line in order.lines.all %} * {{ line.title }} - {% trans 'quantity:' %} {{ line.quantity }} - {% trans 'price:' %} {{ line.line_price_incl_tax|currency:order.currency }} -{% endfor %} -{% trans 'Basket total:' %} {{ order.basket_total_incl_tax|currency:order.currency }} -{% trans 'Shipping:' %} {{ order.shipping_incl_tax|currency:order.currency }} -{% trans 'Order Total:' %} {{ order.total_incl_tax|currency:order.currency }} - -{% trans 'Shipping address:' %} - -{% for field in order.shipping_address.active_address_fields %} {{ field }} -{% endfor %} - -{% if status_url %} -{% blocktrans %}You can view the status of this order at the below URL: -{{ status_url }}{% endblocktrans %} -{% endif %} - -{% blocktrans %}The team{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_order_placed_subject.txt deleted file mode 100644 index de79025..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_order_placed_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans with number=order.number %}Confirmation of order {{ number }}{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.html b/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.html deleted file mode 100644 index 1dc6a09..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load i18n %} -{% load url_tags %} -{% block tbody %} - - - {% blocktrans with name=site.name %} - You're receiving this e-mail because your password has been changed at {{ name }}. - {% endblocktrans %} - - - - - {% trans "If it wasn't you who changed it, please reset your password immediately:" %} - - - - - - {% trans "Reset password" %} - - - - - - {% trans "Otherwise, you can ignore this email." %} - - -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.txt deleted file mode 100644 index 732292b..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_body.txt +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "oscar/communication/emails/base.txt" %} -{% load i18n %} -{% load url_tags %} - -{% block body %}{% autoescape off %}{% blocktrans with name=site.name %} -You're receiving this email because your password has been changed at {{ name }}. -{% endblocktrans %} - -{% trans "If it wasn't you who changed it, please reset your password immediately:" %} -{% absolute_url site.domain reset_url %} - -{% trans "Otherwise, you can ignore this email." %} - -{% endautoescape %}{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_password_changed_subject.txt deleted file mode 100644 index 429a9bd..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_changed_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans with site_name=site.name %}Your password changed at {{ site_name }}.{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.html b/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.html deleted file mode 100644 index cb95b85..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load i18n %} -{% load url_tags %} -{% block tbody %} - - - {% blocktrans with name=site.name %} - You're receiving this e-mail because you requested a password reset for your user account at {{ name }}. - {% endblocktrans %} - - - - - {% trans "Please go to the following page and choose a new password:" %} - - - - - - {% trans "Reset password" %} - - - -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.txt deleted file mode 100644 index aa2e8b6..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_body.txt +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "oscar/communication/emails/base.txt" %} -{% load i18n %} -{% load url_tags %} - -{% block body %}{% autoescape off %} -{% blocktrans with name=site.name %}You're receiving this e-mail because you requested a password reset for your user account at {{ name }}.{% endblocktrans %} - -{% trans "Please go to the following page and choose a new password:" %} -{% absolute_url site.domain reset_url %}{% endautoescape %}{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_password_reset_subject.txt deleted file mode 100644 index 335dff0..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_password_reset_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans with site_name=site.name %}Resetting your password at {{ site_name }}.{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.html b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.html deleted file mode 100644 index e5a0142..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load i18n %} -{% load url_tags %} -{% block body %} -

    - {% if alert.user and alert.user.get_short_name %} - {% blocktrans with name=alert.user.get_short_name %} - Dear {{ name }}, - {% endblocktrans %} - {% else %} - {% trans "Hello," %} - {% endif %} -

    -

    - {% absolute_url site.domain alert.product.get_absolute_url as url %} - {% blocktrans with title=alert.product.get_title|safe url=url %} - We are happy to inform you that our product '{{ title }}' is back in stock: - {{ url }} - {% endblocktrans %} -

    - {% if hurry %} -

    - {% blocktrans %} - Beware that the amount of items in stock is limited. Be quick or someone might get there first. - {% endblocktrans %} -

    - {% endif %} -

    - {% blocktrans %} - With this email we have disabled your alert automatically and you will not - receive any further email regarding this product. - {% endblocktrans %} -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.txt deleted file mode 100644 index fab5a60..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_body.txt +++ /dev/null @@ -1,14 +0,0 @@ -{% load i18n %}{% load url_tags %}{% if alert.user and alert.user.get_short_name %}{% blocktrans with name=alert.user.get_short_name %}Dear {{ name }},{% endblocktrans %}{% else %}{% trans "Hello," %}{% endif %} -{% absolute_url site.domain alert.product.get_absolute_url as url %} -{% blocktrans with title=alert.product.get_title|safe url=url %} -We are happy to inform you that our product '{{ title }}' is back in stock: -{{ url }} -{% endblocktrans %}{% if hurry %}{% blocktrans %} -Beware that the amount of items in stock is limited. Be quick or someone might get there first. -{% endblocktrans %}{% endif %}{% blocktrans with site_name=site.name %} -With this email we have disabled your alert automatically and you will not -receive any further email regarding this product. - -Thanks for your interest, -The {{ site_name }} Team -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.html b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.html deleted file mode 100644 index 099f8d4..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "oscar/communication/emails/base.html" %} -{% load i18n %} -{% load url_tags %} -{% block body %} - {% absolute_url site.domain alert.get_confirm_url as confirm_url %} - {% absolute_url site.domain alert.get_cancel_url as cancel_url %} - {% blocktrans with title=alert.product.get_title|safe confirm_url=confirm_url cancel_url=cancel_url %} - Hello, -

    - Somebody (hopefully you) has requested an email alert when '{{ title }}' is back in stock. - Please click the following link to confirm: {{ confirm_url }} -

    -

    - You can cancel this alert at any time by clicking the following link: {{ cancel_url }} -

    -

    - Thanks for your interest, - The {{ site }} Team -

    - {% endblocktrans %} -{% endblock %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.txt deleted file mode 100644 index dba6e27..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_body.txt +++ /dev/null @@ -1,17 +0,0 @@ -{% load i18n %} -{% load url_tags %} -{% absolute_url site.domain alert.get_confirm_url as confirm_url %} -{% absolute_url site.domain alert.get_cancel_url as cancel_url %} -{% blocktrans with title=alert.product.get_title|safe confirm_url=confirm_url cancel_url=cancel_url %} -Hello, - -Somebody (hopefully you) has requested an email alert when -'{{ title }}' is back in stock. Please click the following link -to confirm: {{ confirm_url }} - -You can cancel this alert at any time by clicking the following link: -{{ cancel_url }} - -Thanks for your interest, -The {{ site }} Team -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_subject.txt deleted file mode 100644 index f9b4b4e..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_confirmation_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans %}Confirmation required for stock alert{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_product_alert_subject.txt deleted file mode 100644 index c427d7d..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_product_alert_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% blocktrans with title=alert.product.get_title|safe %}{{ title }} is back in stock{% endblocktrans %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_registration_body.html b/tests/django_oscar/oscar/communication/emails/commtype_registration_body.html deleted file mode 100644 index e50ba06..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_registration_body.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load i18n %} -

    - {% trans 'Thank you for registering.' %} -

    diff --git a/tests/django_oscar/oscar/communication/emails/commtype_registration_body.txt b/tests/django_oscar/oscar/communication/emails/commtype_registration_body.txt deleted file mode 100644 index 028d1a0..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_registration_body.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% trans 'Thank you for registering.' %} diff --git a/tests/django_oscar/oscar/communication/emails/commtype_registration_sms.txt b/tests/django_oscar/oscar/communication/emails/commtype_registration_sms.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/django_oscar/oscar/communication/emails/commtype_registration_subject.txt b/tests/django_oscar/oscar/communication/emails/commtype_registration_subject.txt deleted file mode 100644 index 028d1a0..0000000 --- a/tests/django_oscar/oscar/communication/emails/commtype_registration_subject.txt +++ /dev/null @@ -1 +0,0 @@ -{% load i18n %}{% trans 'Thank you for registering.' %} diff --git a/tests/django_oscar/oscar/communication/notifications/detail.html b/tests/django_oscar/oscar/communication/notifications/detail.html deleted file mode 100644 index 85e85e6..0000000 --- a/tests/django_oscar/oscar/communication/notifications/detail.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block extra_breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - - {% if notification.sender %} - - - - - {% endif %} - - - - - {% if notification.body %} - - - - - - - - - {% else %} - - - - - {% endif %} -
    {% trans 'Sender' %}{{ notification.sender }}
    {% trans 'Date sent' %}{{ notification.date_sent }}
    {% trans 'Subject' %}{{ notification.subject|safe }}
    {% trans 'Body' %}{{ notification.body }}
    {% trans 'Message' %}{{ notification.subject|safe }}
    - -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/communication/notifications/list.html b/tests/django_oscar/oscar/communication/notifications/list.html deleted file mode 100644 index 3bc2fc2..0000000 --- a/tests/django_oscar/oscar/communication/notifications/list.html +++ /dev/null @@ -1,91 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - - {% if notifications %} - {% include "oscar/partials/pagination.html" %} -
    - {% csrf_token %} - - - {% for notification in notifications %} - - - - - - - {% endfor %} - -
    - - - {% if notification.is_read %} - - {% else %} - - {% endif %} - - {% if notification.is_read %} - {{ notification.subject|safe }} - {% else %} - {{ notification.subject|safe }} - {% endif %} -
    - {{ notification.date_sent }} -
    - - {% trans 'View' %} - - {% if list_type == 'inbox' %} - - {% trans 'Archive' context 'verb' %} - - {% endif %} - - {% trans 'Delete' %} - -
    - {% trans "With selected items:" %} - {% if list_type == 'inbox' %} - - {% endif %} - -
    - {% include "oscar/partials/pagination.html" %} - {% else %} -

    - {% trans "There are no notifications to display." %} -

    - {% endif %} -{% endblock tabcontent %} -{% block onbodyload %} - {{ block.super }} - oscar.notifications.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/customer/address/address_delete.html b/tests/django_oscar/oscar/customer/address/address_delete.html deleted file mode 100644 index b95860b..0000000 --- a/tests/django_oscar/oscar/customer/address/address_delete.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block extra_breadcrumbs %} - -{% endblock %} -{% block tabcontent %} -
    - {% csrf_token %} -

    - {% trans 'Are you sure you want to delete this address?' %} -

    -

    - {{ object.summary }} -

    -
    - - {% trans 'or' %} - {% trans 'cancel' %} -
    -
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/address/address_form.html b/tests/django_oscar/oscar/customer/address/address_form.html deleted file mode 100644 index cf73ee6..0000000 --- a/tests/django_oscar/oscar/customer/address/address_form.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block extra_breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - {% with style='horizontal' %} - {% include "oscar/partials/form.html" %} - {% endwith %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/address/address_list.html b/tests/django_oscar/oscar/customer/address/address_list.html deleted file mode 100644 index 4a1ea5e..0000000 --- a/tests/django_oscar/oscar/customer/address/address_list.html +++ /dev/null @@ -1,67 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% if addresses %} - - - - - - - {% for address in addresses %} - - - - - {% endfor %} - -
    {% trans 'Address' %}
    - {% if address.is_default_for_shipping %} - {% trans 'Default shipping address' %} - {% endif %} - {% if address.is_default_for_billing %} - {% trans 'Default billing address' %} - {% endif %} -
    - {% for field in address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    -
    -
    - - {% trans 'Edit' %} - - - -
    -
    - {% include "oscar/partials/pagination.html" %} - {% else %} -

    - {% trans 'There are no addresses in your address book.' %} -

    - {% endif %} -

    - - {% trans 'Add a new address' %} - -

    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/alerts/alert_list.html b/tests/django_oscar/oscar/customer/alerts/alert_list.html deleted file mode 100644 index 8c44791..0000000 --- a/tests/django_oscar/oscar/customer/alerts/alert_list.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% if not alerts %} -

    - {% trans "You do not have any active alerts for out-of-stock products." %} -

    - {% else %} -
    - {% csrf_token %} - - - - - - - - {% for alert in alerts %} - - - - - - - {% endfor %} -
    {% trans "Product" %}{% trans "Status" %}{% trans "Date created" %}
    - {% with product=alert.product %} - {% if product.is_public %} - {{ product.get_title }} - {% else %} - {{ product.get_title }} - {% endif %} - {% endwith %} - {{ alert.status }}{{ alert.date_created }} - {% if alert.can_be_cancelled %} - - {% trans "Cancel" %} - - {% endif %} -
    - {% include "oscar/partials/pagination.html" %} -
    - {% endif %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/alerts/form.html b/tests/django_oscar/oscar/customer/alerts/form.html deleted file mode 100644 index dc2abbe..0000000 --- a/tests/django_oscar/oscar/customer/alerts/form.html +++ /dev/null @@ -1 +0,0 @@ -{% extends 'oscar/catalogue/detail.html' %} diff --git a/tests/django_oscar/oscar/customer/alerts/message.html b/tests/django_oscar/oscar/customer/alerts/message.html deleted file mode 100644 index 8f58dbe..0000000 --- a/tests/django_oscar/oscar/customer/alerts/message.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load i18n %} -{% blocktrans with url=alert.product.get_absolute_url title=alert.product.get_title %} - {{ title }} - is back in stock -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/customer/alerts/message_subject.html b/tests/django_oscar/oscar/customer/alerts/message_subject.html deleted file mode 100644 index 0fa7401..0000000 --- a/tests/django_oscar/oscar/customer/alerts/message_subject.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load i18n %} -{% blocktrans with title=alert.product.get_title|truncatechars:200 %} - {{ title }} is back in stock -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/customer/anon_order.html b/tests/django_oscar/oscar/customer/anon_order.html deleted file mode 100644 index 9d9b6a2..0000000 --- a/tests/django_oscar/oscar/customer/anon_order.html +++ /dev/null @@ -1,121 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load currency_filters %} -{% load i18n %} -{% load reviews_tags %} -{% load display_tags %} -{% block headertext %} - {% blocktrans with number=order.number %} - Order #{{ number }} - {% endblocktrans %} -{% endblock %} -{% block content %} - {% if order.status %} -
    -

    {% trans 'Status' %}

    -
    -

    - {{ order.status }} -

    - {% endif %} - {% with address=order.shipping_address %} -
    -

    {% trans 'Shipping address' %}

    -
    - - - - - - {% if address.phone_number %} - - - - - {% endif %} - {% if address.notes %} - - - - - {% endif %} -
    {% trans 'Address' %} - {% for field in address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    {% trans 'Contact number' %}{{ address.phone_number }}
    {% trans 'Notes' %}{{ address.notes|linebreaks }}
    - {% endwith %} -
    -

    {% trans 'Shipping method' %}

    -
    -

    - {{ order.shipping_method }} -

    -
    -

    {% trans 'Order contents' %}

    -
    - {% csrf_token %} - - - - - - - - {% iffeature "reviews" %} - - {% endiffeature %} - - {% for line in order.lines.all %} - - - - - - - {% iffeature "reviews" %} - - {% endiffeature %} - - {% endfor %} - {% for discount in order.discounts.all %} - - - - - - {% endfor %} -
    {% trans 'Product' %}{% trans 'Status' %}{% trans 'Quantity' %}{% trans 'Line price excl. tax' %}{% trans 'Line price incl. tax' %}
    - {% if product.is_public %} - - {{ line.description }} - - {% else %} - {{ line.description }} - {% endif %} - {{ line.shipping_status|default:"-" }}{{ line.quantity }}{{ line.line_price_before_discounts_excl_tax|currency:order.currency }}{{ line.line_price_before_discounts_incl_tax|currency:order.currency }} - {% if line.product|is_review_permitted:user %} - - {% trans 'Write a review' %} - - {% endif %} -
    {{ discount.description }}-{{ discount.amount|currency:order.currency }}
    - - - - - - - - - - - - - - -
    - {% trans 'Totals' %} -
    {% trans 'Basket total (inc. tax)' %}{{ order.basket_total_incl_tax|currency:order.currency }}
    {% trans 'Shipping charge (inc. tax)' %}{{ order.shipping_incl_tax|currency:order.currency }}
    {% trans 'Order total' %}{{ order.total_incl_tax|currency:order.currency }}
    -{% endblock content %} diff --git a/tests/django_oscar/oscar/customer/baseaccountpage.html b/tests/django_oscar/oscar/customer/baseaccountpage.html deleted file mode 100644 index 69f2fd9..0000000 --- a/tests/django_oscar/oscar/customer/baseaccountpage.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "oscar/layout_2_col.html" %} -{% load i18n %} -{% block title %} - {{ page_title }} | {% trans 'Account' %} | {{ block.super }} -{% endblock %} -{% block body_class %}account-profile{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ page_title }}{% endblock %} -{% block column_left %} - -{% endblock %} -{% block content %} - {% block tabcontent %}{% endblock tabcontent %} -{% endblock content %} diff --git a/tests/django_oscar/oscar/customer/history/recently_viewed_products.html b/tests/django_oscar/oscar/customer/history/recently_viewed_products.html deleted file mode 100644 index 20eb28e..0000000 --- a/tests/django_oscar/oscar/customer/history/recently_viewed_products.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -{% load product_tags %} -{% with products_sliced=products|slice:":6" %} - {% if products_sliced %} -
    -

    {% trans 'Products you recently viewed' %}

    -
    -
      - {% for product in products_sliced %} -
    • - {% render_product product %} -
    • - {% endfor %} -
    - {% endif %} -{% endwith %} diff --git a/tests/django_oscar/oscar/customer/login_registration.html b/tests/django_oscar/oscar/customer/login_registration.html deleted file mode 100644 index 8ef4270..0000000 --- a/tests/django_oscar/oscar/customer/login_registration.html +++ /dev/null @@ -1,56 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block title %} - {% trans 'Login or register' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %}{% endblock %} -{% block content %} -
    - -
    -
    -

    {% trans 'Register' %}

    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" with form=registration_form %} - -
    -
    -
    -{% endblock content %} diff --git a/tests/django_oscar/oscar/customer/order/order_detail.html b/tests/django_oscar/oscar/customer/order/order_detail.html deleted file mode 100644 index 5882b61..0000000 --- a/tests/django_oscar/oscar/customer/order/order_detail.html +++ /dev/null @@ -1,198 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load currency_filters %} -{% load display_tags %} -{% load i18n %} -{% load reviews_tags %} -{% block extra_breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - {% if order.status %} -

    {% trans 'Status' %}

    -

    - {{ order.status }} -

    -
    - {% endif %} - - - - - - - - - - - - {% for line in order.lines.all %} - {% with product=line.product %} - - - - - - - - {% endwith %} - {% endfor %} - {% with discounts=order.basket_discounts %} - {% block discount_totals %} - {% if discounts %} - - - - - {% for discount in discounts %} - - - - - {% endfor %} - {% endif %} - {% endblock discount_totals %} - {% block basket_total %} - {% if discounts %} - - - - - {% else %} - - - - - {% endif %} - {% endblock basket_total %} - {% endwith %} - {% block shipping_totals %} - {% if order.has_shipping_discounts %} - - - - - {% for discount in order.shipping_discounts %} - - - - - {% endfor %} - - - - - {% else %} - - - - - {% endif %} - {% endblock %} - {% block order_total %} - - - - - {% endblock order_total %} - -
    {% trans 'Product' %}{% trans 'Qty' %}{% trans 'Line price excl. tax' %}{% trans 'Line price incl. tax' %}
    - {% if product %} - {% if product.is_public %} -

    - {{ line.description }} -

    - {% else %} -

    - {{ line.description }} -

    - {% endif %} - {% iffeature "reviews" %} - {% if product|is_review_permitted:user %} - - {% trans 'Write a review' %} - - {% endif %} - {% endiffeature %} - {% else %} -

    - {{ line.description }} -

    - {% endif %} -
    {{ line.quantity }}{{ line.line_price_before_discounts_excl_tax|currency:order.currency }}{{ line.line_price_before_discounts_incl_tax|currency:order.currency }} - {% if product and product.is_public %} -
    - {% csrf_token %} - - -
    - {% else %} - {% trans 'Not available anymore' %} - {% endif %} -
    {% trans "Basket total (excl. discounts)" %} - {{ order.basket_total_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer_name }} - - {{ discount.amount|currency:order.currency }}
    {% trans "Basket total (inc. discounts)" %} - {{ order.basket_total_incl_tax|currency:order.currency }} -
    {% trans "Basket total" %} - {{ order.basket_total_incl_tax|currency:order.currency }} -
    {% trans "Shipping total (excl. discounts)" %} - {{ order.shipping_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer_name }} - - {{ discount.amount|currency:order.currency }}
    {% trans "Shipping total (inc. discounts)" %} - {{ order.shipping_incl_tax|currency:order.currency }} -
    {% trans "Shipping total" %} - {{ order.shipping_incl_tax|currency:order.currency }} -
    {% trans 'Order total' %}{{ order.total_incl_tax|currency:order.currency }}
    - {% block order_actions %} -
    - {% csrf_token %} - - - -
    - {% endblock order_actions %} -
    -

    {% trans 'Shipping Method' %}

    -

    - {{ order.shipping_method }} -

    -
    -

    {% trans 'Shipping Address' %}

    - - - - - - - - - - - -
    {% trans 'Address' %}{% trans 'Contact Number' %}{% trans 'Shipping Notes' %}
    - {% for field in order.shipping_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    {{ order.shipping_address.phone_number|default:"-" }}{{ order.shipping_address.notes|linebreaks }}
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/order/order_list.html b/tests/django_oscar/oscar/customer/order/order_list.html deleted file mode 100644 index 31bf213..0000000 --- a/tests/django_oscar/oscar/customer/order/order_list.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load currency_filters %} -{% load i18n %} -{% load static %} -{% block styles %} - {{ block.super }} - -{% endblock %} -{% block scripts %} - {{ block.super }} - - -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - {% if orders or form.is_bound %} -
    -

    {% trans "Filter" %}

    -
    - {% include "oscar/partials/form_fields.html" with form=form style='horizontal' %} -
    -
    - - - {% trans 'Reset' %} - -
    -
    -
    -
    - {% endif %} - {% if orders %} -

    {{ form.description }}

    - - - - - - - - {% for order in orders %} - - - - - - - {% endfor %} -
    {% trans "Order number" %}{% trans "Num items" %}{% trans "Total inc tax" %}{% trans "Date submitted" %}
    - - {{ order.number }} - - {{ order.num_items }}{{ order.total_incl_tax|currency:order.currency }}{{ order.date_placed }}
    - {% include "oscar/partials/pagination.html" %} - {% else %} - {% if form.is_bound %} -

    - {% trans "No orders match your search." %} -

    - {% else %} -

    - {% trans "You haven't placed any orders." %} -

    - {% endif %} - {% endif %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/partials/standard_tabs.html b/tests/django_oscar/oscar/customer/partials/standard_tabs.html deleted file mode 100644 index 20ef1f3..0000000 --- a/tests/django_oscar/oscar/customer/partials/standard_tabs.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load i18n %} -{% load display_tags %} - - - - - - -{% iffeature 'wishlists' %} - -{% endiffeature %} diff --git a/tests/django_oscar/oscar/customer/profile/change_password_form.html b/tests/django_oscar/oscar/customer/profile/change_password_form.html deleted file mode 100644 index c409b48..0000000 --- a/tests/django_oscar/oscar/customer/profile/change_password_form.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% include 'oscar/partials/form.html' with form_id="change_password_form" %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/profile/profile.html b/tests/django_oscar/oscar/customer/profile/profile.html deleted file mode 100644 index 764c566..0000000 --- a/tests/django_oscar/oscar/customer/profile/profile.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - - - - - - - - - - - {% block profile_fields %} - {% for field in profile_fields %} - - - - - {% endfor %} - {% endblock %} - - - - - -
    {% trans 'Name' %}{{ user.get_full_name|default:'-' }}
    {% trans 'Email address' %}{{ user.email }}
    {{ field.name }}{{ field.value|default:"-" }}
    {% trans 'Date registered' %}{{ user.date_joined }}
    - - {% trans 'Change password' %} - - - {% trans 'Edit profile' %} - - - {% trans 'Delete profile' %} - -{% endblock %} diff --git a/tests/django_oscar/oscar/customer/profile/profile_delete.html b/tests/django_oscar/oscar/customer/profile/profile_delete.html deleted file mode 100644 index 61a1787..0000000 --- a/tests/django_oscar/oscar/customer/profile/profile_delete.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} -

    - {% trans "Please confirm your password to delete your profile." %} -

    -
    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" with style='horizontal' %} -
    -

    {% trans "Warning" %}

    - {% blocktrans %} - This will delete all information about you from the site. Deleting your profile cannot be - undone. - {% endblocktrans %} -
    -
    - - {% trans "or" %} - {% trans "cancel" %} - . -
    -
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/profile/profile_form.html b/tests/django_oscar/oscar/customer/profile/profile_form.html deleted file mode 100644 index 62904bf..0000000 --- a/tests/django_oscar/oscar/customer/profile/profile_form.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% include 'oscar/partials/form.html' with form_id="profile_form" %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/registration.html b/tests/django_oscar/oscar/customer/registration.html deleted file mode 100644 index 7e306aa..0000000 --- a/tests/django_oscar/oscar/customer/registration.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block title %} - {% trans 'Register' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Register" %} -{% endblock %} -{% block content %} -
    -
    -
    - {% csrf_token %} - {% include "oscar/partials/form_fields.html" %} - - {% if cancel_url %} - {% trans "or" %} - {% trans "cancel" %} - . - {% endif %} -
    -
    -
    -{% endblock content %} diff --git a/tests/django_oscar/oscar/customer/wishlists/wishlists_delete.html b/tests/django_oscar/oscar/customer/wishlists/wishlists_delete.html deleted file mode 100644 index f73a434..0000000 --- a/tests/django_oscar/oscar/customer/wishlists/wishlists_delete.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block tabcontent %} -
    - {% csrf_token %} -

    - {% blocktrans with name=wishlist.name %} - Are you sure you want to delete {{ name }}? - {% endblocktrans %} -

    -
    - - {% trans 'or' %} - - {% trans 'cancel' %} - -
    -
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/wishlists/wishlists_delete_product.html b/tests/django_oscar/oscar/customer/wishlists/wishlists_delete_product.html deleted file mode 100644 index c9552f0..0000000 --- a/tests/django_oscar/oscar/customer/wishlists/wishlists_delete_product.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block tabcontent %} -
    - {% csrf_token %} -

    - {% blocktrans with product_name=object.get_title wishlist_name=wishlist.name %} - Are you sure you want to delete {{ product_name }} from wish list {{ wishlist_name }}? - {% endblocktrans %} -

    -
    - - {% trans 'or' %} - {% trans 'cancel' %} -
    -
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/wishlists/wishlists_detail.html b/tests/django_oscar/oscar/customer/wishlists/wishlists_detail.html deleted file mode 100644 index 16af629..0000000 --- a/tests/django_oscar/oscar/customer/wishlists/wishlists_detail.html +++ /dev/null @@ -1,134 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load image_tags %} -{% load i18n %} -{% load widget_tweaks %} -{% block breadcrumbs %} - -{% endblock %} -{% block tabcontent %} - {% if form.total_form_count %} -
    - {{ form.management_form }} - {% csrf_token %} - - - - - - - - {% for subform in form %} - {% with line=subform.instance product=subform.instance.product %} - - - - - - - {% endwith %} - {% endfor %} - - - - - - -
    {% trans 'Product' %}{% trans 'Quantity' %}{% trans 'Action' %}
    - {% if product %} - {% with image=product.primary_image %} - {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} - {% if product.is_public %} - - {{ product.get_title }} - - {% else %} - {{ product.get_title }} - {% endif %} - {% endwith %} - {% endif %} - - {% if product and product.is_public %} - - {{ line.get_title }} - - {% else %} - {{ line.get_title }} ({% trans 'Not available anymore' %}) - {% endif %} - - {% for field in subform %} - {% render_field field class+="form-control" %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {% endfor %} -
    -
    - {% if product %} - - {% trans 'View product' %} - - - {% else %} - - {% trans 'Actions' %} - - {% endif %} - -
    -
    - -
    -
    - {% else %} - {% trans "Your wish list is empty." %} - {% endif %} -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/wishlists/wishlists_form.html b/tests/django_oscar/oscar/customer/wishlists/wishlists_form.html deleted file mode 100644 index 3bdc313..0000000 --- a/tests/django_oscar/oscar/customer/wishlists/wishlists_form.html +++ /dev/null @@ -1,56 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block tabcontent %} -
    - {% csrf_token %} - {% if not wishlist %} -

    - {% trans "What should your new wish list be called?" %} -

    - {% endif %} - {% include "oscar/partials/form_fields.html" %} - {% if product %} -

    - {% blocktrans with title=product.get_title %} - After your wishlist is created, - {{ title }} - will be added. - {% endblocktrans %} -

    - {% endif %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - - . -
    -
    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/customer/wishlists/wishlists_list.html b/tests/django_oscar/oscar/customer/wishlists/wishlists_list.html deleted file mode 100644 index 2268cbd..0000000 --- a/tests/django_oscar/oscar/customer/wishlists/wishlists_list.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "oscar/customer/baseaccountpage.html" %} -{% load i18n %} -{% block tabcontent %} - {% if wishlists %} - - - - - - - - {% for wishlist in wishlists %} - - - - - - {% endfor %} - -
    {% trans 'Name' %}{% trans 'Number of products' %}{% trans 'Action' %}
    - - {{ wishlist.name }} - - {{ wishlist.lines.count }} - -
    - {% include "oscar/partials/pagination.html" %} - {% else %} -

    - {% trans "You don't have any wish lists yet." %} -

    - {% endif %} -

    - - {% trans 'Create a new wish list' %} - -

    -{% endblock tabcontent %} diff --git a/tests/django_oscar/oscar/dashboard/base.html b/tests/django_oscar/oscar/dashboard/base.html deleted file mode 100644 index 2cb1fb5..0000000 --- a/tests/django_oscar/oscar/dashboard/base.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "oscar/base.html" %} -{% block extrahead %} - {{ block.super }} - -{% endblock %} -{% block tracking %} - {# By default there is no analytics tracking in the dashboard #} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_delete.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_delete.html deleted file mode 100644 index 0ead220..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_delete.html +++ /dev/null @@ -1,75 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {{ title }} | {% trans "Create Attribute Option Group" %} | {{ block.super }} -{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block navbar %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block dashboard_nav %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block breadcrumbs %} - {% if not is_popup %} - - {% endif %} -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} - {% if disallow %} -

    - {% trans "Please make sure all Product Attributes are assigned to another Attribute Option Group before deletion." %} -

    - {% else %} -
    -

    {% trans "Delete Attribute Option Group" %}

    -
    -
    - {% csrf_token %} - {% if is_popup %} - - {% endif %} - {% if not is_popup %} - {% for key, value in http_get_params.items %} - - {% endfor %} - {% endif %} -

    - {% blocktrans with name=object.name %} - Delete Attribute Option Group - {{ name }} - - are you sure? - {% endblocktrans %} -

    -
    - - {% trans "Cancel" %} - - -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_form.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_form.html deleted file mode 100644 index d722cb5..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_form.html +++ /dev/null @@ -1,165 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {{ title }} | {% trans "Create Attribute Option Group" %} | {{ block.super }} -{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block navbar %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block dashboard_nav %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block breadcrumbs %} - {% if not is_popup %} - - {% endif %} -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -
    - {% if is_popup %} - - {% endif %} - {% if to_field %} - - {% endif %} - {% block tab_nav %} -
    -
    -
    -

    {% trans "Sections" %}

    -
    - -
    -
    - {% endblock tab_nav %} -
    -
    - {% block tab_content %} - {% block attribute_option_group_details %} -
    -
    -

    {% trans "Attribute Option Group details" %}

    -
    -
    - {% comment %} - If the AttributeOptionGroup form has field_errors, partials/form_fields.html - will render an error message. - This means that there'll be 2 error messages, - one from the partial and one from the view. Perhaps there should be - an option allowing hiding of the error message in the template. - For now we copy paste what we need from the template. - {% endcomment %} - {% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - - - {{ error }} - -
    - {% endfor %} - {% endif %} - {% for field in form %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endfor %} -
    -
    - {% endblock %} - {% block attribute_options %} -
    -
    -

    {% trans "Attribute Options" %}

    -
    -
    - - {{ attribute_option_formset.management_form }} - {{ attribute_option_formset.non_form_errors }} - - - - - - - - - - {% for attribute_option_form in attribute_option_formset %} - - {% for hidden_field in attribute_option_form.hidden_fields %} - {{ hidden_field }} - {% endfor %} - - - - {% endfor %} - -
    {% trans "Option" %}{% trans "Delete?" %}
    - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_option_form.option nolabel=True %} - - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_option_form.DELETE nolabel=True %} -
    -
    -
    - {% endblock %} - {% endblock tab_content %} -
    -
    -
    - {% block fixed_actions_group %} -
    -
    -
    - - {% trans "Cancel" %} - - {% trans "or" %} - -
    -
    -
    - {% endblock fixed_actions_group %} -
    -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.product_attributes.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_list.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_list.html deleted file mode 100644 index 3da58ab..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_list.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load render_table from django_tables2 %} -{% block title %} - {% trans "Attribute Option Groups" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% if attribute_option_groups %} - {% block product_list %} -
    - {% csrf_token %} - {% render_table attribute_option_groups %} -
    - {% endblock product_list %} - {% else %} -

    - {% trans "No Attribute Option Groups found." %} -

    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_actions.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_actions.html deleted file mode 100644 index 055cb21..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_actions.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load django_tables2 %} -{% load i18n %} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_name.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_name.html deleted file mode 100644 index c064bea..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_name.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load django_tables2 %} - - {{ value }} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_option_summary.html b/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_option_summary.html deleted file mode 100644 index c064bea..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/attribute_option_group_row_option_summary.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load django_tables2 %} - - {{ value }} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/category_delete.html b/tests/django_oscar/oscar/dashboard/catalogue/category_delete.html deleted file mode 100644 index 0f92f7e..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/category_delete.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Delete category?" %} -{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Delete category" %}

    -
    -
    - {% csrf_token %} - {{ form }} - {% blocktrans with name=object.name %} -

    - Delete category - {{ name }} - - are you sure? -

    - {% endblocktrans %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/category_form.html b/tests/django_oscar/oscar/dashboard/catalogue/category_form.html deleted file mode 100644 index d37e8b4..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/category_form.html +++ /dev/null @@ -1,131 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load category_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page catalogue{% endblock %} -{% block title %} - {{ title }} | {% trans "Categories" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -
    - {% block tab_nav %} -
    -
    -
    -

    {% trans "Sections" %}

    -
    - -
    -
    - {% endblock tab_nav %} -
    -
    - {% block tab_content %} - {% block category_details %} -
    -
    -

    {% trans "Category details" %}

    -
    -
    - {% block category_details_content %} - {{ form.non_field_errors }} - {% for field in form.hidden_fields %}{{ field }}{% endfor %} - {% for field in form.primary_form_fields %} - {% if 'attr' not in field.id_for_label %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endif %} - {% endfor %} - {% endblock category_details_content %} -
    -
    - {% endblock category_details %} - {% block seo %} -
    -
    -

    {% trans "Search engine optimisation" %}

    -
    -
    - {% block seo_content %} - {% for field in form.seo_form_fields %} - {% if 'attr' not in field.id_for_label %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endif %} - {% endfor %} - {% endblock seo_content %} -
    -
    - {% endblock seo %} - {% endblock tab_content %} -
    -
    -
    - {% block fixed_actions_group %} -
    -
    -
    - - {% trans "Cancel" %} - - {% trans "or" %} - - -
    - {% if category %} - - {% trans "View on site" %} - - {% endif %} -
    -
    - {% endblock fixed_actions_group %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/category_list.html b/tests/django_oscar/oscar/dashboard/catalogue/category_list.html deleted file mode 100644 index 62102f2..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/category_list.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load category_tags %} -{% load i18n %} -{% load render_table from django_tables2 %} -{% block body_class %}{{ block.super }} catalogue{% endblock %} -{% block title %} - {% trans "Categories" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -
    - {% trans "You are editing:" %} - - - {% trans "Home" %} - - - {% if ancestors %} - > - {% for ancestor in ancestors %} - - - {{ ancestor.name }} - - - {% if not forloop.last %}> {% endif %} - {% endfor %} - {% endif %} -
    -
    - {% render_table categories %} - {% if not child_categories %} -

    - {% trans "There are no categories." %} -

    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/category_row_actions.html b/tests/django_oscar/oscar/dashboard/catalogue/category_row_actions.html deleted file mode 100644 index df0a795..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/category_row_actions.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load django_tables2 %} -{% load i18n %} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/messages/product_saved.html b/tests/django_oscar/oscar/dashboard/catalogue/messages/product_saved.html deleted file mode 100644 index 58be09d..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/messages/product_saved.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load i18n %} -{% load django_tables2 %} -

    - {% with name=product.title parent_name=product.parent.title %} - {% if product.is_child %} - {% if creating %} - {% if product.title %} - {% blocktrans %} - Created product variant '{{ name }}'. - {% endblocktrans %} - {% else %} - {% blocktrans %} - Created variant of '{{ parent_name }}'. - {% endblocktrans %} - {% endif %} - {% else %} - {% if product.title %} - {% blocktrans %} - Updated product variant '{{ name }}'. - {% endblocktrans %} - {% else %} - {% blocktrans %} - Updated a variant of '{{ parent_name }}'. - {% endblocktrans %} - {% endif %} - {% endif %} - {% else %} - {% if creating %} - {% blocktrans %} - Created product '{{ name }}'. - {% endblocktrans %} - {% else %} - {% blocktrans %} - Updated product '{{ name }}'. - {% endblocktrans %} - {% endif %} - {% endif %} - {% endwith %} -

    -

    - - {% trans "Edit again" %} - - - {% trans "View it on the site" %} - -

    diff --git a/tests/django_oscar/oscar/dashboard/catalogue/option_delete.html b/tests/django_oscar/oscar/dashboard/catalogue/option_delete.html deleted file mode 100644 index 1da8aba..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/option_delete.html +++ /dev/null @@ -1,69 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {{ title }} | {% trans "Create Option" %} | {{ block.super }} -{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block navbar %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block dashboard_nav %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block breadcrumbs %} - {% if not is_popup %} - - {% endif %} -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} - {% if disallow %} -

    - {% trans "Please make sure option is not assigned to Products or Product Classes before deletion." %} -

    - {% else %} -
    -

    {% trans "Delete Option" %}

    -
    -
    - {% csrf_token %} - {% if is_popup %} - - {% endif %} - {% if not is_popup %} - {% for key, value in http_get_params.items %} - - {% endfor %} - {% endif %} -

    - {% blocktrans with name=object.name %} - Delete Option - {{ name }} - - are you sure? - {% endblocktrans %} -

    -
    - - {% trans "Cancel" %} - - -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/option_form.html b/tests/django_oscar/oscar/dashboard/catalogue/option_form.html deleted file mode 100644 index 691a7e8..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/option_form.html +++ /dev/null @@ -1,96 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %}{{ title }} | {{ block.super }}{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block navbar %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block dashboard_nav %} - {% if not is_popup %}{{ block.super }}{% endif %} -{% endblock %} -{% block breadcrumbs %} - {% if not is_popup %} - - {% endif %} -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -
    - {% if is_popup %} - - {% endif %} - {% if to_field %} - - {% endif %} -
    -
    - {% block option_details %} -
    -
    -

    {% trans "Option details" %}

    -
    -
    - {% comment %} - If the Option form has field_errors, partials/form_fields.html - will render an error message. - This means that there'll be 2 error messages, - one from the partial and one from the view. Perhaps there should be - an option allowing hiding of the error message in the template. - For now we copy paste what we need from the template. - {% endcomment %} - {% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - - - {{ error }} - -
    - {% endfor %} - {% endif %} - {% for field in form %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endfor %} -
    -
    - {% endblock %} -
    -
    -
    - {% block fixed_actions_group %} -
    -
    -
    - - {% trans "Cancel" %} - - {% trans "or" %} - -
    -
    -
    - {% endblock fixed_actions_group %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/option_list.html b/tests/django_oscar/oscar/dashboard/catalogue/option_list.html deleted file mode 100644 index cb22589..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/option_list.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load render_table from django_tables2 %} -{% block title %} - {% trans "Options" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% if options %} - {% block product_list %} -
    - {% csrf_token %} - {% render_table options %} -
    - {% endblock product_list %} - {% else %} -

    - {% trans "No Option found." %} -

    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/option_row_actions.html b/tests/django_oscar/oscar/dashboard/catalogue/option_row_actions.html deleted file mode 100644 index c0962c1..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/option_row_actions.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load django_tables2 %} -{% load i18n %} -
    - -
    diff --git a/tests/django_oscar/oscar/dashboard/catalogue/option_row_name.html b/tests/django_oscar/oscar/dashboard/catalogue/option_row_name.html deleted file mode 100644 index 0d40336..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/option_row_name.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load django_tables2 %} - - {{ value }} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_class_delete.html b/tests/django_oscar/oscar/dashboard/catalogue/product_class_delete.html deleted file mode 100644 index 97e67e9..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_class_delete.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} - {% if disallow %} -

    - {% trans "Please make sure all products are assigned to another type before deletion." %} -

    - {% else %} -
    -

    {% trans "Delete product type" %}

    -
    -
    - {% csrf_token %} - {{ form }} -

    - {% blocktrans with name=object.name %} - Delete product type - {{ name }} - - are you sure? - {% endblocktrans %} -

    -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_class_form.html b/tests/django_oscar/oscar/dashboard/catalogue/product_class_form.html deleted file mode 100644 index fec5704..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_class_form.html +++ /dev/null @@ -1,157 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {{ title }} | {% trans "Create product type" %} | {{ block.super }} -{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -
    - {% block tab_nav %} -
    -
    -
    -

    {% trans "Sections" %}

    -
    - -
    -
    - {% endblock tab_nav %} -
    -
    - {% block tab_content %} - {% block product_class_details %} -
    -
    -

    {% trans "Product Class details" %}

    -
    -
    - {% comment %} - If the ProductClass form has field_errors, partials/form_fields.html - will render an error message. - This means that there'll be 2 error messages, - one from the partial and one from the view. Perhaps there should be - an option allowing hiding of the error message in the template. - For now we copy paste what we need from the template. - {% endcomment %} - {% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - - - {{ error }} - -
    - {% endfor %} - {% endif %} - {% for field in form %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endfor %} -
    -
    - {% endblock %} - {% block product_attributes %} -
    -
    -

    {% trans "Product attributes" %}

    -
    -
    - - {{ attributes_formset.management_form }} - {{ attributes_formset.non_form_errors }} - - - - - - - - - - - - - - {% for attribute_form in attributes_formset %} - - {% for hidden_field in attribute_form.hidden_fields %} - {{ hidden_field }} - {% endfor %} - - - - - - - {% endfor %} - -
    {% trans "Name" %}{% trans "Code" %}{% trans "Type" %}{% trans "Required" %}{% trans "Delete?" %}
    - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.name nolabel=True %} - - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.code nolabel=True %} - - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.type nolabel=True %} - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.option_group nolabel=True %} - - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.required nolabel=True %} - - {% include 'oscar/dashboard/partials/form_field.html' with field=attribute_form.DELETE nolabel=True %} -
    -
    -
    - {% endblock %} - {% endblock tab_content %} -
    -
    -
    - {% block fixed_actions_group %} -
    -
    -
    - - {% trans "Cancel" %} - - {% trans "or" %} - -
    -
    -
    - {% endblock fixed_actions_group %} -
    -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.product_attributes.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_class_list.html b/tests/django_oscar/oscar/dashboard/catalogue/product_class_list.html deleted file mode 100644 index 71463a4..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_class_list.html +++ /dev/null @@ -1,91 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% if classes %} - - - - - - - - - - - - {% for class in classes %} - - - - - - - {% endfor %} - -
    - - {% trans 'Product Types' %} -
    {% trans "Name" %}{% trans "Requires shipping" %}{% trans "Track stock?" %} 
    - - {{ class.name }} - - - - {{ class.requires_shipping|yesno }} - - - - {{ class.track_stock|yesno }} - - - -
    - {% else %} -

    - {% trans "There are no product types." %} -

    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_delete.html b/tests/django_oscar/oscar/dashboard/catalogue/product_delete.html deleted file mode 100644 index 2cd88cf..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_delete.html +++ /dev/null @@ -1,71 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %}{{ title }} | {{ block.super }}{% endblock %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    -

    {{ title }}

    -
    -
    - {% csrf_token %} -

    - {% if product.is_child %} - {% blocktrans with title=product.get_title %} - Delete product variant - {{ title }} - - are you sure? - {% endblocktrans %} - {% else %} - {% blocktrans with title=product.get_title %} - Delete product - {{ title }} - - are you sure? - {% endblocktrans %} - {% endif %} -

    - {% if product.is_parent %} -

    - {% trans "This will also delete the following child products:" %} -

      - {% for child in product.children.all %} -
    • - {{ child.get_title }} -
    • - {% endfor %} -
    -

    - {% endif %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_list.html b/tests/django_oscar/oscar/dashboard/catalogue/product_list.html deleted file mode 100644 index bd07eeb..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_list.html +++ /dev/null @@ -1,100 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load render_table from django_tables2 %} -{% block body_class %}{{ block.super }} catalogue{% endblock %} -{% block title %} - {% trans "Products" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% block create_product %} -
    -

    - - {% trans "Create new product" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=productclass_form %} - -
    -
    - {% endblock %} - {% block search_products %} -
    -

    - - {% trans "Search Products" %} -

    -
    -
    -
    - {% comment %} - Add the current query string to the search form so that the - sort order is not reset when searching. - {% endcomment %} - {% for name, value in request.GET.items %} - {% if name not in form.fields %} - - {% endif %} - {% endfor %} - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - -
    -
    -{% endblock %} -{% if products %} - {% block product_list %} -
    - {% csrf_token %} - {% render_table products %} -
    - - {% endblock product_list %} -{% else %} -

    - {% trans "No products found." %} -

    -{% endif %} -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.product_lists.init(); -{% endblock onbodyload %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_row_actions.html b/tests/django_oscar/oscar/dashboard/catalogue/product_row_actions.html deleted file mode 100644 index c19afa2..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_row_actions.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load django_tables2 %} -{% load i18n %} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_row_image.html b/tests/django_oscar/oscar/dashboard/catalogue/product_row_image.html deleted file mode 100644 index 93a8acd..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_row_image.html +++ /dev/null @@ -1,14 +0,0 @@ -{% load image_tags %} -{% if record.primary_image.original.url %} - {% with image=record.primary_image %} - {% oscar_thumbnail image.original "70x70" upscale=False as thumb %} - - {% if image.caption %}{{ image.caption }}{% else %}{{ record.get_title }}{% endif %} - - {% endwith %} -{% else %} - — -{% endif %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_row_stockrecords.html b/tests/django_oscar/oscar/dashboard/catalogue/product_row_stockrecords.html deleted file mode 100644 index 0ed2820..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_row_stockrecords.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if record.is_parent %} - - -{% else %} - {{ record.num_stockrecords }} -{% endif %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_row_title.html b/tests/django_oscar/oscar/dashboard/catalogue/product_row_title.html deleted file mode 100644 index 3625b34..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_row_title.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load django_tables2 %} - - {{ value }} - diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_row_variants.html b/tests/django_oscar/oscar/dashboard/catalogue/product_row_variants.html deleted file mode 100644 index c738ba1..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_row_variants.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if record.is_standalone %} - - -{% else %} - {{ record.children.count }} -{% endif %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/product_update.html b/tests/django_oscar/oscar/dashboard/catalogue/product_update.html deleted file mode 100644 index 780d241..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/product_update.html +++ /dev/null @@ -1,424 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load form_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page catalogue{% endblock %} -{% block title %} - {{ title }} | {% trans "Products" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} - {% if parent %} -
    -
    -
    - {% url 'dashboard:catalogue-product' pk=parent.id as parent_url %} - {% blocktrans with title=parent.title %} - You are currently editing a product variant of - {{ title }} - . - {% endblocktrans %} -
    -
    -
    - {% endif %} -
    - {% block tab_nav %} -
    -
    -
    -

    {% trans "Sections" %}

    -
    - -
    -
    - {% endblock tab_nav %} -
    -
    - {% block tab_content %} - {% block product_details %} -
    -
    -

    {% trans "Product details" %}

    -
    -
    - {% block product_details_content %} - {{ form.non_field_errors }} - {% for field in form.hidden_fields %}{{ field }}{% endfor %} - {% for field in form.primary_form_fields %} - {% if 'attr' not in field.id_for_label %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %} - {% endif %} - {% endfor %} - {% endblock product_details_content %} -
    -
    - {% endblock product_details %} - {% block product_categories %} -
    - {% block product_categories_content %} - - - {{ category_formset.management_form }} - {{ category_formset.non_form_errors }} - {% for category_form in category_formset %} - - - - {% endfor %} -
    - {% trans "Category" %} -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=category_form %} -
    - {% endblock product_categories_content %} -
    - {% endblock product_categories %} - {% block product_attributes %} -
    - {% block product_attributes_content %} - - - {% for field in form %} - {% if 'attr' in field.id_for_label %} - - - - {% endif %} - {% endfor %} -
    - {% trans "Attributes" %} - {% trans "Product Type:" %} {{ product_class }} -
    {% include "oscar/dashboard/partials/form_field.html" %}
    - {% endblock product_attributes_content %} -
    - {% endblock product_attributes %} - {% block product_images %} -
    - {% block product_images_content %} -
    -

    {% trans "Upload, change or remove images" %}

    -
    -
    - {{ image_formset.management_form }} - {{ image_formset.non_form_errors }} -
      - {% for image_form in image_formset %} - {% include "oscar/dashboard/partials/product_images.html" with form=image_form %} - {% endfor %} -
    -

    - {% trans 'Drag images to re-order them. Space for additional images will appear when images are added.' %} -

    -
    - {% endblock product_images_content %} -
    - {% endblock product_images %} - {% block stockrecords %} -
    - {% block stockrecords_content %} - - - {{ stockrecord_formset.management_form }} - {{ stockrecord_formset.non_form_errors }} - - - - - {% if product_class.track_stock %} - - - - {% endif %} - - - - - - - {% for stockrecord_form in stockrecord_formset %} - {% if stockrecord_form.non_field_errors %} - - - - {% endif %} - - - - {% if product_class.track_stock %} - - - - {% endif %} - - - - - {% endfor %} - -
    - {% trans "Stock and pricing" %} -
    {% trans "Partner" %}{% trans "SKU" %}{% trans "Num in stock" %}{% trans "Num allocated" %}{% trans "Low stock threshold" %}{% trans "Currency" %}{% trans "Price" %}{% trans "Delete?" %}
    - {% for error in stockrecord_form.non_field_errors %} - - - {{ error }} - - {% endfor %} -
    - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.partner nolabel=True %} - - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.partner_sku nolabel=True %} - - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.num_in_stock nolabel=True %} - {{ stockrecord_form.instance.num_allocated|default:"-" }} - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.low_stock_threshold nolabel=True %} - - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.price_currency nolabel=True %} - - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.price nolabel=True %} - - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.id nolabel=True %} - {% include "oscar/dashboard/partials/form_field.html" with field=stockrecord_form.DELETE nolabel=True %} -
    - {% endblock stockrecords_content %} -
    - {% endblock stockrecords %} - {% block child_products %} - {% with children=product.children.all %} -
    - {% block child_products_content %} - - - {% if children %} - - - - - - - - {% for child in children %} - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - {% trans "Variants" %} - -
    {% trans "Title" %}{% trans "Attributes" %}{% trans "Stock records" %}{% trans "Is public?" %} 
    {{ child.get_title }}{{ child.attribute_summary }}{{ child.stockrecords.count }} - {% if child.is_public %} - - {% else %} - - {% endif %} - - - {% trans "Edit" %} - - - {% trans "Delete" %} - -
    - {% if product.can_be_parent %} - {% trans 'This product does not have any variants.' %} - {% else %} - {% trans "One can't add variants to this product at this point." %} - {% if product.pk is None %} - {% trans "Please save the product before trying to add variants." %} - {% elif product.has_stockrecords %} - {% trans 'This is likely because this product still has stock records.' %} - {% endif %} - {% endif %} -
    - {% endblock child_products_content %} -
    - {% endwith %} - {% endblock child_products %} - {% block recommended_products %} - - {% endblock recommended_products %} - {% block seo %} -
    -
    -

    {% trans "Search engine optimisation" %}

    -
    -
    - {% block seo_content %} - {% for field in form.seo_form_fields %} - {% if 'attr' not in field.id_for_label %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field %}{% endif %} - {% endfor %} - {% endblock seo_content %} -
    -
    - {% endblock seo %} - {% endblock tab_content %} -
    -
    -
    - {% block fixed_actions_group %} -
    -
    -
    - - {% trans "Cancel" %} - - {% trans "or" %} - {% if parent %} - - {% endif %} - - -
    - {% if product %} - - {% trans "View on site" %} - - {% endif %} -
    -
    - {% endblock fixed_actions_group %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/catalogue/stockalert_list.html b/tests/django_oscar/oscar/dashboard/catalogue/stockalert_list.html deleted file mode 100644 index 4f79310..0000000 --- a/tests/django_oscar/oscar/dashboard/catalogue/stockalert_list.html +++ /dev/null @@ -1,91 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} catalogue{% endblock %} -{% block title %} - {% trans "Stock alerts" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -

    - - {{ description }} -

    - -
    - - {% if alerts %} - - - - - - - - - - {% for alert in alerts %} - - - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    {% trans "Product" %}{% trans "Partner" %}{% trans "Low stock threshold" %}{% trans "Current available stock" %}{% trans "Date alert raised" %}{% trans "Status" %}
    - - {{ alert.stockrecord.product.get_title }} - - {{ alert.stockrecord.partner.display_name }}{{ alert.stockrecord.low_stock_threshold }}{{ alert.stockrecord.net_stock_level }}{{ alert.date_created }}{{ alert.status }} - - {% trans "Update" %} - -
    {% trans "No stock alerts found." %}
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/comms/detail.html b/tests/django_oscar/oscar/dashboard/comms/detail.html deleted file mode 100644 index 23b8ec1..0000000 --- a/tests/django_oscar/oscar/dashboard/comms/detail.html +++ /dev/null @@ -1,174 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %}{{ commtype.name }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -
    - {% if preview %} - - {% else %} -
    -

    - - {% trans "Edit email" %} -

    -
    - {% endif %} -
    -
    - {% csrf_token %} - {% include 'oscar/dashboard/partials/form_field.html' with field=form.name %} -
    -

    {% trans "Email content" %}

    -
    -
    -

    - {% trans "These fields are rendered using Django's template system." %} -

    -

    - {% trans "You can use the following variables:" %} -

    -
    -
    - - {% templatetag openvariable %} user.get_full_name {% templatetag closevariable %} - -
    -
    - {% trans "The full name of the user (if they have one)" %} -
    -
    - - {% templatetag openvariable %} user.email {% templatetag closevariable %} - -
    -
    - {% trans "The user's email address" %} -
    -
    - - {% templatetag openvariable %} site.name {% templatetag closevariable %} - -
    -
    - {% trans "The name of the site (eg example.com)" %} -
    - {% if commtype.is_order_related %} -
    - - {% templatetag openvariable %} order.number {% templatetag closevariable %} - -
    -
    - {% trans "Order number" %} -
    - {% endif %} -
    -
    - {% include 'oscar/dashboard/partials/form_field.html' with field=form.email_subject_template %} - {% include 'oscar/dashboard/partials/form_field.html' with field=form.email_body_template %} - {% include 'oscar/dashboard/partials/form_field.html' with field=form.email_body_html_template %} -
    -

    {% trans "Preview" %}

    -
    -
    - {% if commtype.is_order_related %} -

    - {% trans "View a preview of this email using order:" %} -

    - {% include 'oscar/dashboard/partials/form_field.html' with field=form.preview_order_number %} - {% endif %} - -

    - {% trans "or send a preview to:" %} -

    - {% include 'oscar/dashboard/partials/form_field.html' with field=form.preview_email %} - -
    -
    -
    - - - - - - - - - - - - - -
    {% trans "Subject" %}{{ preview.subject }}
    {% trans "Body text" %} -
    -{{ preview.body }}
    -                                
    -
    {% trans "Body HTML" %} - -
    -
    -
    - - {% trans "or" %} - {% trans "cancel" %} - . -
    -
    -
    -
    -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - $(function() { - // Sets the HTML email preview so it's css doesn't touch the page. - var el_preview_html = document.getElementById('preview_box'); - var html = $(el_preview_html).text(); - var doc = el_preview_html.contentWindow.document; - doc.open(); - doc.write(html); - doc.close(); - }); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/comms/list.html b/tests/django_oscar/oscar/dashboard/comms/list.html deleted file mode 100644 index f348140..0000000 --- a/tests/django_oscar/oscar/dashboard/comms/list.html +++ /dev/null @@ -1,65 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% trans "Emails" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - - - {% if commtypes %} - - - - - - - - - - {% for commtype in commtypes %} - - - - - - - {% endfor %} - - {% else %} - - - - - - {% endif %} -
    - - {% trans "Emails" %} -
    {% trans "Code" %}{% trans "Name" %}{% trans "Category" %}
    - - {{ commtype.code }} - - {{ commtype.name }}{{ commtype.category }} - - {% trans "Edit" %} - -
    {% trans "There are no defined emails to edit." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/index.html b/tests/django_oscar/oscar/dashboard/index.html deleted file mode 100644 index 027938c..0000000 --- a/tests/django_oscar/oscar/dashboard/index.html +++ /dev/null @@ -1,238 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} orders home{% endblock %} -{% block extrahead %} - {{ block.super }} - -{% endblock %} -{% block breadcrumbs %}{% endblock %} -{% block headertext %} - {% trans "Dashboard" %} -{% endblock %} -{% block dashboard_content %} -
    - - {% trans "Your Store Statistics" %} -
    -
    -
    - -
    -
    -
    -

    {% trans "Latest Orders (last 24 hours)" %}

    -
    -
    -
      - {% for y_value in hourly_report_dict.y_range %} -
    • - {{ y_value|currency }} -
    • - {% endfor %} -
    -
    -
    - {% for item in hourly_report_dict.order_total_hourly %} -
    - {{ item.end_time|time }} - -

    - {{ item.total_incl_tax|currency }} -

    -
    -
    - {% endfor %} -
    -
    -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - -
    - - {% trans "Orders - Last 24 Hours" %} -
    {% trans "Total orders" %}{{ total_orders_last_day }}
    {% trans "Total lines" %}{{ total_lines_last_day }}
    {% trans "Total revenue" %}{{ total_revenue_last_day|currency }}
    {% trans "Average order costs" %}{{ average_order_costs|currency }}
    -
    -
    - - - - - - - - - - - - - - - - - - -
    - - - {% trans "Manage" %} - - - {% trans "Orders - All Time" %} -
    {% trans "Total orders" %}{{ total_orders }}
    {% trans "Total lines" %}{{ total_lines }}
    {% trans "Total revenue" %}{{ total_revenue|currency }}
    - {% trans "Total - open - baskets" %} - {{ total_open_baskets }}
    -
    -
    - - - - - - - - - - - - - - -
    - - {% trans "Customers" %} -
    {% trans "Total customers" %}{{ total_customers }}
    {% trans "New customers" %}{{ total_customers_last_day }}
    - {% trans "Total - open - baskets" %} - {{ total_open_baskets_last_day }}
    -
    -
    -
    -
    - - - - - - - - - - - - - - -
    - - - {% trans "Catalogue and stock" %} -
    {% trans "Total products" %}{{ total_products }}
    - {% trans " - Open - stock alerts" %} - {{ total_open_stock_alerts }}
    - {% trans " - Closed - stock alerts" %} - {{ total_closed_stock_alerts }}
    -
    -
    - {% if user.is_staff %} - - - {% for offer_map in offer_maps %} - - - - - {% endfor %} - - - - -
    - - {% trans "Offers, vouchers" %} -
    - {% blocktrans with offer_type=offer_map.offer_type %} - Active - {{ offer_type }} - Offers - {% endblocktrans %} - {{ offer_map.count }}
    - {% trans "Active - Vouchers - " %} - {{ total_vouchers }}
    - {% endif %} -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/layout.html b/tests/django_oscar/oscar/dashboard/layout.html deleted file mode 100644 index 9a40863..0000000 --- a/tests/django_oscar/oscar/dashboard/layout.html +++ /dev/null @@ -1,164 +0,0 @@ -{% extends "oscar/dashboard/base.html" %} -{% load category_tags %} -{% load dashboard_tags %} -{% load i18n %} -{% load static %} -{% block styles %} - -{% endblock %} -{% block extrastyles %} - {{ block.super }} - - - -{% endblock %} -{% block title %} - {% trans "Dashboard" %} | {{ block.super }} -{% endblock %} -{% block layout %} - {% block navbar %} - - {% endblock navbar %} - {% block dashboard_nav %} - {% dashboard_navigation user as nav_items %} - - {% endblock %} -
    - {% block breadcrumbs %} - - {% endblock %} -
    - {% include 'oscar/dashboard/partials/alert_messages.html' %} - {% block header %} - - {% endblock %} -
    - {% block content %} - {% block dashboard_content %}{% endblock dashboard_content %} - {% endblock content %} -
    -
    -
    - -{% endblock %} -{# Local scripts #} -{% block scripts %} - - - - -{% endblock %} -{% block extrascripts %} - {{ block.super }} - {# jQuery plugins #} - - - - - - - - - - -{% endblock %} -{% block onbodyload %} - {{ block.super }} - // Javascript to enable link to tab - var url = document.location.toString(); - if (url.match('#')) { - $('.nav-list a[href="#' + url.split('#')[1] + '"]').tab('show'); - } - // Change hash for page-reload - $('.nav-list a').on('shown.bs.tab', function (e) { - window.location.hash = e.target.hash; - }); - options = { - 'languageCode': '{{ LANGUAGE_CODE }}' - }; - oscar.dashboard.init(options); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/login.html b/tests/django_oscar/oscar/dashboard/login.html deleted file mode 100644 index 7bb4729..0000000 --- a/tests/django_oscar/oscar/dashboard/login.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "oscar/dashboard/base.html" %} -{% load i18n %} -{% load static %} -{% load widget_tweaks %} -{% block styles %} - -{% endblock %} -{% block body_class %}dashboard-login{% endblock %} -{% block layout %} -
    -
    -
    -

    {{ shop_name }}

    -
    - {% if form.errors %} -
    - {% trans "Please enter a correct username and password. Note that both fields may be case-sensitive." %} -
    - {% endif %} -
    - {{ form.username.label_tag }} - {% render_field form.username class="form-control" %} -
    -
    - {{ form.password.label_tag }} - {% render_field form.password class="form-control" %} -
    - - - {% csrf_token %} -
    -
    -
    -{% endblock %} -{% block onbodyload %}{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/offers/benefit_form.html b/tests/django_oscar/oscar/dashboard/offers/benefit_form.html deleted file mode 100644 index 0256677..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/benefit_form.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'oscar/dashboard/offers/step_form.html' %} -{% load i18n %} -{% block progress %} - {% include 'oscar/dashboard/offers/progress.html' with step=2 %} -{% endblock %} -{% block form_fields %} - {{ form.non_field_errors }} - {% if form.fields.custom_benefit.choices %} -

    {% trans "Build a new incentive" %}

    - {% endif %} - {% include "oscar/dashboard/partials/form_field.html" with field=form.range %} -

    - {% url 'dashboard:range-list' as range_list_url %} - {% blocktrans %} - Ranges can be created and edited from within the - - range dashboard - - . - {% endblocktrans %} -

    - {% include "oscar/dashboard/partials/form_field.html" with field=form.type %} - {% include "oscar/dashboard/partials/form_field.html" with field=form.value %} - {% include "oscar/dashboard/partials/form_field.html" with field=form.max_affected_items %} - {% if form.fields.custom_benefit.choices %} -

    {% trans "...or choose a pre-defined one" %}

    - {% include "oscar/dashboard/partials/form_field.html" with field=form.custom_benefit %} - {% endif %} -{% endblock %} -{% block submittext %} - {% trans "Continue to step 3" %} -{% endblock %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.offers.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/offers/condition_form.html b/tests/django_oscar/oscar/dashboard/offers/condition_form.html deleted file mode 100644 index 886e522..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/condition_form.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'oscar/dashboard/offers/step_form.html' %} -{% load i18n %} -{% block summary %} - {% include 'oscar/dashboard/offers/summary.html' %} -{% endblock %} -{% block progress %} - {% include 'oscar/dashboard/offers/progress.html' with step=3 %} -{% endblock %} -{% block form_fields %} - {{ form.non_field_errors }} - {% if form.fields.custom_condition.choices %} -

    {% trans "Build a new condition" %}

    - {% endif %} - {% include "oscar/dashboard/partials/form_field.html" with field=form.range %} -

    - {% url 'dashboard:range-list' as range_list_url %} - {% blocktrans %} - Ranges can be created and edited from within the - - range dashboard - - . - {% endblocktrans %} -

    - {% include "oscar/dashboard/partials/form_field.html" with field=form.type %} - {% include "oscar/dashboard/partials/form_field.html" with field=form.value %} - {% if form.fields.custom_condition.choices %} -

    {% trans "...or choose a pre-defined one" %}

    - {% include "oscar/dashboard/partials/form_field.html" with field=form.custom_condition %} - {% endif %} -{% endblock %} -{% block submittext %} - {% trans "Continue to step 4" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/offers/metadata_form.html b/tests/django_oscar/oscar/dashboard/offers/metadata_form.html deleted file mode 100644 index f2c48ad..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/metadata_form.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends 'oscar/dashboard/offers/step_form.html' %} -{% load i18n %} -{% block progress %} - {% include 'oscar/dashboard/offers/progress.html' with step=1 %} -{% endblock %} -{% block submittext %} - {% trans "Continue to step 2" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/offers/offer_delete.html b/tests/django_oscar/oscar/dashboard/offers/offer_delete.html deleted file mode 100644 index 858b213..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/offer_delete.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% trans "Delete offer" %} | {% trans "Offers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ offer.name }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -

    - {% trans "Are you sure you want to delete this offer?" %} -

    -
    - - {% trans "or" %} - {% trans "cancel" %} -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/offers/offer_detail.html b/tests/django_oscar/oscar/dashboard/offers/offer_detail.html deleted file mode 100644 index 9e2a17d..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/offer_detail.html +++ /dev/null @@ -1,235 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block title %} - {% blocktrans with name=offer.name %} - {{ name }} | Offers - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - - - - - - - -
    - {% if offer.is_available %} - {% trans "Offer currently available" %} - {% else %} - - {% trans "Offer not available due to restrictions!" %} - - {% endif %} - - {% trans "Total cost:" %} - {{ offer.total_discount|currency }} - - {% trans "Number of orders:" %} - {{ offer.num_orders }} - - {% trans "Number of uses:" %} - {{ offer.num_applications }} -
    -
    -
    - {% trans "Date created:" %} {{ offer.date_created }} -
    -

    {% trans "Offer details" %}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% if offer.is_voucher_offer_type %} - - - - - {% endif %} - -
    {% trans "Name" %}{{ offer.name }} - - {% trans "Edit" %} - -
    {% trans "Description" %}{{ offer.description|safe|default:"-" }}
    {% trans "Type" %}{{ offer.get_offer_type_display }}
    {% trans "Incentive" %}{{ offer.benefit.description|safe }} - - {% trans "Edit" %} - -
    {% trans "Condition" %}{{ offer.condition.description|safe }} - - {% trans "Edit" %} - -
    {% trans "Restrictions" %} - {% for restriction in offer.availability_restrictions %} - {% if not restriction.is_satisfied %} - {{ restriction.description }} -
    - {% else %} - {{ restriction.description }} -
    - {% endif %} - {% endfor %} -
    - - {% trans "Edit" %} - -
    {% trans "Num of vouchers" %}{{ offer.vouchers.count }}
    - {% if offer.is_voucher_offer_type %} -
    -

    {% trans "Attached vouchers" %}

    -
    - - {% if offer.vouchers.exists %} - - - - - - - - - {% for voucher in offer.vouchers.all %} - - - - - - {% endfor %} - - {% else %} - - - - {% endif %} -
    {% trans "Name" %}{% trans "Code" %}{% trans "Status" %}
    - - {{ voucher.name }} - - - {{ voucher.code }} - - {% if voucher.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} -
    {% trans "No vouchers are attached to this offer." %}
    - {% endif %} - {% if order_discounts %} -
    - - {% trans "Export to CSV" %} - -

    {% trans "Orders that used this offer" %}

    -
    - - - - - - - - - {% for discount in order_discounts %} - {% with order=discount.order %} - - - - - - - {% endwith %} - {% endfor %} - -
    {% trans "Order number" %}{% trans "Order date" %} - {% trans "Order total" %} - - {% trans "Cost" %} -
    - - {{ order.number }} - - - {{ order.date_placed }} - - {{ order.total_incl_tax|currency }} - - {{ discount.amount|currency }} -
    - {% include 'oscar/dashboard/partials/pagination.html' %} - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/offers/offer_list.html b/tests/django_oscar/oscar/dashboard/offers/offer_list.html deleted file mode 100644 index efe36b7..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/offer_list.html +++ /dev/null @@ -1,197 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% load widget_tweaks %} -{% block title %} - {% trans "Offers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -

    - - {% trans "Search" %} -

    -
    -
    -
    - {% for field in form %} - {% if field.name in form.basic_fields %} - {% if field.is_hidden %} - {{ field }} - {% else %} -
    - {{ field.label_tag }} - {% render_field field class+='form-control' %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {# No help text as it wraps #} -
    - {% endif %} - {% else %} - - {% endif %} - {% endfor %} - - - {% trans "Advanced Search" %} - - - {% trans "Reset" %} - -
    - {# Search modal, if there are form errors the form is automatically openend #} - {% include "oscar/dashboard/partials/advanced_search_modal.html" with form=advanced_form style='horizontal' %} - {% if search_filters %} -
    - - {% for filter in search_filters %} - {{ filter }} - {% endfor %} -
    - {% endif %} -
    -
    - {% csrf_token %} - - - {% if offers %} - - - - {% if form.is_bound %} - {% if form.is_voucher_offer_type or not form.cleaned_data.offer_type %} - - {% endif %} - {% endif %} - - - - - - - - - - - - {% for offer in offers %} - - - - {% if form.is_bound %} - {% if form.is_voucher_offer_type or not form.cleaned_data.offer_type %} - - {% endif %} - {% endif %} - - - - - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - - {% if search_filters %} - {% trans "Offer Search Results" %} - {% else %} - {% trans "All Offers" %} - {% endif %} -
    {% anchor 'name' _('Offer name') %}{% anchor 'offer_type' _('Offer type') %}{% trans "Num of vouchers" %}{% anchor 'start_datetime' _('Start date') %}{% anchor 'end_datetime' _('End date') %}{% trans "Priority" %}{% trans "Incentive" %}{% trans "Condition" %}{% trans "Is available?" %}{% trans "Restrictions" %}{% anchor 'num_applications' _('Uses') %}{% anchor 'total_discount' _('Cost') %}
    - - {{ offer.name }} - - {{ offer.offer_type }}{{ offer.vouchers.count }}{{ offer.start_datetime|default:"-" }}{{ offer.end_datetime|default:"-" }}{{ offer.priority }}{{ offer.benefit.description|safe }}{{ offer.condition.description|safe }} - {% if offer.is_available %} - {% trans "Yes" %} - {% else %} - {% trans "No" %} - {% endif %} - - {% for restriction in offer.availability_restrictions %} - {% if not restriction.is_satisfied %} - - {% else %} - {{ restriction.description }} -
    - {% endif %} - {% endfor %} -
    {{ offer.num_applications }}{{ offer.total_discount|currency }} -
    - -
    -
    {% trans "No offers found." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -
    -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - {% if advanced_form.errors %}$('#SearchModal').modal('show');{% endif %} -{% endblock onbodyload %} diff --git a/tests/django_oscar/oscar/dashboard/offers/progress.html b/tests/django_oscar/oscar/dashboard/offers/progress.html deleted file mode 100644 index 2811d10..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/progress.html +++ /dev/null @@ -1,49 +0,0 @@ -{% load i18n %} -
    -
    -

    {% trans "Steps" %}

    -
    - -
    diff --git a/tests/django_oscar/oscar/dashboard/offers/restrictions_form.html b/tests/django_oscar/oscar/dashboard/offers/restrictions_form.html deleted file mode 100644 index 161453c..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/restrictions_form.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends 'oscar/dashboard/offers/step_form.html' %} -{% load i18n %} -{% block summary %} - {% include 'oscar/dashboard/offers/summary.html' %} -{% endblock %} -{% block progress %} - {% include 'oscar/dashboard/offers/progress.html' with step=4 %} -{% endblock %} -{% block form_actions_buttons %} - -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/offers/step_form.html b/tests/django_oscar/oscar/dashboard/offers/step_form.html deleted file mode 100644 index 76ffdf8..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/step_form.html +++ /dev/null @@ -1,104 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% if offer.pk %} - {{ offer.name }}: - {% else %} - {% trans "Create new offer" %}: - {% endif %} - {{ title }} | {% trans "Offers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% if not offer.pk %} - {% trans "Create new offer" %} - {% else %} - {{ offer.name }} - {% endif %} -{% endblock %} -{% block dashboard_content %} -
    -
    - {% block progress %} - {% include 'oscar/dashboard/offers/progress.html' %} - {% endblock %} -
    -
    -
    -
    -

    {{ title }}

    -
    -
    - {% csrf_token %} - {% block form_fields %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% endblock %} - {% block form_extradata %}{% endblock %} -
    - {% block form_actions %} -
    -
    -
    - {% block form_actions_buttons %} - - {% if offer %} - {# When editing offer, show saving button #} - - {% endif %} - {% endblock %} -
    - - {% trans "cancel" %} - -
    -
    - {% endblock form_actions %} -
    -
    - {% if session_offer %} -
    - {% block summary %} - {% include 'oscar/dashboard/offers/summary.html' %} - {% endblock %} -
    - {% endif %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/offers/summary.html b/tests/django_oscar/oscar/dashboard/offers/summary.html deleted file mode 100644 index ddef7ba..0000000 --- a/tests/django_oscar/oscar/dashboard/offers/summary.html +++ /dev/null @@ -1,87 +0,0 @@ -{% load i18n %} -
    -

    {% trans "Offer summary" %}

    -
    -
    - {% if session_offer.name %} -
    - -

    - {% trans "Name" %}: -
    - {{ session_offer.name }} -

    - {% if session_offer.description %} -

    - {% trans "Description" %}: -
    - {{ session_offer.description|safe|striptags|truncatewords:8 }} -

    - {% endif %} -

    - {% trans "Type" %}: -
    - {{ session_offer.offer_type }} -

    -
    - {% endif %} - {% if session_offer.benefit %} -
    - -

    - {% trans "Incentive" %}: -
    - {{ session_offer.benefit.description|safe }} -

    -
    - {% endif %} - {% if session_offer.condition %} -
    - -

    - {% trans "Condition" %}: -
    - {{ session_offer.condition.description|safe }} -

    -
    - {% endif %} - {% if session_offer.pk %} -
    - -

    - {% trans "Restrictions" %}: -

    - {% if offer.availability_restrictions %} -
      - {% for restriction in offer.availability_restrictions %} -
    • - {{ restriction.description }} -
    • - {% endfor %} -
    - {% else %} - - - {% endif %} -
    - {% endif %} -
    diff --git a/tests/django_oscar/oscar/dashboard/orders/line_detail.html b/tests/django_oscar/oscar/dashboard/orders/line_detail.html deleted file mode 100644 index 9eb572e..0000000 --- a/tests/django_oscar/oscar/dashboard/orders/line_detail.html +++ /dev/null @@ -1,236 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% blocktrans with number=line.order.number id=line.id %} - Order {{ number }} - Line #{{ id }} - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with number=line.order.number id=line.id %} - Order #{{ number }} - Line #{{ id }} - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -
    -
    -

    {% trans "Product details" %}

    -
    - - - - - - - - - - - - - - - - - - {% if line.attributes.exists %} - - - - {% for attribute in line.attributes.all %} - - - - - {% endfor %} - {% endif %} -
    {% trans "Title" context "Product title" %} - {% if line.product %} - - {{ line.title }} - - {% else %} - {{ line.title }} - {% endif %} -
    {% trans "Product Type" %}{{ line.product.get_product_class }}
    {% trans "UPC" %}{{ line.upc|default:"-" }}
    {% trans "Quantity" %}{{ line.quantity }}
    {% trans "Product Options" %}
    {{ attribute.option }}{{ attribute.value }}
    -
    -
    -
    -

    {% trans "Partner details" %}

    -
    - - - - - - - - - - - - - -
    {% trans "Status" %}{{ line.status|default:"-" }}
    {% trans "Partner" %}{{ line.partner_name }}
    {% trans "Partner SKU" %}{{ line.partner_sku }}
    -
    -
    -
    -

    {% trans "Shipping details" %}

    -
    - - - - - - - - - -
    {% trans "Partner reference number" %}{{ line.partner_line_reference|default:"-" }}
    {% trans "Partner notes" %}{{ line.partner_line_notes|default:"-" }}
    -
    -
    -
    -
    -
    -

    {% trans "Shipping status" %}

    -
    - - - - - - - - - {% for state in line.shipping_event_breakdown.values %} - - - - - {% empty %} - - - - {% endfor %} - -
    {% trans "State" %}{% trans "Quantity" %}
    {{ state.event_type.name }} - {{ state.quantity }} -
    {% trans "No shipping events have occurred." %}
    -
    -
    -
    -

    - {% trans "Shipping events" %} -

    -
    - - - - - - - - - - - {% for event_qty in line.shipping_event_quantities.all %} - - {% with event=event_qty.event %} - - - - - {% endwith %} - - {% empty %} - - - - {% endfor %} - -
    - {% trans "Event" %} - - {% trans "Quantity" %} - - {% trans "Reference" %} - - {% trans "Date" %} -
    - {{ event.event_type.name }} - - {{ event_qty.quantity }} - - {{ event.notes }} - - {{ event.date_created }} -
    {% trans "No shipping events have occurred." %}
    -
    -
    -
    -

    - {% trans "Payment events" %} -

    -
    - - - - - - - - - - {% for event_qty in line.payment_event_quantities.all %} - - {% with event=event_qty.event %} - - - - {% endwith %} - - {% empty %} - - - - {% endfor %} - -
    - {% trans "Event" %} - - {% trans "Quantity" %} - - {% trans "Date" %} -
    - {{ event.event_type.name }} - - {{ event_qty.quantity }} - - {{ event.date_created }} -
    {% trans "No payment events have occurred." %}
    -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/orders/order_detail.html b/tests/django_oscar/oscar/dashboard/orders/order_detail.html deleted file mode 100644 index 0ac076b..0000000 --- a/tests/django_oscar/oscar/dashboard/orders/order_detail.html +++ /dev/null @@ -1,1049 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block body_class %}{{ block.super }} orders{% endblock %} -{% block title %} - {% blocktrans with number=order.number %} - Order {{ number }} - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with number=order.number %} - Order #{{ number }} - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} - {% block customer_information %} - - - {% if order.guest_email %} - - - - - - - - - {% elif order.user %} - - - - - - - - - {% else %} - - - - {% endif %} -
    - - {% trans "Customer Information" %} -
    {% trans "Name" %}{% trans "Email address" %}
    {% trans "Customer checked out as a guest." %}{{ order.email }}
    {% trans "Name" %}{% trans "Email address" %}
    {{ order.user.get_full_name|default:"-" }}{{ order.user.email|default:"-" }}
    {% trans "Customer has deleted their account." %}
    - {% endblock customer_information %} - {% block order_information %} - - - - - - - - - - - - - - -
    - - {% trans "Order information" %} -
    {% trans "Order Total" %}{% trans "Date of purchase" %}{% trans "Time of purchase" %}{% trans "Status" %}
    {{ order.total_incl_tax|currency:order.currency }}{{ order.date_placed|date }}{{ order.date_placed|time }}{{ order.status|default:"N/A" }}
    - {% endblock order_information %} - {% block additional_order_information %}{% endblock additional_order_information %} -
    -

    {% trans "Order Details" %}

    -
    -
    - -
    -
    -
    -

    {% trans "Items ordered" %}

    -
    -
    - {% csrf_token %} - {% block order_lines %} - - - - - - - - - - - - - - - - - - - {% for line in lines %} - - - - - - - - - - - - - - - {% endfor %} - - - - - - - - {% with discounts=order.basket_discounts %} - {% if discounts %} - - - - - - - - {% for discount in discounts %} - - - - - - - - {% endfor %} - - - - - - - - {% else %} - - - - - - - - {% endif %} - {% endwith %} - {% if order.has_shipping_discounts %} - - - - - - - - {% for discount in order.shipping_discounts %} - - - - - - - - {% endfor %} - - - - - - - - {% else %} - - - - - - - - {% endif %} - {% with surcharges=order.surcharges.all %} - {% if surcharges %} - {% for charge in surcharges %} - - - - - - - - {% endfor %} - {% endif %} - {% endwith %} - - - - - - - - -
    {% trans "Line ID" %}{% trans "Quantity" %}{% trans "Product" %}{% trans "UPC" %}{% trans "Status" %} - {% trans "Supplier" %} - - {% trans "Supplier SKU" %} - - {% trans "Price excl tax (before discounts)" %} - - {% trans "Price inc tax (before discounts)" %} - - {% trans "Actions" %} -
    - - - - - - #{{ line.id }} - - - {{ line.quantity }} - - {% if line.product %} - - {{ line.title }} - - {% else %} - {{ line.title }} - {% endif %} - - {{ line.upc|default:"-" }} - - {{ line.status|default:"-" }} - - {% if line.partner %} - - {{ line.partner_name }} - - {% else %} - {{ line.partner_name }} - {% endif %} - - {{ line.partner_sku }} - - {{ line.line_price_before_discounts_excl_tax|currency:order.currency }} - - {{ line.line_price_before_discounts_incl_tax|currency:order.currency }} - - - {% trans "View" %} - -
    - {% trans "Discount" %} - - {{ order.total_discount_excl_tax|currency:order.currency }} - - {{ order.total_discount_incl_tax|currency:order.currency }} -
    - {% trans "Basket total (excl. discounts)" %} - - {{ order.basket_total_before_discounts_excl_tax|currency:order.currency }} - - {{ order.basket_total_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer_name }} - - {{ discount.amount|currency:order.currency }}
    - {% trans "Basket total (inc. discounts)" %} - - {{ order.basket_total_excl_tax|currency:order.currency }} - - {{ order.basket_total_incl_tax|currency:order.currency }} -
    - {% trans "Basket total" %} - - {{ order.basket_total_excl_tax|currency:order.currency }} - - {{ order.basket_total_incl_tax|currency:order.currency }} -
    - {% trans "Shipping total (excl. discounts)" %} - - {{ order.shipping_before_discounts_excl_tax|currency:order.currency }} - - {{ order.shipping_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer_name }} - - {{ discount.amount|currency:order.currency }}
    - {% trans "Shipping total (inc. discounts)" %} - - {{ order.shipping_excl_tax|currency:order.currency }} - - {{ order.shipping_incl_tax|currency:order.currency }} -
    - {% trans "Shipping total" %} - - {{ order.shipping_excl_tax|currency:order.currency }} - - {{ order.shipping_incl_tax|currency:order.currency }} -
    - {% blocktrans with name=charge.name %}Surcharge {{ name }}{% endblocktrans %} - {{ charge.excl_tax|currency:order.currency }}{{ charge.incl_tax|currency:order.currency }}
    - {% trans "Order total" %} - {{ order.total_excl_tax|currency:order.currency }}{{ order.total_incl_tax|currency:order.currency }}
    - {% endblock order_lines %} - {% comment %} - This is the important block within this template: you will almost certainly want to - override this block to provide your own form widgets that suit your order processing - flow. The default contents shows a range of widgets - more than is sensible really. - {% endcomment %} - {% block line_actions %} -
    -

    - {% trans "With selected lines" %}: -

    -
    -
    -
    - - -
    -
    -
    - - -
    -
    -
    -
    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    -
    -
    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    -
    - -
    -
    - {% endblock line_actions %} -
    -
    - {% csrf_token %} - {% block order_actions %} -
    -

    - - {% trans "Change order status" %}: -

    - {% if order_status_form.has_choices %} - {% include "oscar/dashboard/partials/form_fields.html" with form=order_status_form %} - -
    - -
    - {% else %} - {% trans "This order can't have its status changed." %} - {% endif %} -
    - {% endblock %} -
    - {% block order_status_changes %} -
    -

    - {% trans "Status Changes" %} -

    -
    - {% with status_changes=order.status_changes.all %} - - {% if status_changes %} - - - - - - - - - {% for status_change in status_changes %} - - - - - - {% endfor %} - - {% else %} - - - - - - {% endif %} -
    - {% trans "From" %} - - {% trans "To" %} - - {% trans "Date" %} -
    - {{ status_change.old_status }} - - {{ status_change.new_status }} - - {{ status_change.date_created }} -
    - {% trans "No status changes." %} -
    - {% endwith %} - {% endblock %} - {% block shipping_events %} -
    -

    - {% trans "Shipping Events" %} -

    -
    - {% with events=order.shipping_events.all %} - - {% if events %} - - - - - - - - - - {% for event in events %} - {% with line_qtys=event.line_quantities.all %} - - - - - - - {% endwith %} - {% endfor %} - - {% else %} - - - - - - {% endif %} -
    - {% trans "Date" %} - - {% trans "Event" %} - - {% trans "Lines" %} - - {% trans "Reference" %} -
    - {{ event.date_created }} - - {{ event.event_type.name }} - - {% for line_qty in event.line_quantities.all %} - - {% blocktrans with title=line_qty.line.title event_qty=line_qty.quantity total_qty=line_qty.line.quantity %} - {{ title }} (quantity {{ event_qty }}/{{ total_qty }}) - {% endblocktrans %} - - {% endfor %} - - {{ event.notes|default:"-" }} -
    - {% trans "No shipping events." %} -
    - {% endwith %} - {% endblock %} - {% block payment_events %} -
    -

    {% trans "Payment Events" %} -

    -
    - {% with events=order.payment_events.all %} - - {% if events %} - - - - - - - - - - - {% for event in events %} - {% with line_qtys=event.line_quantities.all %} - - - - - - - - {% endwith %} - {% endfor %} - - {% else %} - - - - - - {% endif %} -
    - {% trans "Date" %} - - {% trans "Event" %} - - {% trans "Amount" %} - - {% trans "Lines" %} - - {% trans "Reference" %} -
    {{ event.date_created }} - {{ event.event_type.name }} - {{ event.amount|currency:order.currency }} - - {% for line_qty in event.line_quantities.all %} - {% trans "Product:" %} {{ line_qty.line.title }} - {% trans "quantity" %} {{ line_qty.quantity }} -
    - {% endfor %} -
    {{ event.reference|default:"-" }} -
    - {% trans "No payment events." %} -
    - {% endwith %} - {% endblock %} -
    -
    - {% block tab_shipping %} -
    -

    - {% trans "Shipping" %} -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - {% trans "Method name" %} - - {{ order.shipping_method }} -
    - {% trans "Method code" %} - - {{ order.shipping_code|upper }} -
    - {% trans "Charge (incl tax)" %} - - {{ order.shipping_incl_tax|currency:order.currency }} -
    - {% trans "Charge (excl tax)" %} - - {{ order.shipping_excl_tax|currency:order.currency }} -
    - {% trans "Address" %} - - {% for field in order.shipping_address.active_address_fields %} - {{ field }} -
    - {% endfor %} - - {% trans "Update" %} - -
    - {% trans "Phone" %} - - {{ order.shipping_address.phone_number|default:"-" }} -
    - {% trans "Instructions" %} - - {{ order.shipping_address.notes|default:"-"|linebreaks }} -
    - {% endblock %} -
    -
    - {% block tab_payment %} - {% if order.billing_address %} -
    -

    {% trans "Billing address" %} -

    -
    -

    - {% for field in order.billing_address.active_address_fields %} - {{ field }} -
    - {% endfor %} -

    - {% endif %} - {% with sources=order.sources.all %} -
    -

    {% trans "Payment sources" %} -

    -
    - {% if sources %} - - - - - - - - - - - - {% for source in sources %} - - - - - - - - {% endfor %} - -
    - {% trans "Source" %} - - {% trans "Allocation" %} - - {% trans "Amount debited" %} - - {% trans "Amount refunded" %} - - {% trans "Reference" %} -
    - {{ source.source_type }} - - {{ source.amount_allocated|currency:order.currency }} - - {{ source.amount_debited|currency:order.currency }} - - {{ source.amount_refunded|currency:order.currency }} - - {{ source.reference|default:"-" }} -
    - {% else %} - - - - -
    - {% trans "No payment sources found for this order." %} -
    - {% endif %} - {% endwith %} - {% block payment_transactions %} - {% if payment_transactions %} -
    -

    - {% trans "Transactions" %} -

    -
    - - - - - - - - - - - - {% for txn in payment_transactions %} - - - - - - - - {% endfor %} - -
    - {% trans "Source" %} - - {% trans "Amount" %} - - {% trans "Reference" %} - - {% trans "Status" %} - - {% trans "Date" %} -
    - {{ txn.source.source_type }} - - {{ txn.amount|currency:order.currency }} - - {{ txn.reference|default:"-" }} - - {{ txn.status|default:"-" }} - - {{ txn.date_created }} -
    - {% endif %} - {% endblock %} - {% endblock %} -
    -
    - {% block tab_discounts %} - {% with discounts=order.discounts.all %} -
    -

    - {% trans "Discounts" %} -

    -
    - {% if discounts %} - - - - - - - - - - - - - {% for discount in discounts %} - - - - - - - - - {% endfor %} - -
    - {% trans "Type" %} - - {% trans "Voucher" %} - - {% trans "Offer name" %} - - {% trans "Frequency" %} - - {% trans "Message" %} - - {% trans "Amount" %} -
    - {{ discount.get_category_display }} - - {{ discount.voucher.code|default:"-" }} - - {% if discount.offer %} - - {{ discount.offer.name }} - - {% else %} - {{ discount.offer_name }} - {% endif %} - - {{ discount.frequency }} - - {{ discount.message|default:"-" }} - - {{ discount.amount|currency:order.currency }} -
    - {% else %} - - - - -
    - {% trans "No discounts were applied to this order." %} -
    - {% endif %} - {% endwith %} - {% endblock %} -
    -
    - {% block tab_notes %} -
    -

    - {% trans "Notes" %} -

    -
    - {% with notes=order.notes.all %} - - {% if notes %} - - - - - - - - {% for note in notes %} - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - {% trans "Date" %} - - {% trans "User" %} - - {% trans "Type" %} - - {% trans "Message" %} - - {% trans "Admin" %} -
    - {{ note.date_created }} - - {{ note.user|default:"-" }} - - {{ note.note_type|default:"-" }} - - {{ note.message|linebreaks }} - - {% if note.is_editable %} - - {% trans "Edit" %} - -
    - {% csrf_token %} - - - -
    - {% endif %} -
    - {% trans "No notes available." %} -
    - {% endwith %} -
    - {% csrf_token %} - - {% include "oscar/dashboard/partials/form_fields.html" with form=note_form %} -
    - - {% trans "Notes are only editable for 5 minutes after being saved." %} -
    -
    - {% endblock %} -
    - {% block extra_tabs %}{% endblock %} -
    -
    -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.orders.initTabs(); - oscar.dashboard.orders.initTable(); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/orders/order_list.html b/tests/django_oscar/oscar/dashboard/orders/order_list.html deleted file mode 100644 index b9cdc2b..0000000 --- a/tests/django_oscar/oscar/dashboard/orders/order_list.html +++ /dev/null @@ -1,211 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% load widget_tweaks %} -{% block body_class %}{{ block.super }} orders{% endblock %} -{% block title %} - {% trans "Orders" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -

    - - {% trans "Search" %} -

    -
    -
    -
    - {% for field in form %} - {% if "order" in field.id_for_label %} - {% if field.is_hidden %} - {% render_field field class+='form-control' %} - {% else %} -
    - {{ field.label_tag }} - {% render_field field class+='form-control' %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} -
    - {% endif %} - {% endif %} - {% endfor %} - - - {% trans "Advanced Search" %} - -
    - {# Search modal, if there are form errors the form is automatically openend #} - {% include "oscar/dashboard/partials/advanced_search_modal.html" with form=form style='horizontal' %} - {% if search_filters %} -
    - - {% for filter in search_filters %} - {{ filter }} - {% endfor %} -
    - {% endif %} -
    - {% if orders %} -
    - {% csrf_token %} - {% block order_list %} - - - - - - - - - - - - - - - - - - {% for order in orders %} - - - - - - - - - - - - - {% endfor %} - -
    -

    - - {% if search_filters %} - {% trans "Order Search Results" %} - {% else %} - {% trans "All Orders" %} - {% endif %} -

    -
    -
    - - -
    -
    -
    {% anchor 'number' _("Order number") %}{% anchor 'total_incl_tax' _("Total inc tax") %}{% trans "Number of items" %}{% trans "Status" %}{% trans "Customer" %}{% trans "Shipping address" %}{% trans "Billing address" %}{% trans "Date of purchase" %}
    - - - - {{ order.number }} - - {{ order.total_incl_tax|currency:order.currency }}{{ order.num_items }}{{ order.status|default:"-" }} - {% if order.guest_email %} - {{ order.guest_email }} - {% elif order.user %} - - {{ order.user.get_full_name|default:"-" }} - - {% else %} - <{% trans "Deleted" %}> - {% endif %} - {{ order.shipping_address|default:"-" }}{{ order.billing_address|default:"-" }}{{ order.date_placed }} - - {% trans "View" %} - -
    - {% endblock order_list %} - {% block order_actions %} -
    -

    - - {% trans "Change order status" %}: -

    - {% if order_statuses %} -
    -
    - -
    -
    -
    - -
    - {% else %} - {% trans "This order can't have its status changed." %} - {% endif %} -
    - {% endblock %} - {% include "oscar/dashboard/partials/pagination.html" %} -
    - {% else %} - - - - - -
    - - {% if search_filters %} - {% trans "Order Search Results" %} - {% else %} - {% trans "All Orders" %} - {% endif %} -
    {% trans "No orders found." %}
    - {% endif %} -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.orders.initTable(); - {% if form.errors %}$('#SearchModal').modal('show');{% endif %} -{% endblock onbodyload %} diff --git a/tests/django_oscar/oscar/dashboard/orders/shippingaddress_form.html b/tests/django_oscar/oscar/dashboard/orders/shippingaddress_form.html deleted file mode 100644 index 1cfbf5a..0000000 --- a/tests/django_oscar/oscar/dashboard/orders/shippingaddress_form.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% trans "Shipping address" %} | {% trans "Order" %} {{ order.number }} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans %} - Edit shipping address for order {{ order.number }} - {% endblocktrans %} -{% endblock %} -{% block content %} -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form style='horizontal' %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock content %} diff --git a/tests/django_oscar/oscar/dashboard/orders/statistics.html b/tests/django_oscar/oscar/dashboard/orders/statistics.html deleted file mode 100644 index 61bb9f1..0000000 --- a/tests/django_oscar/oscar/dashboard/orders/statistics.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% load django_tables2 %} -{% block body_class %}{{ block.super }} orders{% endblock %} -{% block title %} - {% trans "Order statistics" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    -

    - - {% trans "Filter" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - - - {% trans "Reset" %} - -
    -
    - - - - - - - - - - - - - - -
    - - {% trans "Summary" %} -
    {% trans "Total orders" %}{{ total_orders }}
    {% trans "Total lines" %}{{ total_lines }}
    {% trans "Total revenue" %}{{ total_revenue|currency }}
    - {% if order_status_breakdown %} - - - - - - - {% for dict in order_status_breakdown %} - - - - - {% endfor %} -
    - - {% trans "Order status breakdown" %} -
    {% trans "Status" %}{% trans "Frequency" %}
    - - {{ dict.status }} - - {{ dict.freq }}
    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/pages/delete.html b/tests/django_oscar/oscar/dashboard/pages/delete.html deleted file mode 100644 index 8b8863c..0000000 --- a/tests/django_oscar/oscar/dashboard/pages/delete.html +++ /dev/null @@ -1,55 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% blocktrans with title=object.title %} - Delete page '{{ title }}'? - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with title=object.title %} - Delete page '{{ title }}'? - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Delete page" %}

    -
    -
    - {% csrf_token %} - {{ form }} -

    - {% blocktrans with title=object.title %} - Delete page - {{ title }} - - are you sure? - {% endblocktrans %} -

    -
    - - {% trans "or" %} - {% trans "cancel" %} - . -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/pages/index.html b/tests/django_oscar/oscar/dashboard/pages/index.html deleted file mode 100644 index 479ac41..0000000 --- a/tests/django_oscar/oscar/dashboard/pages/index.html +++ /dev/null @@ -1,120 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load dashboard_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} pages{% endblock %} -{% block title %} - {% trans "Pages" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -

    - - {% trans "Search" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - - - {% trans "Reset" %} - -
    -
    -
    -

    - - {{ queryset_description }} -

    -
    - {% if flatpage_list %} -
    - {% csrf_token %} - - - - - - - - - - {% for page in flatpage_list %} - - - - - - {% endfor %} - -
    {% trans "Title" context "Page title" %}{% trans "URL" %}
    - - {{ page.title }} - - - - {{ page.url }} - - - -
    - {% include "oscar/dashboard/partials/pagination.html" %} -
    - {% else %} - - - - -
    {% trans "No pages found." %}
    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/pages/messages/saved.html b/tests/django_oscar/oscar/dashboard/pages/messages/saved.html deleted file mode 100644 index ffa4516..0000000 --- a/tests/django_oscar/oscar/dashboard/pages/messages/saved.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -

    - {% blocktrans with title=page.title %} - Page - {{ title }} - saved! - {% endblocktrans %} -

    -

    - - {% trans "View on site" %} - - - {% trans "Edit again" %} - -

    diff --git a/tests/django_oscar/oscar/dashboard/pages/update.html b/tests/django_oscar/oscar/dashboard/pages/update.html deleted file mode 100644 index 8126457..0000000 --- a/tests/django_oscar/oscar/dashboard/pages/update.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page pages{% endblock %} -{% block title %}{{ title }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    -

    {{ title }}

    -
    -
    - {% csrf_token %} - {% include 'oscar/dashboard/partials/form_fields.html' with form=form %} -
    - - {% trans "or" %} - {% trans "cancel" %} - . -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partials/advanced_search_modal.html b/tests/django_oscar/oscar/dashboard/partials/advanced_search_modal.html deleted file mode 100644 index eabd295..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/advanced_search_modal.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n %} - diff --git a/tests/django_oscar/oscar/dashboard/partials/alert_messages.html b/tests/django_oscar/oscar/dashboard/partials/alert_messages.html deleted file mode 100644 index 9e95aec..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/alert_messages.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load string_filters %} -{% comment %} -Use message tags to control these alerts. Available tags include: -- safe: allow HTML in the message -- block: for longer messages - this adds extra padding -- noicon: don't show an icon -- error/success/info - these change the connotation of the alert -{% endcomment %} -
    - {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} -
    diff --git a/tests/django_oscar/oscar/dashboard/partials/form.html b/tests/django_oscar/oscar/dashboard/partials/form.html deleted file mode 100644 index 8338f21..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/form.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n %} -
    - {% if not method == "get" %} - {% csrf_token %} - {% endif %} - {% include 'oscar/dashboard/partials/form_fields.html' %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - - . -
    -
    diff --git a/tests/django_oscar/oscar/dashboard/partials/form_field.html b/tests/django_oscar/oscar/dashboard/partials/form_field.html deleted file mode 100644 index 042c923..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/form_field.html +++ /dev/null @@ -1,60 +0,0 @@ -{% load form_tags %} -{% load widget_tweaks %} -{% if field.is_hidden %} - {{ field }} -{% else %} - {% comment %} - Make the field widget type available to templates so we can mark-up - checkbox and radio inputs differently to other widgets. -{% endcomment %} -{% annotate_form_field field %} -{% block control_group %} -
    - {% block label %} - {% if not nolabel and field.widget_type != 'checkbox' %} - - {% endif %} - {% endblock %} - {% block controls %} -
    - {% block widget %} - {% if field.widget_type == 'checkbox' %} - {% render_field field class+="form-check-input" %} - - {% elif field.widget_type == 'radioselect' %} - {% render_field field class+="form-check-input position-static controls mt-2" %} - {% else %} - {% render_field field class+="form-control" %} - {% endif %} - {% endblock %} - {% block errors %} - {% for error in field.errors %} - - - {{ error }} - - {% endfor %} - {% endblock %} - {% block help_text %} - {% if field.help_text %} - - {# We allow HTML within form help fields #} - {{ field.help_text|safe }} - - {% endif %} - {% endblock %} -
    - {% endblock %} -
    -{% endblock %} -{% endif %} diff --git a/tests/django_oscar/oscar/dashboard/partials/form_fields.html b/tests/django_oscar/oscar/dashboard/partials/form_fields.html deleted file mode 100644 index afa6291..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/form_fields.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} -{% if form.is_bound and not form.is_valid %} -
    - {% trans "Oops! We found some errors" %} - - {% trans "please check the error messages below and try again" %} -
    -{% endif %} -{% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - - - {{ error }} - -
    - {% endfor %} -{% endif %} -{% for field in form %} - {% include 'oscar/dashboard/partials/form_field.html' with field=field style=style %} -{% endfor %} diff --git a/tests/django_oscar/oscar/dashboard/partials/form_fields_inline.html b/tests/django_oscar/oscar/dashboard/partials/form_fields_inline.html deleted file mode 100644 index 26d1d83..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/form_fields_inline.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load widget_tweaks %} -{{ form.non_field_errors }} -{% for field in form %} - {% if field.is_hidden %} - {{ field }} - {% else %} -
    - {{ field.label_tag }} - {% render_field field class+='form-control' %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {# No help text as it wraps #} -
    - {% endif %} -{% endfor %} diff --git a/tests/django_oscar/oscar/dashboard/partials/pagination.html b/tests/django_oscar/oscar/dashboard/partials/pagination.html deleted file mode 100644 index 8931ce0..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/pagination.html +++ /dev/null @@ -1,31 +0,0 @@ -{% load display_tags %} -{% load i18n %} -{% if paginator.num_pages > 1 %} - -{% endif %} diff --git a/tests/django_oscar/oscar/dashboard/partials/product_images.html b/tests/django_oscar/oscar/dashboard/partials/product_images.html deleted file mode 100644 index d8a0377..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/product_images.html +++ /dev/null @@ -1,37 +0,0 @@ -{% load i18n %} -
  • - {% for field in form %} - {% if field.is_hidden %} - {{ field }} - {% elif "original" in field.id_for_label %} -
    - {{ field }} -
    - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - - - {% trans "Re-order" context "Change the sequence order" %} - -
    - {% else %} - {{ field.label_tag }} - {{ field }} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {% endif %} - {% endfor %} - {{ form.non_field_errors }} -
  • diff --git a/tests/django_oscar/oscar/dashboard/partials/stock_info.html b/tests/django_oscar/oscar/dashboard/partials/stock_info.html deleted file mode 100644 index e186252..0000000 --- a/tests/django_oscar/oscar/dashboard/partials/stock_info.html +++ /dev/null @@ -1,13 +0,0 @@ -
    - {{ field.label_tag }} -
    - {{ field }} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} -
    -
    diff --git a/tests/django_oscar/oscar/dashboard/partners/messages/user_unlinked.html b/tests/django_oscar/oscar/dashboard/partners/messages/user_unlinked.html deleted file mode 100644 index 2e1f4b3..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/messages/user_unlinked.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load i18n %} -{% blocktrans %} - User {{ user_name }} was unlinked from {{ partner_name }}. -{% endblocktrans %} - - {% trans 'Undo' %}. - diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_delete.html b/tests/django_oscar/oscar/dashboard/partners/partner_delete.html deleted file mode 100644 index 8b0c794..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_delete.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% trans "Delete partner" %} | {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ partner.name }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -

    - {% trans "Are you sure you want to delete this partner?" %} -

    -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_form.html b/tests/django_oscar/oscar/dashboard/partners/partner_form.html deleted file mode 100644 index a2bb5bc..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_form.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load category_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page partner{% endblock %} -{% block title %} - {{ title }} | {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% include 'oscar/dashboard/partials/form.html' with form=form %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_list.html b/tests/django_oscar/oscar/dashboard/partners/partner_list.html deleted file mode 100644 index 0491fdf..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_list.html +++ /dev/null @@ -1,139 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load sorting_tags %} -{% load i18n %} -{% block title %} - {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -
    - {% include 'oscar/dashboard/partials/form_fields_inline.html' with form=form %} - - {% if is_filtered %} - - {% trans "Reset" %} - - {% endif %} -
    -
    -
    - {% csrf_token %} - - - {% if partners %} - - - - - - - {% for partner in partners %} - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - - {{ queryset_description }} -
    {% anchor 'name' _('Name') %}{% trans 'Users' %}{% trans 'Addresses' %} 
    - - {{ partner.name }} - - - {% with users=partner.users.all %} - {% if users %} - - {% else %} - {% trans 'No users associated.' %} - {% endif %} - {% endwith %} - - {% with addresses=partner.addresses.all %} - {% if addresses %} -
      - {% for address in addresses %} -
    • - {{ address.summary }} -
    • - {% endfor %} -
    - {% else %} - {% trans 'No address associated.' %} - {% endif %} - {% endwith %} -
    - -
    {% trans "No partners found." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_manage.html b/tests/django_oscar/oscar/dashboard/partners/partner_manage.html deleted file mode 100644 index 49b4996..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_manage.html +++ /dev/null @@ -1,86 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page partners{% endblock %} -{% block title %} - {{ partner.name }} | {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ partner.name }}{% endblock %} -{% block dashboard_content %} -
    -
    -
    -

    {{ title }}

    -
    - {% include "oscar/dashboard/partials/form.html" with form=form class="card card-body" %} -
    -
    -
    -
    -

    {% trans "Users" %}

    - {% if users %} - - - - - - - - - - - {% for user in users %} - - - - - - - {% endfor %} - -
    {% trans 'Email' %}{% trans 'First name' %}{% trans 'Last name' %} 
    - - {{ user.email }} - - {{ user.first_name|default:"-" }}{{ user.last_name|default:"-" }} -
    - {% csrf_token %} - -
    -
    - {% else %} -

    - {% trans "No users linked." %} -

    - {% endif %} - -
    - {% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_user_form.html b/tests/django_oscar/oscar/dashboard/partners/partner_user_form.html deleted file mode 100644 index e8d999c..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_user_form.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "oscar/dashboard/layout.html" %} -{% load category_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page partner{% endblock %} -{% block title %} - {{ title }} | {{ partner.name }} | {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} - {% include 'oscar/dashboard/partials/form_fields.html' with form=form %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - - . -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_user_list.html b/tests/django_oscar/oscar/dashboard/partners/partner_user_list.html deleted file mode 100644 index 9627d17..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_user_list.html +++ /dev/null @@ -1,87 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% if users %} - - - - - - - - - - - {% for user in users %} - - - - - - - {% endfor %} - -
    {% trans 'Email' %}{% trans 'First name' %}{% trans 'Last name' %} 
    - - {{ user.email }} - - {{ user.first_name|default:"-" }}{{ user.last_name|default:"-" }} -
    - {% csrf_token %} - -
    -
    - {% else %} -

    - {% trans "No users linked." %} -

    - {% endif %} - {% include "oscar/dashboard/partials/pagination.html" %} -

    {% trans "Update details" %}

    - {% include 'oscar/dashboard/partials/form.html' %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/partners/partner_user_select.html b/tests/django_oscar/oscar/dashboard/partners/partner_user_select.html deleted file mode 100644 index fba9727..0000000 --- a/tests/django_oscar/oscar/dashboard/partners/partner_user_select.html +++ /dev/null @@ -1,100 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% trans "Link an existing user" %} | {{ partner.name }} | {% trans "Partners" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Link an existing user" %} -{% endblock %} -{% block dashboard_content %} - {% block users_form %} -
    -
    - {% include 'oscar/dashboard/partials/form_fields_inline.html' with form=form %} - - {% if form.is_bound %} - - {% trans "Reset" %} - - {% endif %} -
    - {% trans "A partial email address can be entered (eg '@example.com') to match multiple addresses." %} -
    -
    -
    - {% endblock %} - {% if form.is_bound %} - {% if users %} - {% with partner_users=partner.users.all %} - - {% block users_header %} - - - - - - - - - {% endblock %} - - {% for user in users %} - {% block users_row %} - - - - - - - {% endblock %} - {% endfor %} - -
    {% trans 'Email' %}{% trans 'First name' %}{% trans 'Last name' %} 
    {{ user.email }}{{ user.first_name|default:"-" }}{{ user.last_name|default:"-" }} - {% if user in partner_users %} - {% blocktrans with name=partner.name %} - User is already linked to {{ name }}. - {% endblocktrans %} - {% else %} -
    - {% csrf_token %} - -
    - {% endif %} -
    - {% endwith %} - {% include "oscar/dashboard/partials/pagination.html" %} - {% else %} - {% trans "No users found." %} - {% endif %} - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/ranges/messages/range_products_saved.html b/tests/django_oscar/oscar/dashboard/ranges/messages/range_products_saved.html deleted file mode 100644 index 6e335b2..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/messages/range_products_saved.html +++ /dev/null @@ -1,55 +0,0 @@ -{% load i18n %} -{% blocktrans with range_name=range.name filename=upload.filepath %} -

    - File - {{ filename }} - processed. -

    -{% endblocktrans %} -
      - {% if upload.num_new_skus %} -
    • - {% blocktrans count n=upload.num_new_skus %} - {{ n }} - product added - {% plural %} - {{ n }} - products added - {% endblocktrans %} -
    • - {% endif %} - {% if upload.num_duplicate_skus %} -
    • - {% blocktrans count n=upload.num_duplicate_skus %} - There was - {{ n }} - duplicate product in the file - {% plural %} - There were - {{ n }} - duplicate products in the file - {% endblocktrans %} -
    • - {% endif %} - {% if upload.num_unknown_skus %} -
    • - {% blocktrans count n=upload.num_unknown_skus %} - There was - {{ n }} - product in the file that couldn't be found in the catalogue - {% plural %} - There were - {{ n }} - products in the file that couldn't be found in the catalogue - {% endblocktrans %} -
    • - {% endif %} -
    -

    - - {% trans "Edit range metadata" %} - - - {% trans "Return to ranges homepage" %} - -

    diff --git a/tests/django_oscar/oscar/dashboard/ranges/messages/range_saved.html b/tests/django_oscar/oscar/dashboard/ranges/messages/range_saved.html deleted file mode 100644 index 60397e9..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/messages/range_saved.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -{% blocktrans with name=range.name %} -

    - Range - {{ name }} - saved. -

    -{% endblocktrans %} -

    - - {% trans "Edit again" %} - - - {% trans "Edit included products" %} - -

    diff --git a/tests/django_oscar/oscar/dashboard/ranges/range_delete.html b/tests/django_oscar/oscar/dashboard/ranges/range_delete.html deleted file mode 100644 index 2cc9f0e..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/range_delete.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% blocktrans with name=range.name %} - Delete range '{{ name }}'? - {% endblocktrans %} - | {% trans "Ranges" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ range.name }}{% endblock %} -{% block dashboard_content %} -
    -

    - {% trans "Are you sure you want to delete this range?" %} -

    - {% csrf_token %} -
    - - {% trans "or" %} - {% trans "cancel" %} -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/ranges/range_form.html b/tests/django_oscar/oscar/dashboard/ranges/range_form.html deleted file mode 100644 index d3cfebf..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/range_form.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {{ title }} | {% trans "Ranges" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% if range %} - {{ range.name }} - {% else %} - {% trans "Create new range" %} - {% endif %} -{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% block form_actions %} -
    - - {% trans "or" %} - {# This is an input so we distinguish between which button was pressed #} - - {% trans "or" %} - {% trans "cancel" %} -
    - {% endblock form_actions %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/ranges/range_list.html b/tests/django_oscar/oscar/dashboard/ranges/range_list.html deleted file mode 100644 index 926dc8c..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/range_list.html +++ /dev/null @@ -1,113 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% trans "Ranges" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - - - {% if ranges %} - - - - - - - - - - - {% for range in ranges %} - - - {% if range.includes_all_products %} - - {% else %} - - {% endif %} - {% if range.is_public %} - - {% else %} - - {% endif %} - - - - {% endfor %} - - {% else %} - - - - {% endif %} -
    - - {% trans "Ranges" %} -
    {% trans "Name" %}{% trans "Num products" %}{% trans "Is public?" %}{% trans "Date created" %}
    - {% if range.is_editable %} - - {{ range.name }} - - {% else %} - {{ range.name }} - {% endif %} - {% trans 'All' %}{{ range.num_products|default:"-" }}{% trans "Yes" %}{% trans "No" %}{{ range.date_created }} -
    - -
    -
    {% trans "No ranges found." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/ranges/range_product_list.html b/tests/django_oscar/oscar/dashboard/ranges/range_product_list.html deleted file mode 100644 index 173bcca..0000000 --- a/tests/django_oscar/oscar/dashboard/ranges/range_product_list.html +++ /dev/null @@ -1,169 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% blocktrans with name=range.name %} - Products in range '{{ name }}' - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {{ range.name }}: {% trans "products" %} -{% endblock %} -{% block dashboard_content %} - {% if range.includes_all_products %} - {% trans "This range contains all products. To add products manually, please unselect the 'Includes All Products' option on the edit range page." %} - {% else %} -
    -

    {% trans "Add products" %}

    -
    -
    -
    - {% csrf_token %} - - {% include 'oscar/dashboard/partials/form_fields.html' with form=form %} -
    - -
    -
    - {% with uploads=range.file_uploads.all %} - {% if uploads %} -
    -

    {% trans "Upload history" %}

    -
    - - - - - - - - - - - - {% for upload in uploads %} - - - - - - - - {% endfor %} - -
    {% trans "Filename" %}{% trans "New products" %}{% trans "Duplicate products" %}{% trans "Unknown products" %}{% trans "Date uploaded" %}
    {{ upload.filepath }}{{ upload.num_new_skus }}{{ upload.num_duplicate_skus }}{{ upload.num_unknown_skus }}{{ upload.date_uploaded }}
    - {% endif %} - {% endwith %} - {% if products %} -
    - {% csrf_token %} - - - - - - - - - - - - - {% for product in products %} - - - - - - - - {% endfor %} - -
    -

    {% trans "Products in range" %}

    -
    - - -
    -
    {% trans "UPC" %}{% trans "Title" context "Product title" %}{% trans "Is product discountable?" %}
    - - {{ product.upc|default:"-" }} - - {{ product.get_title }} - - - {% if product.get_is_discountable %} - {% trans "Yes" %} - {% else %} - {% trans "No" %} - {% endif %} - - - {% trans "Remove" %} - - {% if range.is_reorderable %} - - - {% trans "Re-order" context "Change the sequence order" %} - - {% endif %} -
    - {% include "oscar/dashboard/partials/pagination.html" %} -
    - {% else %} - - - - - -
    - {% trans "Products in Range" %} -
    {% trans "No products found." %}
    - {% endif %} -
    - {% endif %} - -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - oscar.dashboard.ranges.init(); - oscar.dashboard.reordering.init({ - wrapper: '.product_list', - submit_url: '{% url 'dashboard:range-reorder' pk=range.id %}' - }); -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/index.html b/tests/django_oscar/oscar/dashboard/reports/index.html deleted file mode 100644 index 98837c6..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/index.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} reports{% endblock %} -{% block title %} - {% trans "Reports" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Reporting dashboard" %} -{% endblock %} -{% block dashboard_content %} -
    -

    - - {% trans "Reporting dashboard" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - - {# data-loading-text is deliberately not used here so that the button doesn't stay disabled after a CSV download has started #} - - -
    -
    - {% if description %} -
    -

    - - {{ description }} -

    -
    - {% endif %} - {% block report %}{% endblock %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/offer_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/offer_report.html deleted file mode 100644 index b694cad..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/offer_report.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - {% if objects %} - - - - - {% for offer_discount in objects %} - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    {% trans "Offer" %}{% trans "Total discount" %}
    - - {{ offer_discount.offer.name }} - - {{ offer_discount.total_discount|currency }}
    {% trans "No results found." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/open_basket_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/open_basket_report.html deleted file mode 100644 index 0a34649..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/open_basket_report.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load datetime_filters %} -{% load i18n %} -{% block report %} - - - - - - - - - - {% for basket in objects %} - - - - {% else %} - - - {% endif %} - - - - - - - {% endfor %} -
    {% trans "Email" %}{% trans "Name" %}{% trans "Num lines" %}{% trans "Num items" %}{% trans "Date of creation" %}{% trans "Time since creation" %}
    - {% if basket.owner %} - - {{ basket.owner.email }} - - {% else %} - - - {% endif %} - - {% if basket.owner %} - - {{ basket.owner.get_full_name|default:"-" }} - - {{ basket.num_lines }}{{ basket.num_items }}{{ basket.date_created }}{{ basket.time_since_creation|timedelta }}
    -{% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/order_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/order_report.html deleted file mode 100644 index 30ddefc..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/order_report.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - {% if objects %} - - - - - - - - - {% for order in objects %} - - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    {% trans "Order number" %}{% trans "Name" %}{% trans "Email" %}{% trans "Total incl. tax" %}{% trans "Date placed" %}
    - - {{ order.number }} - - - {% if order.user %} - - {{ order.user|default:"-" }} - - {% else %} - - - {% endif %} - {{ order.email }}{{ order.total_incl_tax|currency:order.currency }}{{ order.date_placed }} - - {% trans "View" %} - -
    {% trans "No results found." %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/product_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/product_report.html deleted file mode 100644 index 5a9c957..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/product_report.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - - - - - - - {% for product in objects %} - - - - - - - {% endfor %} -
    {% trans "Product" %}{% trans "Views" %}{% trans "Basket additions" %}{% trans "Purchases" %}
    - - {{ product.product }} - - {{ product.num_views }}{{ product.num_basket_additions }}{{ product.num_purchases }}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/submitted_basket_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/submitted_basket_report.html deleted file mode 100644 index 3d316ec..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/submitted_basket_report.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - - - - - - - - - {% for basket in objects %} - - - - - - - - - {% endfor %} -
    {% trans "Email" %}{% trans "Name" %}{% trans "Num lines" %}{% trans "Num items" %}{% trans "Date created" %}{% trans "Time between creation and submission" %}
    - {% if basket.owner %} - - {{ basket.owner.email }} - - {% else %} - - - {% endif %} - - {% if basket.owner %} - - {{ basket.owner.get_full_name|default:"-" }} - - {% else %} - - - {% endif %} - {{ basket.num_lines }}{{ basket.num_items }}{{ basket.date_created }}{{ basket.time_before_submit }}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/user_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/user_report.html deleted file mode 100644 index b515104..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/user_report.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - - - - - - - - - - - - - {% for user in objects %} - - - - - - - - - - - - - {% endfor %} -
    {% trans "Email" %}{% trans "Name" %}{% trans "Date registered" %}{% trans "Product views" %}{% trans "Basket additions" %}{% trans "Orders" %}{% trans "Order lines" %}{% trans "Order items" %}{% trans "Total spent" %}{% trans "Date of last order" %}
    - - {{ user.user.email }} - - - - {{ user.user.get_full_name|default:"-" }} - - {{ user.user.date_joined }}{{ user.num_product_views }}{{ user.num_basket_additions }}{{ user.num_orders }}{{ user.num_order_lines }}{{ user.num_order_items }}{{ user.total_spent|currency }}{{ user.date_last_order|default:"-" }}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reports/partials/voucher_report.html b/tests/django_oscar/oscar/dashboard/reports/partials/voucher_report.html deleted file mode 100644 index fef63a1..0000000 --- a/tests/django_oscar/oscar/dashboard/reports/partials/voucher_report.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends 'oscar/dashboard/reports/index.html' %} -{% load currency_filters %} -{% load i18n %} -{% block report %} - - {% if objects %} - - - - - - - {% for voucher in objects %} - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    {% trans "Voucher code" %}{% trans "Added to a basket" %}{% trans "Used in an order" %}{% trans "Total discount" %}
    - - {{ voucher.code }} - - {{ voucher.num_basket_additions }}{{ voucher.num_orders }}{{ voucher.total_discount|currency }}
    {% trans "No vouchers were used in this period" %}
    - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/reviews/review_delete.html b/tests/django_oscar/oscar/dashboard/reviews/review_delete.html deleted file mode 100644 index 202cfb0..0000000 --- a/tests/django_oscar/oscar/dashboard/reviews/review_delete.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% blocktrans with title=review.title|truncatechars:30 %} - Delete review '{{ title }}'? - {% endblocktrans %} - | {% trans "Reviews" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with title=review.title|truncatechars:30 %} - Delete review "{{ title }}"? - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Review" %}

    -
    -
    - {% csrf_token %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {% trans "Title" context "Product review title" %}{{ review.title }}
    {% trans "Product" %}{{ review.product.title }}
    {% trans "User" %}{{ review.user.reviewer_name|default:"-" }}
    {% trans "Score" %}{{ review.score|floatformat:1 }}
    {% trans "Votes" %}{{ review.total_votes }}
    {% trans "Status" %}{{ review.status }}
    {% trans "Date created" %}{{ review.date_created }}
    -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/reviews/review_list.html b/tests/django_oscar/oscar/dashboard/reviews/review_list.html deleted file mode 100644 index f471de7..0000000 --- a/tests/django_oscar/oscar/dashboard/reviews/review_list.html +++ /dev/null @@ -1,166 +0,0 @@ -{% extends "oscar/dashboard/layout.html" %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% block body_class %}{{ block.super }} reviews{% endblock %} -{% block title %} - {% trans "Reviews" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} -
    -

    - - {% trans "Review Search" %} -

    -
    -
    -
    - {% include 'oscar/dashboard/partials/form_fields_inline.html' with form=form %} - -
    -
    - {% if review_list %} -
    - {% csrf_token %} - - - - - - - - - - - - - - {% for review in review_list %} - - - - - {% else %} - {% trans "[Product deleted]" %} - {% endif %} - - - - - - - - {% endfor %} -
    -

    - - {{ description }} -

    -
    -
    - {% trans "Update status of selected reviews" %} - {{ review_form.status }} - - -
    -
    -
    {% trans "Title" context "Review title" %}{% trans "Product" %}{% trans "User" %}{% anchor 'score' _("Score") %}{% anchor 'total_votes' _("Votes") %}{% trans "Status" %}{% anchor 'date_created' _("Date created") %}
    - - - - {{ review.title }} - - - {% if review.product %} - - {{ review.product.title }} - - - {% if not review.is_anonymous %} - - {{ review.reviewer_name }} - - {% else %} - {{ review.name }} - {% endif %} - {{ review.score|floatformat:1 }} / {{ 5.0|floatformat:1 }}{{ review.total_votes }} - {% if review.status == 1 %} - - {% elif review.status == 2 %} - - {% else %} - - {% endif %} - {{ review.get_status_display }} - - {{ review.date_created }} -
    - -
    -
    - {% include "oscar/dashboard/partials/pagination.html" %} -
    - {% else %} - - - - - -
    - {{ description }} -
    {% trans "No reviews found." %}
    - {% endif %} - {% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/reviews/review_update.html b/tests/django_oscar/oscar/dashboard/reviews/review_update.html deleted file mode 100644 index 87dfd10..0000000 --- a/tests/django_oscar/oscar/dashboard/reviews/review_update.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% trans "Update review" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with review_id=review.id %} - Review #{{ review_id }} - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} -
    -

    {% trans "Review information" %}

    -
    -
    -
    - {{ form.first }} - {% for field in form %} - {# display title (first) and body (last) as full lines #} - {% if forloop.counter < 3 %} -
    - {% if field.is_hidden %} - {{ field }} - {% else %} - {{ field.label_tag }} -
    - {{ field }} - {% for error in field.errors %} - {{ error|escape }} - {% endfor %} - {% if field.help_text %} - - {{ field.help_text }} - - {% endif %} -
    - {% endif %} -
    - {% else %} -
    - {% if field.is_hidden %} - {{ field }} - {% else %} - - {{ field.label_tag }} - {{ field }} - {% for error in field.errors %} -
      -
    • - {{ error|escape }} -
    • -
    - {% endfor %} -
    - {% endif %} -
    - {% endif %} - {% endfor %} -
    -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/band_created.html b/tests/django_oscar/oscar/dashboard/shipping/messages/band_created.html deleted file mode 100644 index fd01709..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/band_created.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} -{% blocktrans with name=band.method.name %} -

    - A weight band has been added to the - {{ name }} - shipping method. -

    -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/band_deleted.html b/tests/django_oscar/oscar/dashboard/shipping/messages/band_deleted.html deleted file mode 100644 index c9c41e6..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/band_deleted.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load i18n %} -{% blocktrans with name=band.method.name %} -

    - Weight band deleted from the - {{ name }} - shipping method - {% endblocktrans %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/band_updated.html b/tests/django_oscar/oscar/dashboard/shipping/messages/band_updated.html deleted file mode 100644 index 7e7a6e4..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/band_updated.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load i18n %} -

    - {% trans "Weight band updated" %} -

    diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/method_created.html b/tests/django_oscar/oscar/dashboard/shipping/messages/method_created.html deleted file mode 100644 index ddf4fdf..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/method_created.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} -{% blocktrans with name=method.name %} -

    - A shipping method - {{ name }} - has been created. -

    -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/method_deleted.html b/tests/django_oscar/oscar/dashboard/shipping/messages/method_deleted.html deleted file mode 100644 index 594f808..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/method_deleted.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} -{% blocktrans with name=method.name %} -

    - The - {{ name }} - shipping method has been deleted. -

    -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/messages/method_updated.html b/tests/django_oscar/oscar/dashboard/shipping/messages/method_updated.html deleted file mode 100644 index b0dac56..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/messages/method_updated.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} -{% blocktrans with name=method.name %} -

    - The - {{ name }} - shipping method has been updated. -

    -{% endblocktrans %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_band_delete.html b/tests/django_oscar/oscar/dashboard/shipping/weight_band_delete.html deleted file mode 100644 index 6825704..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_band_delete.html +++ /dev/null @@ -1,62 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block title %} - {% trans "Delete weight band?" %} | - {{ band.method.name }} | - {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Delete weight band?" %} -{% endblock %} -{% block dashboard_content %} - - - - - - - - - - - - - -
    {% trans "Weight range (kg)" %}{% trans "Charge" %}
    {{ band.weight_from|floatformat:3 }} - {{ band.weight_to|floatformat:3 }}{{ band.charge|currency }}
    -
    -

    - {% trans "Are you sure you want to delete this weight band method?" %} -

    - {% csrf_token %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_band_form.html b/tests/django_oscar/oscar/dashboard/shipping/weight_band_form.html deleted file mode 100644 index 9332fb7..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_band_form.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block title %} - {% trans "Edit weight band" %} | - {{ band.method.name }} | - {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Edit weight band" %} -{% endblock %} -{% block dashboard_content %} -
    -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% block form_actions %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    - {% endblock form_actions %} -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_based_delete.html b/tests/django_oscar/oscar/dashboard/shipping/weight_based_delete.html deleted file mode 100644 index 6846e5d..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_based_delete.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block title %} - {% blocktrans with name=method.name %} - Delete shipping method '{{ name }}'? - {% endblocktrans %} - | {% trans "Shipping methods" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ method.name }}{% endblock %} -{% block dashboard_content %} -
    -

    - {% trans "Are you sure you want to delete this shipping method?" %} -

    - {% csrf_token %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_based_detail.html b/tests/django_oscar/oscar/dashboard/shipping/weight_based_detail.html deleted file mode 100644 index f7a1bcf..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_based_detail.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block title %}{{ method.name }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ method.name }}{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Shipping method" %}

    - - - - - - - - - - - {% with countries=method.countries.all %} - {% if countries %} - - - - - {% endif %} - {% endwith %} - - - - - -
    {% trans "Name" %}{{ method.name }}
    {% trans "Description" %}{{ method.description|safe|default:"-" }}
    {% trans "Applies to countries" %}{{ countries|join:", " }}
    {% trans "Default product weight (kg)" %}{{ method.default_weight }}
    -

    - - {% trans 'Edit shipping method' %} - - - {% trans 'Delete shipping method' %} - -

    -

    {% trans "Weight bands" %}

    - {% if method.bands.all.count %} - - - - - - - - - - {% for band in method.bands.all %} - - - - - - {% endfor %} - -
    {% trans "Weight range (kg)" %}{% trans "Charge" %}
    {{ band.weight_from|floatformat:3 }} - {{ band.weight_to|floatformat:3 }}{{ band.charge|currency }} - - {% trans "Edit" %} - - - {% trans "Delete" %} - -
    - {% else %} -

    - {% trans "No weight bands have been added yet." %} -

    - {% endif %} -

    {% trans "Add a new weight band" %}

    -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_based_form.html b/tests/django_oscar/oscar/dashboard/shipping/weight_based_form.html deleted file mode 100644 index 44f7e4d..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_based_form.html +++ /dev/null @@ -1,61 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block title %} - {% if method %} - {{ method.name }} - {% else %} - {% trans "Create a new shipping method" %} - {% endif %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% if method %} - {{ method.name }} - {% else %} - {% trans "Create a new shipping method" %} - {% endif %} -{% endblock %} -{% block dashboard_content %} -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% block form_actions %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    - {% endblock form_actions %} -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/shipping/weight_based_list.html b/tests/django_oscar/oscar/dashboard/shipping/weight_based_list.html deleted file mode 100644 index dedb4d7..0000000 --- a/tests/django_oscar/oscar/dashboard/shipping/weight_based_list.html +++ /dev/null @@ -1,76 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block title %} - {% trans "Shipping methods" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - - - {% if methods %} - - - - - - - - - - {% for method in methods %} - - - - - - - {% endfor %} - - {% else %} - - - - {% endif %} -
    - - {% trans "Shipping methods" %} -
    {% trans "Name" %}{% trans "Number of weight bands" %}{% trans "Default weight (kg)" %}
    - - {{ method.name }} - - {{ method.num_bands }}{{ method.default_weight }} - - {% trans "View" %} - - - {% trans "Edit" %} - - - {% trans "Delete" %} - -
    {% trans "No shipping methods found." %}
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/table.html b/tests/django_oscar/oscar/dashboard/table.html deleted file mode 100644 index a4a850e..0000000 --- a/tests/django_oscar/oscar/dashboard/table.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'django_tables2/table.html' %} -{% load django_tables2 %} -{% load i18n %} -{% block table.thead %} - - {% block table.caption %} -

    - {% if table.icon %}{% endif %} - {{ table.get_caption_display }} -

    - {% endblock %} - - - - {% for column in table.columns %} - {% if column.orderable %} - - - {{ column.header }} - - - - {% else %} - {{ column.header }} - {% endif %} - {% endfor %} - - -{% endblock table.thead %} -{% block pagination %} - {% with page_obj=table.page paginator=table.paginator %} - {% include "oscar/dashboard/partials/pagination.html" %} - {% endwith %} -{% endblock pagination %} diff --git a/tests/django_oscar/oscar/dashboard/users/alerts/delete.html b/tests/django_oscar/oscar/dashboard/users/alerts/delete.html deleted file mode 100644 index c5489dd..0000000 --- a/tests/django_oscar/oscar/dashboard/users/alerts/delete.html +++ /dev/null @@ -1,60 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page users{% endblock %} -{% block title %} - {% blocktrans with id=alert.id %} - Alert #{{ id }} - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with id=alert.id %} - Delete alert #{{ id }}? - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -

    - {% blocktrans with id=alert.id %} - Product alert #{{ id }} - {% endblocktrans %} -

    -
    -
    - {% include 'oscar/dashboard/users/alerts/partials/alert.html' %} -
    - {% csrf_token %} -
    -

    - {% trans "Are you sure that you want to delete this alert?" %} -

    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/users/alerts/list.html b/tests/django_oscar/oscar/dashboard/users/alerts/list.html deleted file mode 100644 index 11425e4..0000000 --- a/tests/django_oscar/oscar/dashboard/users/alerts/list.html +++ /dev/null @@ -1,112 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% load currency_filters %} -{% block body_class %}{{ block.super }} users{% endblock %} -{% block title %} - {% trans "Product alerts" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Product alerts" %} -{% endblock %} -{% block dashboard_content %} -
    -

    - - {% trans "Search product alerts" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - - {% trans "or" %} - - {% trans "reset" %} - -
    -
    -
    -

    - - {{ queryset_description }} -

    -
    - {% if alerts %} - - - - - - - - - - {% for alert in alerts %} - - - - - - - - - {% endfor %} -
    {% trans "Product" %}{% trans "User" %}{% trans "Status" %}{% trans "Date created" %}{% trans "Date alert sent" %}
    - - {{ alert.product }} - - - {% if alert.user %} - - {{ alert.user.email }} - - {% else %} - {{ alert.email }} {% trans "(Anonymous)" %} - {% endif %} - {{ alert.status }}{{ alert.date_created }}{{ alert.date_closed|default:"-" }} -
    - -
    -
    - {% include "oscar/dashboard/partials/pagination.html" %} - {% else %} - - - - -
    {% trans "No alerts found." %}
    - {% endif %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/users/alerts/partials/alert.html b/tests/django_oscar/oscar/dashboard/users/alerts/partials/alert.html deleted file mode 100644 index bd6e782..0000000 --- a/tests/django_oscar/oscar/dashboard/users/alerts/partials/alert.html +++ /dev/null @@ -1,48 +0,0 @@ -{% load i18n %} - - - - - - - - - - - - - - - - - - - {% if not alert.user %} - - - - - {% endif %} - {% if alert.is_cancelled %} - - - - - {% else %} - - - - - {% endif %} - -
    {% trans "Product" %} - - {{ alert.product }} - -
    {% trans "User" %} - {% if alert.user %} - {{ alert.user }} - {% else %} - {{ alert.email }} - {% endif %} -
    {% trans "Status" %}{{ alert.status }}
    {% trans "Date created" %}{{ alert.date_created }}
    {% trans "Date confirmed" %}{{ alert.date_confirmed|default:"-" }}
    {% trans "Date cancelled" %}{{ alert.date_cancelled }}
    {% trans "Date alert sent" %}{{ alert.date_closed|default:"-" }}
    diff --git a/tests/django_oscar/oscar/dashboard/users/alerts/update.html b/tests/django_oscar/oscar/dashboard/users/alerts/update.html deleted file mode 100644 index 97c1767..0000000 --- a/tests/django_oscar/oscar/dashboard/users/alerts/update.html +++ /dev/null @@ -1,55 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load i18n %} -{% block body_class %}{{ block.super }} users{% endblock %} -{% block title %} - {% blocktrans with id=alert.id %} - Update alert #{{ id }} - {% endblocktrans %} - | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with id=alert.id %} - Product alert #{{ id }} - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -

    - {% blocktrans with id=alert.id %} - Product alert #{{ id }} - {% endblocktrans %} -

    -
    -
    - {% csrf_token %} - {% include 'oscar/dashboard/partials/form_fields_inline.html' %} - - - {% trans "cancel" %} - -
    -
    -
    - {% include 'oscar/dashboard/users/alerts/partials/alert.html' %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/users/detail.html b/tests/django_oscar/oscar/dashboard/users/detail.html deleted file mode 100644 index a6b2ff7..0000000 --- a/tests/django_oscar/oscar/dashboard/users/detail.html +++ /dev/null @@ -1,274 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} users{% endblock %} -{% block title %}{{ customer.email }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ customer.email }}{% endblock %} -{% block dashboard_content %} -
    - {% block user_general_info %} -
    -
    -

    {% trans "General" %}

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% if customer.userrecord %} - {% with record=customer.userrecord %} - - - - - - - - - - - - - - - - - {% endwith %} - {% endif %} - - - - - {% if customer.email %} - - - - - {% endif %} -
    {% trans "Name" %}{{ customer.get_full_name|default:"-" }}
    {% trans "Email" %}{{ customer.email }}
    {% trans "Active" %}?{{ customer.is_active|yesno:_("Yes,No") }}
    {% trans "Superuser" %}?{{ customer.is_superuser|yesno:_("True,False") }}
    {% trans "Staff" %}?{{ customer.is_staff|yesno:_("True,False") }}
    {% trans "Last login" %}{{ customer.last_login }}
    {% trans "Date joined" %}{{ customer.date_joined }}
    {% trans "Products viewed" %}{{ record.num_product_views|default:0 }}
    {% trans "Number of orders" %}{{ record.num_orders|default:0 }}
    {% trans "Number of ordered items" %}{{ record.num_order_items|default:0 }}
    {% trans "Total spent" %}{{ record.total_spent|default:0|currency }}
    {% trans "Reviews written" %}{{ customer.reviews.count }}
    {% trans "Actions" %} -
    - {% csrf_token %} - -
    -
    -
    - {% endblock %} -
    -
    - {% block user_additional_info %} -
    - {% block tab_nav %} - - {% endblock %} -
    - {% block user_orders %} -
    - - - {% with orders=customer.orders.all %} - {% if orders %} - - - - - - - - - {% for order in orders %} - - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} - {% endwith %} -
    - {% trans "Orders" %} -
    - {% trans "Order Number" %} - - {% trans "Num items" %} - - {% trans "Total value" %} - - {% trans "Date placed" %} - - {% trans "Status" %} -
    - - {{ order.number }} - - - {{ order.num_items }} - - {{ order.basket_total_incl_tax|currency }} - - {{ order.date_placed|date }} - - {{ order.status|default:"-" }} - - - {% trans "View" %} - -
    - {% trans "This customer has not placed any orders yet." %} -
    -
    - {% endblock %} - {% block user_addresses %} -
    -

    - {% trans "Addresses" %} -

    -
    - {% for address in customer.addresses.all %} -
    -
    - {% for field in address.active_address_fields %} - {{ field }} -
    - {% endfor %} -
    -
    - {% if forloop.counter|divisibleby:4 %} -
    -
    - {% endif %} - {% empty %} -

    - {% trans "This customer has not saved any addresses." %} -

    - {% endfor %} -
    -
    - {% endblock %} - {% block user_reviews %} -
    - - - {% if customer.reviews.count %} - - - - - - - - {% for review in customer.reviews.all %} - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - {% trans "Reviews" %} -
    - {% trans "Product ID" %} - - {% trans "Score" %} - - {% trans "Title" context "Product review title" %} - - {% trans "Body" %} - - {% trans "Date created" %} -
    - {{ review.product_id }} - - {{ review.score }} - - {{ review.title }} - - {{ review.body }} - - {{ review.date_created }} -
    - {% trans "This customer has not written any reviews yet." %} -
    -
    - {% endblock %} -
    -
    -
    - {% endblock %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/users/index.html b/tests/django_oscar/oscar/dashboard/users/index.html deleted file mode 100644 index 9668651..0000000 --- a/tests/django_oscar/oscar/dashboard/users/index.html +++ /dev/null @@ -1,64 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load dashboard_tags %} -{% load i18n %} -{% load render_table from django_tables2 %} -{% block body_class %}{{ block.super }} users{% endblock %} -{% block title %} - {% trans "Customers" %} | {{ block.super }} -{% endblock %} -{% block header %} - -{% endblock header %} -{% block breadcrumbs %} - -{% endblock %} -{% block dashboard_content %} -
    -

    - - {% trans "Search" %} -

    -
    -
    -
    - {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} - - - {% trans "Reset" %} - -
    -
    - {% block users_list %} - {% if users.data %} -
    - {% csrf_token %} - {% render_table users %} -
    - {% else %} - - - - - -
    - {{ queryset_description }} -
    {% trans "No customers found." %}
    - {% endif %} - {% endblock %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/users/table.html b/tests/django_oscar/oscar/dashboard/users/table.html deleted file mode 100644 index 8a61e03..0000000 --- a/tests/django_oscar/oscar/dashboard/users/table.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends 'oscar/dashboard/table.html' %} -{% load i18n %} -{% block table.caption %} - {{ block.super }} -
    -
    - - {% trans "Bulk Actions" %} - -
    - - -
    -
    - - -
    - -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/dashboard/users/user_row_actions.html b/tests/django_oscar/oscar/dashboard/users/user_row_actions.html deleted file mode 100644 index e8e67f8..0000000 --- a/tests/django_oscar/oscar/dashboard/users/user_row_actions.html +++ /dev/null @@ -1,4 +0,0 @@ -{% load i18n %} - - {% trans "View" %} - diff --git a/tests/django_oscar/oscar/dashboard/users/user_row_checkbox.html b/tests/django_oscar/oscar/dashboard/users/user_row_checkbox.html deleted file mode 100644 index d271d81..0000000 --- a/tests/django_oscar/oscar/dashboard/users/user_row_checkbox.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_details_table.html b/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_details_table.html deleted file mode 100644 index e36185e..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_details_table.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load i18n %} - - - {% if voucher.voucher_set %} - - - - - {% endif %} - - - - - - - - - - - - - - - - - - - - - - - - - -
    {% trans "Voucher set" %} - - {{ voucher.voucher_set.name }} - -
    {% trans "Name" %}{{ voucher.name }}
    {% trans "Code" %}{{ voucher.code }}
    {% trans "Start datetime" %}{{ voucher.start_datetime }}
    {% trans "End datetime" %}{{ voucher.end_datetime }}
    {% trans "Usage" %}{{ voucher.get_usage_display }}
    {% trans "Number of offers" %}{{ voucher.offers.count }}
    diff --git a/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_set_details_table.html b/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_set_details_table.html deleted file mode 100644 index 3979110..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/partials/voucher_set_details_table.html +++ /dev/null @@ -1,50 +0,0 @@ -{% load i18n %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    {% trans "Voucher set" %}

    -
    {% trans "Title" %}{{ voucher_set.name }}
    {% trans "Start" %}{{ voucher_set.start_datetime }}
    {% trans "End" %}{{ voucher_set.end_datetime }}
    {% trans "Description" %}{{ voucher_set.description }}
    {% trans "Number of vouchers" %}{{ voucher_set.count }}
    {% trans "Number of offers" %}{{ voucher_set.vouchers.first.offers.count|default:0 }}
    {% trans "Status" %} - {% if voucher_set.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} -
    {% trans "Created" %}{{ voucher_set.date_created }}
    {% trans "Usage" %}{{ voucher_set.vouchers.first.get_usage_display }}
    diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_delete.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_delete.html deleted file mode 100644 index faa6ffe..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_delete.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% if not voucher.voucher_set %} - {% blocktrans with name=voucher.name %} - Delete voucher '{{ name }}'? - {% endblocktrans %} - | {% trans "Vouchers" %} | {{ block.super }} - {% else %} - {% blocktrans with code=voucher.code %} - Delete voucher '{{ code }}'? - {% endblocktrans %} - | {% trans "Vouchers" %} | {{ block.super }} - {% endif %} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% if not voucher.voucher_set %} - {% blocktrans with name=voucher.name %} - Delete voucher '{{ name }}'? - {% endblocktrans %} - {% else %} - {% blocktrans with code=voucher.code %} - Delete voucher '{{ code }}' from set? - {% endblocktrans %} - {% endif %} -{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Voucher details" %}

    -
    -
    - {% include "oscar/dashboard/vouchers/partials/voucher_details_table.html" %} -
    - {% csrf_token %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_detail.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_detail.html deleted file mode 100644 index 4ed388a..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_detail.html +++ /dev/null @@ -1,176 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block title %} - {{ voucher }} | {% trans "Vouchers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ voucher }}{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Voucher details" %}

    -
    - {% include "oscar/dashboard/vouchers/partials/voucher_details_table.html" %} -
    -

    {% trans "Attached offers" %}

    -
    - - {% if voucher.offers.exists %} - - - - - - - - - - - - - - {% for offer in voucher.offers.all %} - - - - - - - - - - - {% endfor %} - - {% else %} - - - - {% endif %} -
    {% trans "Offer name" %}{% trans "Start date" %}{% trans "End date" %}{% trans "Is available?" %}{% trans "Priority" %}{% trans "Incentive" %}{% trans "Condition" %}{% trans "Restrictions" %}
    - - {{ offer.name }} - - {{ offer.start_datetime|default:"-" }}{{ offer.end_datetime|default:"-" }} - {% if offer.is_available %} - {% trans "Yes" %} - {% else %} - {% trans "No" %} - {% endif %} - {{ offer.priority }}{{ offer.benefit.description|safe }}{{ offer.condition.description|safe }} - {% for restriction in offer.availability_restrictions %} - {% if not restriction.is_satisfied %} - - {% else %} - {{ restriction.description }} -
    - {% endif %} - {% endfor %} -
    {% trans "No offers are attached to this voucher." %}
    -
    -

    {% trans "Voucher performance" %}

    -
    - - - - - - - - - - - - - - - -
    {% trans "Number of basket additions" %}{{ voucher.num_basket_additions }}
    {% trans "Number of orders" %}{{ voucher.num_orders }}
    {% trans "Total discount" %}{{ voucher.total_discount|currency }}
    -
    -

    {% trans "Recent orders" %}

    -
    - - {% if not discounts %} - - - - {% else %} - - - - - - - - - - {% for discount in discounts %} - {% with order=discount.order %} - - - - - - - {% endwith %} - {% endfor %} - - {% endif %} -
    {% trans "No orders have been placed that use this voucher." %}
    {% trans "Order number" %} - {% trans "Order total" %} - - {% trans "Discount" %} - - {% trans "Date placed" %} -
    - - {{ order.number }} - - - {{ order.total_incl_tax|currency:order.currency }} - - {{ discount.amount|currency:order.currency }} - - {{ order.date_placed }} -
    - -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_form.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_form.html deleted file mode 100644 index f4cec65..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_form.html +++ /dev/null @@ -1,59 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {{ title }} | {% trans "Vouchers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    -

    - - {% if voucher %} - {% trans "Edit voucher" %} - {% else %} - {% trans "Create voucher" %} - {% endif %} -

    -
    -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% block form_actions %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    - {% endblock form_actions %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_list.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_list.html deleted file mode 100644 index 9c609fe..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_list.html +++ /dev/null @@ -1,207 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% load widget_tweaks %} -{% block title %} - {% trans "Vouchers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% block page_head %} -
    -

    - - {% trans "Search" %} -

    -
    -
    -
    - {% for field in form %} - {% if field.name in form.basic_fields %} - {% if field.is_hidden %} - {{ field }} - {% else %} -
    - {{ field.label_tag }} - {% render_field field class+='form-control' %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {# No help text as it wraps #} -
    - {% endif %} - {% else %} - - {% endif %} - {% endfor %} - - - {% trans "Advanced Search" %} - - - {% trans "Reset" %} - -
    - {# Search modal, if there are form errors the form is automatically openend #} - {% include "oscar/dashboard/partials/advanced_search_modal.html" with form=advanced_form style='horizontal' %} - {% if search_filters %} -
    - - {% for filter in search_filters %} - {{ filter }} - {% endfor %} -
    - {% endif %} -
    - {% endblock page_head %} - {% block voucher_table %} - - - {% if vouchers %} - {% block table_head %} - - - - - - - - - {% if form.is_bound and form.cleaned_data.in_set is not False %} - - {% endif %} - - - {% endblock table_head %} - {% for voucher in vouchers %} - {% block table_row %} - - - - - - - - - {% if form.is_bound and form.cleaned_data.in_set is not False %} - - {% endif %} - - - {% endblock table_row %} - {% endfor %} - {% else %} - - - - {% endif %} -
    - - {% if search_filters %} - {% trans "Voucher Search Results" %} - {% else %} - {% trans "All Vouchers" %} - {% endif %} -
    {% trans "Name" %}{% trans "Code" %}{% trans "Status" %}{% trans "Num offers" %}{% anchor 'num_basket_additions' _("Num baskets") %}{% anchor 'num_orders' _("Num orders") %}{% anchor 'date_created' _("Date created") %}{% trans "Set" %}
    - - {{ voucher.name }} - - - {{ voucher.code }} - - {% if voucher.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} - {{ voucher.offers.count }}{{ voucher.num_basket_additions }}{{ voucher.num_orders }}{{ voucher.date_created }} - {% if voucher.voucher_set.pk %} - - {{ voucher.voucher_set.name }} - - {% else %} - - - {% endif %} - - {% block row_actions %} - - {% endblock row_actions %} -
    {% trans "No vouchers found." %}
    - {% endblock voucher_table %} - {% include "oscar/dashboard/partials/pagination.html" %} -{% endblock dashboard_content %} -{% block onbodyload %} - {{ block.super }} - {% if advanced_form.errors %}$('#SearchModal').modal('show');{% endif %} -{% endblock onbodyload %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_delete.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_delete.html deleted file mode 100644 index 4d82d14..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_delete.html +++ /dev/null @@ -1,57 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {% blocktrans with name=voucher_set.name %} - Delete voucher set '{{ name }}'? - {% endblocktrans %} - | {% trans "Voucher sets" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% blocktrans with name=voucher_set.name count=voucher_set.count %} - Delete voucher set '{{ name }}' and its {{ count }} vouchers? - {% endblocktrans %} -{% endblock %} -{% block dashboard_content %} -
    -

    {% trans "Voucher set details" %}

    -
    -
    - {% include "oscar/dashboard/vouchers/partials/voucher_set_details_table.html" %} -
    - {% csrf_token %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    -
    -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_detail.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_detail.html deleted file mode 100644 index d1b798c..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_detail.html +++ /dev/null @@ -1,184 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% block title %}{{ voucher_set.name }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - {% include "oscar/dashboard/vouchers/partials/voucher_set_details_table.html" %} -
    -

    - - {% trans "Search vouchers" %} -

    -
    -
    -
    - {% include 'oscar/partials/form_fields_inline.html' with form=form %} - - - {% trans "Reset" %} - -
    - {% if search_filters %} -
    - - {% for filter in search_filters %} - {{ filter }} - {% endfor %} -
    - {% endif %} -
    - - - {% if vouchers %} - - - - - - - - {% for voucher in vouchers %} - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - - {% if search_filters %} - {% trans "Voucher Search Results" %} - {% else %} - {% trans "All Vouchers" %} - {% endif %} -
    {% trans "Code" %}{% anchor 'num_basket_additions' _("Num baskets") %}{% anchor 'num_orders' _("Num orders") %}{% anchor 'date_created' _("Date created") %}
    - {{ voucher.code }} - {{ voucher.num_basket_additions }}{{ voucher.num_orders }}{{ voucher.date_created }} -
    - -
    -
    {% trans "No vouchers found." %}
    - {% include "oscar/partials/pagination.html" %} -
    -

    {% trans "Attached offers" %}

    -
    - - {% if voucher_set.vouchers.first.offers.exists %} - - - - - - - - - - - - - - {% for offer in voucher_set.vouchers.first.offers.all %} - - - - - - - - - - - {% endfor %} - - {% else %} - - - - {% endif %} -
    {% trans "Offer name" %}{% trans "Start date" %}{% trans "End date" %}{% trans "Is available?" %}{% trans "Priority" %}{% trans "Incentive" %}{% trans "Condition" %}{% trans "Restrictions" %}
    - - {{ offer.name }} - - {{ offer.start_datetime|default:"-" }}{{ offer.end_datetime|default:"-" }} - {% if offer.is_available %} - {% trans "Yes" %} - {% else %} - {% trans "No" %} - {% endif %} - {{ offer.priority }}{{ offer.benefit.description|safe }}{{ offer.condition.description|safe }} - {% for restriction in offer.availability_restrictions %} - {% if not restriction.is_satisfied %} - - {% else %} - {{ restriction.description }} -
    - {% endif %} - {% endfor %} -
    {% trans "No offers are attached to this voucher set." %}
    - -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_form.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_form.html deleted file mode 100644 index 857a607..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_form.html +++ /dev/null @@ -1,57 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load i18n %} -{% block body_class %}{{ block.super }} create-page{% endblock %} -{% block title %} - {{ title }} | {% trans "Voucher sets" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ title }}{% endblock %} -{% block dashboard_content %} -
    -

    - - {% if voucher_set %} - {% trans "Edit voucher set" %} - {% else %} - {% trans "Create voucher set" %} - {% endif %} -

    -
    -
    - {% csrf_token %} - {% include "oscar/dashboard/partials/form_fields.html" with form=form %} - {% block form_actions %} -
    - - {% trans "or" %} - - {% trans "cancel" %} - -
    - {% endblock form_actions %} -
    -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_list.html b/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_list.html deleted file mode 100644 index 2b02f2f..0000000 --- a/tests/django_oscar/oscar/dashboard/vouchers/voucher_set_list.html +++ /dev/null @@ -1,102 +0,0 @@ -{% extends 'oscar/dashboard/layout.html' %} -{% load currency_filters %} -{% load sorting_tags %} -{% load i18n %} -{% block title %}{{ description }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block header %} - -{% endblock header %} -{% block dashboard_content %} - - {% if description != "All voucher sets" %} - - {% endif %} - {% if voucher_sets %} - - - - - - - - - - - {% for voucher_set in voucher_sets %} - - - - - - - - - - - {% endfor %} - {% else %} - - - - {% endif %} -
    - - {{ description }} -
    {% trans "Name" %}{% trans "Num" %}{% trans "Status" %}{% trans "Num offers" %}{% anchor 'num_basket_additions' _("Num baskets") %}{% anchor 'num_orders' _("Num orders") %}{% anchor 'date_created' _("Date created") %}
    - - {{ voucher_set.name }} - - {{ voucher_set.count }} - {% if voucher_set.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} - {{ voucher_set.vouchers.first.offers.count|default:0 }}{{ voucher_set.num_basket_additions }}{{ voucher_set.num_orders }}{{ voucher_set.date_created }} - -
    {% trans "No voucher sets found." %}
    - {% include "oscar/partials/pagination.html" %} -{% endblock dashboard_content %} diff --git a/tests/django_oscar/oscar/dashboard/widgets/popup_response.html b/tests/django_oscar/oscar/dashboard/widgets/popup_response.html deleted file mode 100644 index 36233a7..0000000 --- a/tests/django_oscar/oscar/dashboard/widgets/popup_response.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load i18n static %} - - - - {% trans 'Popup closing...' %} - - - - - diff --git a/tests/django_oscar/oscar/dashboard/widgets/related_multiple_widget_wrapper.html b/tests/django_oscar/oscar/dashboard/widgets/related_multiple_widget_wrapper.html deleted file mode 100644 index 71d8ec6..0000000 --- a/tests/django_oscar/oscar/dashboard/widgets/related_multiple_widget_wrapper.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n static %} - diff --git a/tests/django_oscar/oscar/dashboard/widgets/related_widget_wrapper.html b/tests/django_oscar/oscar/dashboard/widgets/related_widget_wrapper.html deleted file mode 100644 index 14b5f00..0000000 --- a/tests/django_oscar/oscar/dashboard/widgets/related_widget_wrapper.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load i18n static %} - diff --git a/tests/django_oscar/oscar/error.html b/tests/django_oscar/oscar/error.html deleted file mode 100644 index 7e56c9d..0000000 --- a/tests/django_oscar/oscar/error.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% block layout %} - {% include "oscar/partials/nav_accounts.html" %} -
    -
    -

    - {% block error_heading %} - {% trans 'Sorry!' %} - {% endblock %} -

    - {% block error_message %}{% endblock %} -

    - - {% trans 'Return to previous page' %} - - - {% trans "Go to homepage" %} - -

    -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/forms/widgets/date_time_picker.html b/tests/django_oscar/oscar/forms/widgets/date_time_picker.html deleted file mode 100644 index 81a317d..0000000 --- a/tests/django_oscar/oscar/forms/widgets/date_time_picker.html +++ /dev/null @@ -1,14 +0,0 @@ -
    -
    - {% include "django/forms/widgets/input.html" %} -
    -
    - -
    -
    -
    -
    diff --git a/tests/django_oscar/oscar/forms/widgets/image_input_widget.html b/tests/django_oscar/oscar/forms/widgets/image_input_widget.html deleted file mode 100644 index 3385028..0000000 --- a/tests/django_oscar/oscar/forms/widgets/image_input_widget.html +++ /dev/null @@ -1,18 +0,0 @@ -{% load i18n %} -{% load image_tags %} -
    - {% if image_url %} - {% oscar_thumbnail image_url "200x200" upscale=False as thumb %} - {% trans - {% else %} - {% trans - - {% endif %} -
    - {% include "django/forms/widgets/input.html" %} -
    -
    diff --git a/tests/django_oscar/oscar/layout.html b/tests/django_oscar/oscar/layout.html deleted file mode 100644 index 2b50f45..0000000 --- a/tests/django_oscar/oscar/layout.html +++ /dev/null @@ -1,63 +0,0 @@ -{% extends "oscar/base.html" %} -{% load static %} -{% block styles %} - -{% endblock %} -{% block layout %} - {# Top-horizontal bar with account, notifictions, dashboard links #} - {% include "oscar/partials/nav_accounts.html" %} - {# Site logo/title, mini-basket, browse dropdown and searchbox #} -
    -
    -
    - {% include "oscar/partials/brand.html" %} - {# Mini-basket wrapped in a block so some templates can now display it #} - {% block mini_basket %} - {% include "oscar/partials/mini_basket.html" %} - {% endblock %} -
    -
    - {% block navigation %} - {% include "oscar/partials/nav_primary.html" %} - {% endblock %} -
    - {# Main content of page - other layout templates may override this block #} - {% block content_wrapper %} -
    -
    - {% block breadcrumbs %}{% endblock %} - {% block header %} - - {% endblock %} - {% include "oscar/partials/alert_messages.html" %} - {% block subnavigation %}{% endblock %} -
    - {% block subheader %}{% endblock subheader %} - {# Div exists for AJAX updates to entire content section #} -
    - {% block content %}{% endblock %} -
    -
    -
    -
    - {% endblock %} - {% include "oscar/partials/footer.html" %} -{% endblock %} -{# Local scripts #} -{% block scripts %} - {{ block.super }} - - - - -{% endblock %} -{% block extrascripts %} - {% include "oscar/partials/extrascripts.html" %} - {{ block.super }} -{% endblock %} -{% block onbodyload %} - {{ block.super }} - oscar.init(); -{% endblock %} diff --git a/tests/django_oscar/oscar/layout_2_col.html b/tests/django_oscar/oscar/layout_2_col.html deleted file mode 100644 index 603806c..0000000 --- a/tests/django_oscar/oscar/layout_2_col.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "oscar/layout.html" %} -{% comment %} -Keep the same header and footer as the standard layout template but override the -main content area to split it into a sidebar and a content block -{% endcomment %} -{% block content_wrapper %} -
    -
    - {% block breadcrumbs %}{% endblock %} -
    - -
    - {% block header %} - - {% endblock %} - {% include "oscar/partials/alert_messages.html" %} - {% block pre_content %}{% endblock %} - {% block content %}{% endblock %} -
    -
    - -
    - -
    - -{% endblock %} diff --git a/tests/django_oscar/oscar/layout_3_col.html b/tests/django_oscar/oscar/layout_3_col.html deleted file mode 100644 index 83e59b7..0000000 --- a/tests/django_oscar/oscar/layout_3_col.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "oscar/layout.html" %} -{% block content_wrapper %} -
    -
    - {% block breadcrumbs %}{% endblock %} -
    - -
    - {% block header %} - - {% endblock %} - {% include "oscar/partials/alert_messages.html" %} - {% block content %}{% endblock %} -
    - -
    - -
    - -
    - -{% endblock %} diff --git a/tests/django_oscar/oscar/login_forbidden.html b/tests/django_oscar/oscar/login_forbidden.html deleted file mode 100644 index 250957b..0000000 --- a/tests/django_oscar/oscar/login_forbidden.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "oscar/403.html" %} -{% load i18n %} -{% block error_message %} -

    - {% trans "This page is only available to users who aren't logged in." %} -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/offer/detail.html b/tests/django_oscar/oscar/offer/detail.html deleted file mode 100644 index 5694e5b..0000000 --- a/tests/django_oscar/oscar/offer/detail.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% load product_tags %} -{% block title %}{{ offer.name }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %}{{ offer.name }}{% endblock %} -{% block content %} - {% if not offer.is_available %} -
    - {% trans " This offer is no longer available." %} -
    - {% endif %} - {% if upsell_message %} -
    - {% if offer.description %} -
    -

    - {{ offer.description|safe }} -

    -
    - {% endif %} -
    -
    -

    - - {% trans "What you need to do" %} -

    -

    - {{ upsell_message }} -

    -
    -
    -
    - {% endif %} - {% if products %} -
    -
    - {% include "oscar/partials/pagination.html" %} -
      - {% for product in products %} -
    1. - {% render_product product %} -
    2. - {% endfor %} -
    - {% include "oscar/partials/pagination.html" %} -
    -
    - {% else %} -

    - {% trans "No products found." %} -

    - {% endif %} -{% endblock content %} diff --git a/tests/django_oscar/oscar/offer/list.html b/tests/django_oscar/oscar/offer/list.html deleted file mode 100644 index 30920fd..0000000 --- a/tests/django_oscar/oscar/offer/list.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load i18n %} -{% load product_tags %} -{% block title %} - {% trans "Offers" %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Offers" %} -{% endblock %} -{% block content %} - {% if not offers %} -

    - {% trans "There are no site offers at the moment." %} -

    - {% else %} - {% for offer in offers %} -

    {{ offer.name }}

    - {% if offer.description %} -

    - {{ offer.description|safe }} -

    - {% endif %} - {% if offer.has_products %} -
      - {% for product in offer.products|slice:":12" %} -
    • - {% render_product product %} -
    • - {% endfor %} -
    -

    - - {% trans "Browse products in offer" %} - -

    - {% endif %} -
    - {% endfor %} - {% endif %} -{% endblock content %} diff --git a/tests/django_oscar/oscar/offer/range.html b/tests/django_oscar/oscar/offer/range.html deleted file mode 100644 index f91b1ab..0000000 --- a/tests/django_oscar/oscar/offer/range.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "oscar/layout.html" %} -{% load basket_tags %} -{% load category_tags %} -{% load i18n %} -{% load product_tags %} -{% block title %}{{ range.name }} | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock breadcrumbs %} -{% block headertext %}{{ range.name }}{% endblock %} -{% block content %} - {% if range.description %}{{ range.description|safe }}{% endif %} - {% if products %} -
    -
    -
      - {% for product in products %} -
    1. - {% render_product product %} -
    2. - {% endfor %} -
    - {% include "oscar/partials/pagination.html" %} -
    -
    - {% else %} -

    - {% trans "No products found." %} -

    - {% endif %} -{% endblock content %} diff --git a/tests/django_oscar/oscar/order/partials/basket_totals.html b/tests/django_oscar/oscar/order/partials/basket_totals.html deleted file mode 100644 index 9f5547d..0000000 --- a/tests/django_oscar/oscar/order/partials/basket_totals.html +++ /dev/null @@ -1,174 +0,0 @@ -{% load i18n %} -{% load currency_filters %} -
    - - - - - {% with discounts=order.basket_discounts %} - {% block discount_totals %} - {% if discounts %} - - - - - {% for discount in discounts %} - - - - - {% endfor %} - {% endif %} - {% endblock discount_totals %} - {% block basket_total %} - {% if discounts %} - - - - - {% else %} - - - - - {% endif %} - {% endblock basket_total %} - {% endwith %} - {% block shipping_total %} - - - - - - - - - - - - {% if order.has_shipping_discounts %} - - - - - {% for discount in order.shipping_discounts %} - - - - - {% endfor %} - - - - - {% else %} - - - - - {% endif %} - {% endblock shipping_total %} - {% block surcharges %} - {% with surcharges=order.surcharges.all %} - {% if surcharges %} - - - - - - - - {% for charge in surcharges %} - - - - - {% endfor %} - {% endif %} - {% endwith %} - {% endblock %} - {% if show_tax_separately %} - - - - - - - - {% endif %} - {% block post_order_action_totals %} - {% with actions=order.post_order_actions %} - {% if actions %} - - - - - - - {% for action in order.post_order_actions %} - - - - {% endfor %} - {% endif %} - {% endwith %} - {% endblock post_order_action_totals %} - {% block order_total %} - - - - - - - - {% endblock order_total %} -
    -

    {% trans "Basket" %}

    -
    {% trans "Basket total (before discounts)" %} - {{ order.basket_total_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer }} - - {{ discount.amount|currency:order.currency }}
    {% trans "Basket total (after discounts)" %} - {{ order.basket_total_incl_tax|currency:order.currency }} -
    {% trans "Basket total" %} - {% if show_tax_separately %} - {{ order.basket_total_excl_tax|currency:order.currency }} - {% else %} - {{ order.basket_total_incl_tax|currency:order.currency }} - {% endif %} -
     
    -

    {% trans "Shipping" %}

    -
    {% trans "Shipping method" %}{{ order.shipping_method }}
    {% trans "Shipping charge (before discounts)" %} - {{ order.shipping_before_discounts_incl_tax|currency:order.currency }} -
    - {% trans "Discount" %} - {{ discount.offer }} - - {{ discount.amount|currency:order.currency }}
    {% trans "Shipping charge (after discounts)" %} - {{ order.shipping_incl_tax|currency:order.currency }} -
    {% trans "Shipping charge" %} - {% if show_tax_separately %} - {{ order.shipping_excl_tax|currency:order.currency }} - {% else %} - {{ order.shipping_incl_tax|currency:order.currency }} - {% endif %} -
     
    -

    {% trans "Surcharges" %}

    -
    {{ charge.name }} - {% if show_tax_separately %} - {{ charge.excl_tax|currency:order.currency }} - {% else %} - {{ charge.incl_tax|currency:order.currency }} - {% endif %} -
     
    {% trans "Order tax" %}{{ order.total_tax|currency:order.currency }}
     
    -

    {% trans "Post order actions" %}

    -
    -

    - {{ action.message }} -

    -
     
    -

    {% trans "Order total" %}

    -
    -

    {{ order.total_incl_tax|currency:order.currency }}

    -
    -
    diff --git a/tests/django_oscar/oscar/partials/alert_messages.html b/tests/django_oscar/oscar/partials/alert_messages.html deleted file mode 100644 index 142517f..0000000 --- a/tests/django_oscar/oscar/partials/alert_messages.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load string_filters %} -{% comment %} -Use message tags to control these alerts. Available tags include: -- safe: allow HTML in the message -- block: for longer messages - this adds extra padding -- noicon: don't show an icon -- error/success/info - these change the connotation of the alert -{% endcomment %} -
    - {% if messages %} - {% for message in messages %} -
    - - × - -
    - {% if 'noicon' not in message.tags %} - {# Include an icon by default #} - {% if 'success' in message.tags %} - - {% elif 'info' in message.tags %} - - {% elif 'warning' in message.tags %} - - {% elif 'danger' in message.tags or 'error' in message.tags %} - - {% endif %} - {% endif %} - {# Allow HTML to be embedded in messages #} - {% if 'safe' in message.tags %} - {{ message|safe }} - {% else %} - {{ message }} - {% endif %} -
    -
    - {% endfor %} - {% endif %} -
    diff --git a/tests/django_oscar/oscar/partials/brand.html b/tests/django_oscar/oscar/partials/brand.html deleted file mode 100644 index 86b4d59..0000000 --- a/tests/django_oscar/oscar/partials/brand.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/tests/django_oscar/oscar/partials/extrascripts.html b/tests/django_oscar/oscar/partials/extrascripts.html deleted file mode 100644 index 6555625..0000000 --- a/tests/django_oscar/oscar/partials/extrascripts.html +++ /dev/null @@ -1,4 +0,0 @@ -{% comment %} -This file exists so you can easily add your own Javascript without -having to fork layout.html etc. Instead, just override this file. -{% endcomment %} diff --git a/tests/django_oscar/oscar/partials/footer.html b/tests/django_oscar/oscar/partials/footer.html deleted file mode 100644 index a19937d..0000000 --- a/tests/django_oscar/oscar/partials/footer.html +++ /dev/null @@ -1,7 +0,0 @@ -
    - {% block footer %} - {% comment %} - Could be used for displaying links to privacy policy, terms of service, etc. - {% endcomment %} -{% endblock %} -
    diff --git a/tests/django_oscar/oscar/partials/footer_checkout.html b/tests/django_oscar/oscar/partials/footer_checkout.html deleted file mode 100644 index 6fd4038..0000000 --- a/tests/django_oscar/oscar/partials/footer_checkout.html +++ /dev/null @@ -1,3 +0,0 @@ -
    - {% block footer %}{% endblock %} -
    diff --git a/tests/django_oscar/oscar/partials/form.html b/tests/django_oscar/oscar/partials/form.html deleted file mode 100644 index 2ce1ea5..0000000 --- a/tests/django_oscar/oscar/partials/form.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load i18n %} -
    - {% if not method == "get" %} - {% csrf_token %} - {% endif %} - {% include 'oscar/partials/form_fields.html' %} -
    -
    - - {% trans "or" %} - - {% trans "cancel" %} - - . -
    -
    -
    diff --git a/tests/django_oscar/oscar/partials/form_field.html b/tests/django_oscar/oscar/partials/form_field.html deleted file mode 100644 index 114242e..0000000 --- a/tests/django_oscar/oscar/partials/form_field.html +++ /dev/null @@ -1,62 +0,0 @@ -{% load form_tags %} -{% load widget_tweaks %} -{% if field.is_hidden %} - {{ field }} -{% else %} - {% comment %} - Make the field widget type available to templates so we can mark-up - checkbox and radio inputs differently to other widgets. -{% endcomment %} -{% annotate_form_field field %} -{% block control_group %} -
    - {% block label %} - {% if not nolabel and field.widget_type != 'checkbox' %} - - {% endif %} - {% endblock %} - {% block controls %} -
    - {% block widget %} - {% if field.widget_type == 'checkbox' %} - - {% else %} - {% render_field field class+="form-control" %} - {% endif %} - {% endblock %} - {% block errors %} - {% for error in field.errors %} - - - {{ error }} - - {% endfor %} - {% endblock %} - {% block help_text %} - {% if field.help_text %} - - {# We allow HTML within form help fields #} - {{ field.help_text|safe }} - - {% endif %} - {% endblock %} -
    - {% endblock %} -
    -{% endblock %} -{% endif %} diff --git a/tests/django_oscar/oscar/partials/form_fields.html b/tests/django_oscar/oscar/partials/form_fields.html deleted file mode 100644 index 5f3efbf..0000000 --- a/tests/django_oscar/oscar/partials/form_fields.html +++ /dev/null @@ -1,18 +0,0 @@ -{% load i18n %} -{% if form.is_bound and not form.is_valid %} -
    - {% trans "Oops! We found some errors" %} - - {% trans "please check the error messages below and try again" %} -
    -{% endif %} -{% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - - {{ error }} -
    - {% endfor %} -{% endif %} -{% for field in form %} - {% include 'oscar/partials/form_field.html' with field=field style=style %} -{% endfor %} diff --git a/tests/django_oscar/oscar/partials/form_fields_inline.html b/tests/django_oscar/oscar/partials/form_fields_inline.html deleted file mode 100644 index 679f495..0000000 --- a/tests/django_oscar/oscar/partials/form_fields_inline.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load widget_tweaks %} -{{ form.non_field_errors }} -{% for field in form %} - {% if field.is_hidden %} - {{ field }} - {% else %} - - {{ field.label_tag }} - {% render_field field class+="form-control mr-sm-2" %} - {% for error in field.errors %} -
      -
    • - {{ error }} -
    • -
    - {% endfor %} - {# No help text as it wraps #} -
    - {% endif %} -{% endfor %} diff --git a/tests/django_oscar/oscar/partials/google_analytics.html b/tests/django_oscar/oscar/partials/google_analytics.html deleted file mode 100644 index 7056fc7..0000000 --- a/tests/django_oscar/oscar/partials/google_analytics.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if google_analytics_id %} - - -{% endif %} diff --git a/tests/django_oscar/oscar/partials/google_analytics_transaction.html b/tests/django_oscar/oscar/partials/google_analytics_transaction.html deleted file mode 100644 index 0be6021..0000000 --- a/tests/django_oscar/oscar/partials/google_analytics_transaction.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "oscar/partials/google_analytics.html" %} -{% load l10n %} -{% block extratracking %} - gtag('event', 'purchase', { - "transaction_id": '{{ order.number|escapejs }}', - "affiliation": '{{ shop_name|escapejs }}', - "value": '{{ order.total_incl_tax|unlocalize|escapejs }}', - "currency": '{{ order.currency|escapejs }}', - "tax": '{{ order.total_tax|unlocalize|escapejs }}', - "shipping": '{{ order.shipping_incl_tax|unlocalize|escapejs }}', - items: [ - {% for line in order.lines.all %} - { - 'id': '{{ line.partner_sku|escapejs }}', - 'name': '{{ line.title|escapejs }}', - 'category': '{{ line.category|default:"Uncategorised"|escapejs }}', - 'price': '{{ line.unit_price_incl_tax|unlocalize|escapejs }}', - 'quantity': '{{ line.quantity|escapejs }}' - } - {% if not forloop.last %},{% endif %} - {% endfor %} - ] - }); -{% endblock %} diff --git a/tests/django_oscar/oscar/partials/mini_basket.html b/tests/django_oscar/oscar/partials/mini_basket.html deleted file mode 100644 index 7497a48..0000000 --- a/tests/django_oscar/oscar/partials/mini_basket.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load currency_filters %} -{% load i18n %} -
    - {% trans "Basket total:" %} - {% if request.basket.is_tax_known %} - {{ request.basket.total_incl_tax|currency:request.basket.currency }} - {% else %} - {{ request.basket.total_excl_tax|currency:request.basket.currency }} - {% endif %} -
    - - - -
    -
    diff --git a/tests/django_oscar/oscar/partials/nav_accounts.html b/tests/django_oscar/oscar/partials/nav_accounts.html deleted file mode 100644 index e5aea2d..0000000 --- a/tests/django_oscar/oscar/partials/nav_accounts.html +++ /dev/null @@ -1,88 +0,0 @@ -{% load i18n %} - diff --git a/tests/django_oscar/oscar/partials/nav_checkout.html b/tests/django_oscar/oscar/partials/nav_checkout.html deleted file mode 100644 index 1ecd4e8..0000000 --- a/tests/django_oscar/oscar/partials/nav_checkout.html +++ /dev/null @@ -1,35 +0,0 @@ - - diff --git a/tests/django_oscar/oscar/partials/nav_primary.html b/tests/django_oscar/oscar/partials/nav_primary.html deleted file mode 100644 index bc8146a..0000000 --- a/tests/django_oscar/oscar/partials/nav_primary.html +++ /dev/null @@ -1,80 +0,0 @@ -{% load currency_filters %} -{% load category_tags %} -{% load i18n %} - diff --git a/tests/django_oscar/oscar/partials/pagination.html b/tests/django_oscar/oscar/partials/pagination.html deleted file mode 100644 index 8931ce0..0000000 --- a/tests/django_oscar/oscar/partials/pagination.html +++ /dev/null @@ -1,31 +0,0 @@ -{% load display_tags %} -{% load i18n %} -{% if paginator.num_pages > 1 %} - -{% endif %} diff --git a/tests/django_oscar/oscar/partials/search.html b/tests/django_oscar/oscar/partials/search.html deleted file mode 100644 index b50562a..0000000 --- a/tests/django_oscar/oscar/partials/search.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load i18n %} -
    - - -
    diff --git a/tests/django_oscar/oscar/registration/password_reset_complete.html b/tests/django_oscar/oscar/registration/password_reset_complete.html deleted file mode 100644 index fefa581..0000000 --- a/tests/django_oscar/oscar/registration/password_reset_complete.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends 'oscar/layout.html' %} -{% load i18n %} -{% block title %} - {% trans 'Password reset complete' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Password reset complete" %} -{% endblock %} -{% block content %} -

    - {% trans "Your password has been set. You may go ahead and log in now." %} -

    -

    - - {% trans 'Log in' %} - -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/registration/password_reset_confirm.html b/tests/django_oscar/oscar/registration/password_reset_confirm.html deleted file mode 100644 index 71f5441..0000000 --- a/tests/django_oscar/oscar/registration/password_reset_confirm.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends 'oscar/layout.html' %} -{% load i18n %} -{% block title %} - {% trans 'Enter a new password' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Enter a new password" %} -{% endblock %} -{% block content %} - {% if validlink %} -

    - {% trans "Please enter your new password twice so we can verify you typed it in correctly." %} -

    -
    - {% csrf_token %} - {% include 'oscar/partials/form_fields.html' %} -
    - -
    -
    - {% else %} -

    {% trans 'Password reset unsuccessful' %}

    -

    - {% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %} -

    - {% endif %} -{% endblock %} diff --git a/tests/django_oscar/oscar/registration/password_reset_done.html b/tests/django_oscar/oscar/registration/password_reset_done.html deleted file mode 100644 index 9156ab9..0000000 --- a/tests/django_oscar/oscar/registration/password_reset_done.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'oscar/layout.html' %} -{% load i18n %} -{% block title %} - {% trans 'Password reset email sent' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Email sent" %} -{% endblock %} -{% block content %} -

    - {% blocktrans %} - We've e-mailed you instructions for resetting your password. You should be receiving it shortly. - {% endblocktrans %} -

    -

    - {% blocktrans %} - If you don't receive an email, please make sure you've entered the address you registered with, and check - your spam folder. - {% endblocktrans %} -

    -{% endblock %} diff --git a/tests/django_oscar/oscar/registration/password_reset_form.html b/tests/django_oscar/oscar/registration/password_reset_form.html deleted file mode 100644 index 40fce8d..0000000 --- a/tests/django_oscar/oscar/registration/password_reset_form.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'oscar/layout.html' %} -{% load i18n %} -{% block title %} - {% trans 'Password reset' %} | {{ block.super }} -{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block headertext %} - {% trans "Password reset" %} -{% endblock %} -{% block content %} -
    - {% csrf_token %} -

    - {% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %} -

    - {% include 'oscar/partials/form_fields.html' with style='stacked' %} -
    - -
    -
    -{% endblock %} diff --git a/tests/django_oscar/oscar/search/indexes/product/item_text.txt b/tests/django_oscar/oscar/search/indexes/product/item_text.txt deleted file mode 100644 index 8fae4f4..0000000 --- a/tests/django_oscar/oscar/search/indexes/product/item_text.txt +++ /dev/null @@ -1,3 +0,0 @@ -{{ object.upc|default:"" }} -{{ object.title }} -{{ object.description|default:"" }} diff --git a/tests/django_oscar/oscar/search/partials/facet.html b/tests/django_oscar/oscar/search/partials/facet.html deleted file mode 100644 index 8b37073..0000000 --- a/tests/django_oscar/oscar/search/partials/facet.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load i18n %} -
    - - {% for item in items %} -
    - {% if item.selected %} - - - {{ item.name }} - {% else %} - {% if item.disabled %} - - {{ item.name }} - {% else %} - - - {{ item.name }} - {% endif %} - {% endif %} - {% if item.show_count %}({{ item.count }}){% endif %} -
    - {% endfor %} -
    diff --git a/tests/django_oscar/oscar/search/results.html b/tests/django_oscar/oscar/search/results.html deleted file mode 100644 index dc5efd0..0000000 --- a/tests/django_oscar/oscar/search/results.html +++ /dev/null @@ -1,106 +0,0 @@ -{% extends "oscar/layout_2_col.html" %} -{% load currency_filters %} -{% load product_tags %} -{% load i18n %} -{% block title %}"{{ query }}" | {{ block.super }}{% endblock %} -{% block breadcrumbs %} - -{% endblock %} -{% block column_left %} - {% if has_facets %} -

    {% trans "Refine your search" %}

    -
    - {% for field, data in facet_data.items %} - {% if data.results %} - {% include 'oscar/search/partials/facet.html' with name=data.name items=data.results %} - {% endif %} - {% endfor %} -
    - {% endif %} -{% endblock %} -{% block headertext %} - {% blocktrans with q=query %} - Products matching "{{ q }}" - {% endblocktrans %} -{% endblock %} -{% block content %} -
    - {# Render other search params as hidden inputs #} - {% for value in selected_facets %} - - {% endfor %} - - {% if paginator.count %} - {% if paginator.num_pages > 1 %} - {% blocktrans with start=page.start_index end=page.end_index num_results=paginator.count %} - Found - {{ num_results }} - results, showing - {{ start }} - to - {{ end }} - . - {% endblocktrans %} - {% else %} - {% blocktrans count num_results=paginator.count %} - Found - {{ num_results }} - result. - {% plural %} - Found - {{ num_results }} - results. - {% endblocktrans %} - {% endif %} -
    - {% include "oscar/partials/form_field.html" with field=search_form.sort_by %} -
    - {% else %} -

    - {% trans "Found - 0 - results." %} - {% if suggestion %} - {% url 'search:search' as search_url %} - {% blocktrans %} - Did you mean - - "{{ suggestion }}" - - ? - {% endblocktrans %} - {% endif %} -

    - {% endif %} -
    - {% if page.object_list %} -
    -
    -
      - {% for result in page.object_list %} -
    1. - {% render_product result.object %} -
    2. - {% endfor %} -
    - {% include "oscar/partials/pagination.html" with page_obj=page %} -
    -
    - {% endif %} -{% endblock %} -{% block onbodyload %} - {{ block.super }} - oscar.search.init(); -{% endblock %} diff --git a/tests/django_rest/admin.html b/tests/django_rest/admin.html deleted file mode 100644 index 936514a..0000000 --- a/tests/django_rest/admin.html +++ /dev/null @@ -1,305 +0,0 @@ -{% load static %} -{% load i18n %} -{% load rest_framework %} - - - - {% block head %} - {% block meta %} - - - {% endblock %} - - {% block title %}Django REST framework{% endblock %} - - {% block style %} - {% block bootstrap_theme %} - - - {% endblock %} - - - {% endblock %} - {% endblock %} - - {% block body %} - -
    - {% block navbar %} - - {% endblock %} -
    - {% block breadcrumbs %} - - {% endblock %} - -
    - {% if 'GET' in allowed_methods %} -
    -
    -
    - - -
    -
    -
    - {% endif %} - {% if post_form %} - - {% endif %} - {% if put_form %} - - {% endif %} - {% if delete_form %} -
    - -
    - {% endif %} - {% if extra_actions %} - - {% endif %} - {% if filter_form %} - - {% endif %} -
    - -
    - {% block description %}{{ description }}{% endblock %} -
    - {% if paginator %} - - {% endif %} -
    - {% if style == 'list' %} - {% include "rest_framework/admin/list.html" %} - {% else %} - {% include "rest_framework/admin/detail.html" %} - {% endif %} -
    - {% if paginator %} - - {% endif %} -
    -
    - -
    - -
    - - - - - - {% if error_form %} - - - {% endif %} - {% if filter_form %}{{ filter_form }}{% endif %} - {% block script %} - - - - - - - - - {% endblock %} - - {% endblock %} - diff --git a/tests/django_rest/admin/detail.html b/tests/django_rest/admin/detail.html deleted file mode 100644 index 7537956..0000000 --- a/tests/django_rest/admin/detail.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load rest_framework %} - - - {% for key, value in results|items %} - {% if key in details %} - - - - - {% endif %} - {% endfor %} - -
    {{ key|capfirst }}{{ value|format_value }}
    diff --git a/tests/django_rest/admin/dict_value.html b/tests/django_rest/admin/dict_value.html deleted file mode 100644 index 37bf0be..0000000 --- a/tests/django_rest/admin/dict_value.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load rest_framework %} - - - {% for k, v in value|items %} - - - - - {% endfor %} - -
    {{ k|format_value }}{{ v|format_value }}
    diff --git a/tests/django_rest/admin/list.html b/tests/django_rest/admin/list.html deleted file mode 100644 index b159ffe..0000000 --- a/tests/django_rest/admin/list.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load rest_framework %} - - - - {% for column in columns %}{% endfor %} - - - - - {% for row in results %} - - {% for key, value in row|items %} - {% if key in columns %} - - {% endif %} - {% endfor %} - - - {% endfor %} - -
    {{ column|capfirst }}
    {{ value|format_value }} - {% if row.url %} - - - - {% else %} - - {% endif %} -
    diff --git a/tests/django_rest/admin/list_value.html b/tests/django_rest/admin/list_value.html deleted file mode 100644 index 24ee569..0000000 --- a/tests/django_rest/admin/list_value.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load rest_framework %} - - - {% for item in value %} - - - - - {% endfor %} - -
    {{ forloop.counter0 }}{{ item|format_value }}
    diff --git a/tests/django_rest/admin/simple_list_value.html b/tests/django_rest/admin/simple_list_value.html deleted file mode 100644 index 01997f6..0000000 --- a/tests/django_rest/admin/simple_list_value.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load rest_framework %} -{% for item in value %} - {% if not forloop.first %},{% endif %} - {{ item|format_value }} -{% endfor %} diff --git a/tests/django_rest/api.html b/tests/django_rest/api.html deleted file mode 100644 index 0b5ef96..0000000 --- a/tests/django_rest/api.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends "rest_framework/base.html" %} -{# Override this template in your own templates directory to customize #} diff --git a/tests/django_rest/base.html b/tests/django_rest/base.html deleted file mode 100644 index 9101dcb..0000000 --- a/tests/django_rest/base.html +++ /dev/null @@ -1,383 +0,0 @@ -{% load static %} -{% load i18n %} -{% load rest_framework %} - - - - {% block head %} - {% block meta %} - - - {% endblock %} - - {% block title %} - {% if name %}{{ name }} – {% endif %} - Django REST framework - {% endblock %} - - {% block style %} - {% block bootstrap_theme %} - - - {% endblock %} - - - {% if code_style %} - - {% endif %} - {% endblock %} - {% endblock %} - - {% block body %} - -
    - {% block navbar %} - - {% endblock %} -
    - {% block breadcrumbs %} - - {% endblock %} - -
    - {% block content %} -
    - {% block request_forms %} - {% if 'GET' in allowed_methods %} -
    -
    - {% if api_settings.URL_FORMAT_OVERRIDE %} -
    - - GET - - - -
    - {% else %} - - GET - - {% endif %} -
    -
    - {% endif %} - {% if options_form %} -
    - -
    - {% endif %} - {% if delete_form %} - - - - {% endif %} - {% if extra_actions %} - - {% endif %} - {% if filter_form %} - - {% endif %} - {% endblock request_forms %} -
    -
    - -
    - {% block description %}{{ description }}{% endblock %} -
    - {% if paginator %} - - {% endif %} -
    -
    -                                    {{ request.method }} {{ request.get_full_path }}
    -
    -
    -
    HTTP {{ response.status_code }} {{ response.status_text }}{% for key, val in response_headers|items %}
    -{{ key }}: {{ val|break_long_headers|urlize }}{% endfor %}
    -
    -{{ content|urlize }}
    -                                
    -
    -
    - {% if display_edit_forms %} - {% if post_form or raw_data_post_form %} -
    - {% if post_form %} - - {% endif %} -
    - {% if post_form %} -
    - {% with form=post_form %} -
    -
    - {% csrf_token %} - {{ post_form }} -
    - -
    -
    -
    - {% endwith %} -
    - {% endif %} -
    - {% with form=raw_data_post_form %} -
    -
    - {% include "rest_framework/raw_data_form.html" %} -
    - -
    -
    -
    - {% endwith %} -
    -
    -
    - {% endif %} - {% if put_form or raw_data_put_form or raw_data_patch_form %} -
    - {% if put_form %} - - {% endif %} -
    - {% if put_form %} -
    -
    -
    - {{ put_form }} -
    - -
    -
    -
    -
    - {% endif %} -
    - {% with form=raw_data_put_or_patch_form %} -
    -
    - {% include "rest_framework/raw_data_form.html" %} -
    - {% if raw_data_put_form %} - - {% endif %} - {% if raw_data_patch_form %} - - {% endif %} -
    -
    -
    - {% endwith %} -
    -
    -
    - {% endif %} - {% endif %} - {% endblock content %} -
    - -
    - -
    - - {% if filter_form %}{{ filter_form }}{% endif %} - {% block script %} - - - - - - - - - {% endblock %} - -{% endblock %} - diff --git a/tests/django_rest/docs/auth/basic.html b/tests/django_rest/docs/auth/basic.html deleted file mode 100644 index dd31a04..0000000 --- a/tests/django_rest/docs/auth/basic.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load rest_framework %} - - diff --git a/tests/django_rest/docs/auth/session.html b/tests/django_rest/docs/auth/session.html deleted file mode 100644 index 1b65dfb..0000000 --- a/tests/django_rest/docs/auth/session.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load rest_framework %} - - diff --git a/tests/django_rest/docs/auth/token.html b/tests/django_rest/docs/auth/token.html deleted file mode 100644 index 453b834..0000000 --- a/tests/django_rest/docs/auth/token.html +++ /dev/null @@ -1,70 +0,0 @@ -{% load rest_framework %} - - diff --git a/tests/django_rest/docs/document.html b/tests/django_rest/docs/document.html deleted file mode 100644 index bb7e0b0..0000000 --- a/tests/django_rest/docs/document.html +++ /dev/null @@ -1,34 +0,0 @@ -{% load rest_framework %} -
    -
    -

    {{ document.title }}

    - {% if document.description %} -

    - {% render_markdown document.description %} -

    - {% endif %} -
    -
    - {% for html in lang_intro_htmls %} - {% include html %} - {% endfor %} -
    -
    -{% if document|data %} - {% for section_key, section in document|data|items %} - {% if section_key %} -

    - {{ section_key }} - - - -

    - {% endif %} - {% for link_key, link in section|schema_links|items %} - {% include "rest_framework/docs/link.html" %} - {% endfor %} - {% endfor %} - {% for link_key, link in document.links|items %} - {% include "rest_framework/docs/link.html" %} - {% endfor %} -{% endif %} diff --git a/tests/django_rest/docs/error.html b/tests/django_rest/docs/error.html deleted file mode 100644 index 3b8e296..0000000 --- a/tests/django_rest/docs/error.html +++ /dev/null @@ -1,71 +0,0 @@ -{% load static %} - - - - - - - Error Rendering Schema - - -

    Error

    -
    -{{ data }}
    -        
    - {% if debug is True %} -
    -

    Additional Information

    -

    Note: You are seeing this message because DEBUG==True.

    -

    Seeing this page is usually a configuration error: are your - DEFAULT_AUTHENTICATION_CLASSES or DEFAULT_PERMISSION_CLASSES - being applied unexpectedly?

    -

    Your response status code is: {{ response.status_code }}

    -

    401 Unauthorised.

    -
      -
    • Do you have SessionAuthentication enabled?
    • -
    • Are you logged in?
    • -
    -

    403 Forbidden.

    -
      -
    • Do you have sufficient permissions to access this view?
    • -
    • Is you schema non-empty? (An empty schema will lead to a permission denied error being raised.)
    • -
    -

    Most commonly the intended solution is to disable authentication and permissions - when including the docs urls:

    -
    -   path('docs/', include_docs_urls(title='Your API',
    -                                    authentication_classes=[],
    -                                    permission_classes=[])),
    -                
    -

    Overriding this template

    -

    - If you wish access to your docs to be authenticated you may override this template - at - - rest_framework/docs/error.html - - . -

    -

    - The available context is: - - data - - the error dict above, - - request - - , - - response - - and the - - debug - - flag. -

    - {% endif %} - - - diff --git a/tests/django_rest/docs/index.html b/tests/django_rest/docs/index.html deleted file mode 100644 index e3476ea..0000000 --- a/tests/django_rest/docs/index.html +++ /dev/null @@ -1,51 +0,0 @@ -{% load static %} - - - - - - - {{ document.title }} - - - - - - - {% if code_style %} - - {% endif %} - - - - - {% include "rest_framework/docs/sidebar.html" %} -
    -
    -
    - {% include "rest_framework/docs/document.html" %} -
    -
    -
    - {% include "rest_framework/docs/auth/token.html" %} - {% include "rest_framework/docs/auth/basic.html" %} - {% include "rest_framework/docs/auth/session.html" %} - - - - - - - diff --git a/tests/django_rest/docs/interact.html b/tests/django_rest/docs/interact.html deleted file mode 100644 index d70aaee..0000000 --- a/tests/django_rest/docs/interact.html +++ /dev/null @@ -1,57 +0,0 @@ -{% load rest_framework %} - - diff --git a/tests/django_rest/docs/langs/javascript-intro.html b/tests/django_rest/docs/langs/javascript-intro.html deleted file mode 100644 index 0f1fa7d..0000000 --- a/tests/django_rest/docs/langs/javascript-intro.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load rest_framework %} -{% load static %} -
    -    {% code html %}
    -    
    -    {% endcode %}
    -
    diff --git a/tests/django_rest/docs/langs/javascript.html b/tests/django_rest/docs/langs/javascript.html deleted file mode 100644 index ae7b84b..0000000 --- a/tests/django_rest/docs/langs/javascript.html +++ /dev/null @@ -1,17 +0,0 @@ -{% load rest_framework %} -
    -{% code javascript %}var coreapi = window.coreapi  // Loaded by `coreapi.js`
    -var schema = window.schema    // Loaded by `schema.js`
    -
    -// Initialize a client
    -var client = new coreapi.Client()
    -
    -// Interact with the API endpoint
    -var action = [{% if section_key %}"{{ section_key }}", {% endif %}"{{ link_key }}"]
    -{% if link.fields %}var params = {
    -{% for field in link.fields %}    {{ field.name }}: ...{% if not loop.last %},{% endif %}
    -{% endfor % }}
    -{% endif %}client.action(schema, action{% if link.fields %}, params{% endif %}).then(function(result) {
    -    // Return value is in 'result'
    -}){% endcode %}
    -
    diff --git a/tests/django_rest/docs/langs/python-intro.html b/tests/django_rest/docs/langs/python-intro.html deleted file mode 100644 index 50e3769..0000000 --- a/tests/django_rest/docs/langs/python-intro.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load rest_framework %} -
    -{% code bash %}# Install the Python client library
    -$ pip install coreapi{% endcode %}
    -
    diff --git a/tests/django_rest/docs/langs/python.html b/tests/django_rest/docs/langs/python.html deleted file mode 100644 index 8c358e2..0000000 --- a/tests/django_rest/docs/langs/python.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load rest_framework %} -
    -{% code python %}import coreapi
    -
    -# Initialize a client & load the schema document
    -client = coreapi.Client()
    -schema = client.get("{{ document.url }}"{% if schema_format %}, format="{{ schema_format }}"{% endif %})
    -
    -# Interact with the API endpoint
    -action = [{% if section_key %}"{{ section_key }}", {% endif %}"{{ link_key }}"]
    -{% if link.fields %}params = {
    -{% for field in link.fields %}    "{{ field.name }}": ...{% if not loop.last %},{% endif %}
    -{% endfor % }}
    -{% endif %}result = client.action(schema, action{% if link.fields %}, params=params{% endif %}){% endcode %}
    -
    diff --git a/tests/django_rest/docs/langs/shell-intro.html b/tests/django_rest/docs/langs/shell-intro.html deleted file mode 100644 index 9a32f9d..0000000 --- a/tests/django_rest/docs/langs/shell-intro.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load rest_framework %} -
    -{% code bash %}# Install the command line client
    -$ pip install coreapi-cli{% endcode %}
    -
    diff --git a/tests/django_rest/docs/langs/shell.html b/tests/django_rest/docs/langs/shell.html deleted file mode 100644 index c7dc781..0000000 --- a/tests/django_rest/docs/langs/shell.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load rest_framework %} -
    -{% code bash %}# Load the schema document
    -$ coreapi get {{ document.url }}{% if schema_format %}--format {{ schema_format }}{% endif %}
    -
    -# Interact with the API endpoint
    -$ coreapi action {% if section_key %}{{ section_key }} {% endif %}{{ link_key|cut:"> " }}{% for field in link.fields %}-p {{ field.name }}=...{% endfor %}{% endcode %}
    -
    diff --git a/tests/django_rest/docs/link.html b/tests/django_rest/docs/link.html deleted file mode 100644 index 31092ab..0000000 --- a/tests/django_rest/docs/link.html +++ /dev/null @@ -1,185 +0,0 @@ -{% load rest_framework %} - -{% include "rest_framework/docs/interact.html" with link=link %} diff --git a/tests/django_rest/docs/sidebar.html b/tests/django_rest/docs/sidebar.html deleted file mode 100644 index d74e7f5..0000000 --- a/tests/django_rest/docs/sidebar.html +++ /dev/null @@ -1,90 +0,0 @@ -{% load rest_framework %} - diff --git a/tests/django_rest/filters/base.html b/tests/django_rest/filters/base.html deleted file mode 100644 index 34e79d3..0000000 --- a/tests/django_rest/filters/base.html +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/tests/django_rest/filters/ordering.html b/tests/django_rest/filters/ordering.html deleted file mode 100644 index a18da19..0000000 --- a/tests/django_rest/filters/ordering.html +++ /dev/null @@ -1,17 +0,0 @@ -{% load rest_framework %} -{% load i18n %} -

    {% trans "Ordering" %}

    -
    - {% for key, label in options %} - {% if key == current %} - - - {{ label }} - - {% else %} - - {{ label }} - - {% endif %} - {% endfor %} -
    diff --git a/tests/django_rest/filters/search.html b/tests/django_rest/filters/search.html deleted file mode 100644 index 32d07f5..0000000 --- a/tests/django_rest/filters/search.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load i18n %} -

    {% trans "Search" %}

    -
    -
    -
    - - - - -
    -
    -
    diff --git a/tests/django_rest/horizontal/checkbox.html b/tests/django_rest/horizontal/checkbox.html deleted file mode 100644 index edb4770..0000000 --- a/tests/django_rest/horizontal/checkbox.html +++ /dev/null @@ -1,18 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -
    - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/checkbox_multiple.html b/tests/django_rest/horizontal/checkbox_multiple.html deleted file mode 100644 index 1c5eb26..0000000 --- a/tests/django_rest/horizontal/checkbox_multiple.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} - - {% endif %} -
    - {% if style.inline %} - {% for key, text in field.choices|items %} - - {% endfor %} - {% else %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} - {% endif %} - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/dict_field.html b/tests/django_rest/horizontal/dict_field.html deleted file mode 100644 index 437350c..0000000 --- a/tests/django_rest/horizontal/dict_field.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -
    -

    - Dictionaries are not currently supported in HTML input. -

    -
    -
    diff --git a/tests/django_rest/horizontal/fieldset.html b/tests/django_rest/horizontal/fieldset.html deleted file mode 100644 index 069b5b6..0000000 --- a/tests/django_rest/horizontal/fieldset.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} -
    - - {{ field.label }} - -
    - {% endif %} - {% for nested_field in field %} - {% if not nested_field.read_only %} - {% render_field nested_field style=style %} - {% endif %} - {% endfor %} -
    diff --git a/tests/django_rest/horizontal/form.html b/tests/django_rest/horizontal/form.html deleted file mode 100644 index fa969e7..0000000 --- a/tests/django_rest/horizontal/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load rest_framework %} -{% for field in form %} - {% if not field.read_only %} - {% render_field field style=style %} - {% endif %} -{% endfor %} diff --git a/tests/django_rest/horizontal/input.html b/tests/django_rest/horizontal/input.html deleted file mode 100644 index eb5d5bf..0000000 --- a/tests/django_rest/horizontal/input.html +++ /dev/null @@ -1,21 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -
    - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/list_field.html b/tests/django_rest/horizontal/list_field.html deleted file mode 100644 index f49a5cf..0000000 --- a/tests/django_rest/horizontal/list_field.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -
    -

    - Lists are not currently supported in HTML input. -

    -
    -
    diff --git a/tests/django_rest/horizontal/list_fieldset.html b/tests/django_rest/horizontal/list_fieldset.html deleted file mode 100644 index 9ffbb5a..0000000 --- a/tests/django_rest/horizontal/list_fieldset.html +++ /dev/null @@ -1,14 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} -
    - - {{ field.label }} - -
    - {% endif %} -

    - Lists are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/horizontal/radio.html b/tests/django_rest/horizontal/radio.html deleted file mode 100644 index 5b2b1a3..0000000 --- a/tests/django_rest/horizontal/radio.html +++ /dev/null @@ -1,60 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "None" as none_choice %} -
    - {% if field.label %} - - {% endif %} -
    - {% if style.inline %} - {% if field.allow_null or field.allow_blank %} - - {% endif %} - {% for key, text in field.choices|items %} - - {% endfor %} - {% else %} - {% if field.allow_null or field.allow_blank %} -
    - -
    - {% endif %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} - {% endif %} - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/select.html b/tests/django_rest/horizontal/select.html deleted file mode 100644 index 30a7615..0000000 --- a/tests/django_rest/horizontal/select.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} - - {% endif %} -
    - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/select_multiple.html b/tests/django_rest/horizontal/select_multiple.html deleted file mode 100644 index 441f910..0000000 --- a/tests/django_rest/horizontal/select_multiple.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "No items to select." as no_items %} -
    - {% if field.label %} - - {% endif %} -
    - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/horizontal/textarea.html b/tests/django_rest/horizontal/textarea.html deleted file mode 100644 index 6fa3d8d..0000000 --- a/tests/django_rest/horizontal/textarea.html +++ /dev/null @@ -1,21 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -
    - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    -
    diff --git a/tests/django_rest/inline/checkbox.html b/tests/django_rest/inline/checkbox.html deleted file mode 100644 index af7505e..0000000 --- a/tests/django_rest/inline/checkbox.html +++ /dev/null @@ -1,10 +0,0 @@ -
    -
    - -
    -
    diff --git a/tests/django_rest/inline/checkbox_multiple.html b/tests/django_rest/inline/checkbox_multiple.html deleted file mode 100644 index b0be227..0000000 --- a/tests/django_rest/inline/checkbox_multiple.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %}{% endif %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} -
    diff --git a/tests/django_rest/inline/dict_field.html b/tests/django_rest/inline/dict_field.html deleted file mode 100644 index 4531b0f..0000000 --- a/tests/django_rest/inline/dict_field.html +++ /dev/null @@ -1,6 +0,0 @@ -
    - {% if field.label %}{% endif %} -

    - Dictionaries are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/inline/fieldset.html b/tests/django_rest/inline/fieldset.html deleted file mode 100644 index e49b42f..0000000 --- a/tests/django_rest/inline/fieldset.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load rest_framework %} -{% for nested_field in field %} - {% if not nested_field.read_only %} - {% render_field nested_field style=style %} - {% endif %} -{% endfor %} diff --git a/tests/django_rest/inline/form.html b/tests/django_rest/inline/form.html deleted file mode 100644 index fa969e7..0000000 --- a/tests/django_rest/inline/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load rest_framework %} -{% for field in form %} - {% if not field.read_only %} - {% render_field field style=style %} - {% endif %} -{% endfor %} diff --git a/tests/django_rest/inline/input.html b/tests/django_rest/inline/input.html deleted file mode 100644 index 46ad6e6..0000000 --- a/tests/django_rest/inline/input.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %}{% endif %} - -
    diff --git a/tests/django_rest/inline/list_field.html b/tests/django_rest/inline/list_field.html deleted file mode 100644 index 584c2e5..0000000 --- a/tests/django_rest/inline/list_field.html +++ /dev/null @@ -1,6 +0,0 @@ -
    - {% if field.label %}{% endif %} -

    - Lists are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/inline/list_fieldset.html b/tests/django_rest/inline/list_fieldset.html deleted file mode 100644 index 2ae56d7..0000000 --- a/tests/django_rest/inline/list_fieldset.html +++ /dev/null @@ -1 +0,0 @@ -Lists are not currently supported in HTML input. diff --git a/tests/django_rest/inline/radio.html b/tests/django_rest/inline/radio.html deleted file mode 100644 index d712257..0000000 --- a/tests/django_rest/inline/radio.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "None" as none_choice %} -
    - {% if field.label %}{% endif %} - {% if field.allow_null or field.allow_blank %} -
    - -
    - {% endif %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} -
    diff --git a/tests/django_rest/inline/select.html b/tests/django_rest/inline/select.html deleted file mode 100644 index 543a6c1..0000000 --- a/tests/django_rest/inline/select.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %}{% endif %} - -
    diff --git a/tests/django_rest/inline/select_multiple.html b/tests/django_rest/inline/select_multiple.html deleted file mode 100644 index e357345..0000000 --- a/tests/django_rest/inline/select_multiple.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "No items to select." as no_items %} -
    - {% if field.label %}{% endif %} - -
    diff --git a/tests/django_rest/inline/textarea.html b/tests/django_rest/inline/textarea.html deleted file mode 100644 index 5fe1286..0000000 --- a/tests/django_rest/inline/textarea.html +++ /dev/null @@ -1,7 +0,0 @@ -
    - {% if field.label %}{% endif %} - -
    diff --git a/tests/django_rest/login.html b/tests/django_rest/login.html deleted file mode 100644 index 6c8d589..0000000 --- a/tests/django_rest/login.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends "rest_framework/login_base.html" %} -{# Override this template in your own templates directory to customize #} diff --git a/tests/django_rest/login_base.html b/tests/django_rest/login_base.html deleted file mode 100644 index 4844e95..0000000 --- a/tests/django_rest/login_base.html +++ /dev/null @@ -1,79 +0,0 @@ -{% extends "rest_framework/base.html" %} -{% load rest_framework %} -{% block body %} - -
    -
    -
    -
    -
    - {% block branding %} -

    Django REST framework

    - {% endblock %} -
    -
    - -
    -
    -
    - {% csrf_token %} - -
    -
    - - - {% if form.username.errors %} -

    - {{ form.username.errors|striptags }} -

    - {% endif %} -
    -
    -
    -
    - - - {% if form.password.errors %} -

    - {{ form.password.errors|striptags }} -

    - {% endif %} -
    -
    - {% if form.non_field_errors %} - {% for error in form.non_field_errors %} -
    - {{ error }} -
    - {% endfor %} - {% endif %} -
    - -
    -
    -
    -
    - -
    - -
    - -
    - - -{% endblock %} diff --git a/tests/django_rest/pagination/numbers.html b/tests/django_rest/pagination/numbers.html deleted file mode 100644 index 137a198..0000000 --- a/tests/django_rest/pagination/numbers.html +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/tests/django_rest/pagination/previous_and_next.html b/tests/django_rest/pagination/previous_and_next.html deleted file mode 100644 index 42c96e0..0000000 --- a/tests/django_rest/pagination/previous_and_next.html +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/tests/django_rest/raw_data_form.html b/tests/django_rest/raw_data_form.html deleted file mode 100644 index f3c27d4..0000000 --- a/tests/django_rest/raw_data_form.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load rest_framework %} -{{ form.non_field_errors }} -{% for field in form %} -
    - {{ field.label_tag|add_class:"col-sm-2 control-label" }} -
    - {{ field|add_class:"form-control" }} - {{ field.help_text|safe }} -
    -
    -{% endfor %} diff --git a/tests/django_rest/schema.js b/tests/django_rest/schema.js deleted file mode 100644 index 692cb90..0000000 --- a/tests/django_rest/schema.js +++ /dev/null @@ -1,3 +0,0 @@ -var codec = new window.coreapi.codecs.CoreJSONCodec() -var coreJSON = window.atob('{{ schema }}') -window.schema = codec.decode(coreJSON) diff --git a/tests/django_rest/vertical/checkbox.html b/tests/django_rest/vertical/checkbox.html deleted file mode 100644 index 4e70b14..0000000 --- a/tests/django_rest/vertical/checkbox.html +++ /dev/null @@ -1,16 +0,0 @@ -
    -
    - -
    - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/checkbox_multiple.html b/tests/django_rest/vertical/checkbox_multiple.html deleted file mode 100644 index 107e957..0000000 --- a/tests/django_rest/vertical/checkbox_multiple.html +++ /dev/null @@ -1,43 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} - - {% endif %} - {% if style.inline %} -
    - {% for key, text in field.choices|items %} - - {% endfor %} -
    - {% else %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} - {% endif %} - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/dict_field.html b/tests/django_rest/vertical/dict_field.html deleted file mode 100644 index 75ffb16..0000000 --- a/tests/django_rest/vertical/dict_field.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -

    - Dictionaries are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/vertical/fieldset.html b/tests/django_rest/vertical/fieldset.html deleted file mode 100644 index 5c11108..0000000 --- a/tests/django_rest/vertical/fieldset.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} - - {{ field.label }} - - {% endif %} - {% for nested_field in field %} - {% if not nested_field.read_only %} - {% render_field nested_field style=style %} - {% endif %} - {% endfor %} -
    diff --git a/tests/django_rest/vertical/form.html b/tests/django_rest/vertical/form.html deleted file mode 100644 index fa969e7..0000000 --- a/tests/django_rest/vertical/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load rest_framework %} -{% for field in form %} - {% if not field.read_only %} - {% render_field field style=style %} - {% endif %} -{% endfor %} diff --git a/tests/django_rest/vertical/input.html b/tests/django_rest/vertical/input.html deleted file mode 100644 index 9e9b2ba..0000000 --- a/tests/django_rest/vertical/input.html +++ /dev/null @@ -1,21 +0,0 @@ -
    - {% if field.label %} - - {% endif %} - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/list_field.html b/tests/django_rest/vertical/list_field.html deleted file mode 100644 index d562ff5..0000000 --- a/tests/django_rest/vertical/list_field.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %} - - {% endif %} -

    - Lists are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/vertical/list_fieldset.html b/tests/django_rest/vertical/list_fieldset.html deleted file mode 100644 index e834558..0000000 --- a/tests/django_rest/vertical/list_fieldset.html +++ /dev/null @@ -1,12 +0,0 @@ -
    - {% if field.label %} - - {{ field.label }} - - {% endif %} -

    - Lists are not currently supported in HTML input. -

    -
    diff --git a/tests/django_rest/vertical/radio.html b/tests/django_rest/vertical/radio.html deleted file mode 100644 index 09355af..0000000 --- a/tests/django_rest/vertical/radio.html +++ /dev/null @@ -1,59 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "None" as none_choice %} -
    - {% if field.label %} - - {% endif %} - {% if style.inline %} -
    - {% if field.allow_null or field.allow_blank %} - - {% endif %} - {% for key, text in field.choices|items %} - - {% endfor %} -
    - {% else %} - {% if field.allow_null or field.allow_blank %} -
    - -
    - {% endif %} - {% for key, text in field.choices|items %} -
    - -
    - {% endfor %} - {% endif %} - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/select.html b/tests/django_rest/vertical/select.html deleted file mode 100644 index 99e3883..0000000 --- a/tests/django_rest/vertical/select.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load rest_framework %} -
    - {% if field.label %} - - {% endif %} - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/select_multiple.html b/tests/django_rest/vertical/select_multiple.html deleted file mode 100644 index 93dae46..0000000 --- a/tests/django_rest/vertical/select_multiple.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load i18n %} -{% load rest_framework %} -{% trans "No items to select." as no_items %} -
    - {% if field.label %} - - {% endif %} - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/django_rest/vertical/textarea.html b/tests/django_rest/vertical/textarea.html deleted file mode 100644 index dd47eef..0000000 --- a/tests/django_rest/vertical/textarea.html +++ /dev/null @@ -1,21 +0,0 @@ -
    - {% if field.label %} - - {% endif %} - - {% if field.errors %} - {% for error in field.errors %}{{ error }}{% endfor %} - {% endif %} - {% if field.help_text %} - {{ field.help_text|safe }} - {% endif %} -
    diff --git a/tests/flask_admin/bootstrap2/admin/actions.html b/tests/flask_admin/bootstrap2/admin/actions.html deleted file mode 100644 index 797f524..0000000 --- a/tests/flask_admin/bootstrap2/admin/actions.html +++ /dev/null @@ -1,40 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% macro dropdown(actions, btn_class='dropdown-toggle') - %} - - {{ _gettext('With selected') }} - - - -{% endmacro %} -{% macro form(actions, url) %} -{% if actions %} - -{% endif %} -{% endmacro %} -{% macro script(message, actions, actions_confirmation) %} -{% if actions %} - - - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/base.html b/tests/flask_admin/bootstrap2/admin/base.html deleted file mode 100644 index 82d0113..0000000 --- a/tests/flask_admin/bootstrap2/admin/base.html +++ /dev/null @@ -1,79 +0,0 @@ -{% import 'admin/layout.html' as layout with context - %} -{% import 'admin/static.html' as admin_static with context %} - - - - - {% block title %} - {% if admin_view.category %}{{ admin_view.category }} - {% endif %} - {{ admin_view.name }} - {{ admin_view.admin.name }} - {% endblock %} - - {% block head_meta %} - - - - - - {% endblock %} - {% block head_css %} - - - - {% if admin_view.extra_css %} - {% for css_url in admin_view.extra_css %} - - {% endfor %} - {% endif %} - - {% endblock %} - {% block head %}{% endblock %} - {% block head_tail %}{% endblock %} - - - {% block page_body %} -
    - - {% block messages %}{{ layout.messages() }}{% endblock %} - {# store the jinja2 context for form_rules rendering logic #} - {% set render_ctx = h.resolve_ctx() %} - {% block body %}{% endblock %}
    {% endblock %} - {% block tail_js %} - - - - - {% if admin_view.extra_js %} - {% for js_url in admin_view.extra_js %} - - {% endfor %} - {% endif %} - {% endblock %} - {% block tail %}{% endblock %} - - diff --git a/tests/flask_admin/bootstrap2/admin/file/form.html b/tests/flask_admin/bootstrap2/admin/file/form.html deleted file mode 100644 index 3052310..0000000 --- a/tests/flask_admin/bootstrap2/admin/file/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block header %}

    {{ header_text }}

    {% endblock %} - {% block fa_form %}{{ lib.render_form(form, dir_url) }}{% endblock %} -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/file/list.html b/tests/flask_admin/bootstrap2/admin/file/list.html deleted file mode 100644 index 9660995..0000000 --- a/tests/flask_admin/bootstrap2/admin/file/list.html +++ /dev/null @@ -1,211 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/actions.html' as actionslib with context %} -{% block body %} - {% block breadcrums %} - - {% endblock %} - {% block file_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - - {% for column in admin_view.column_list %} - - {% endfor %} - {% endblock %} - - - {% for name, path, is_dir, size, date in items %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - - {% if is_dir %} - - {% else %} - - {% if admin_view.is_column_visible('size') %} - - {% endif %} - {% if admin_view.is_column_visible('date') %} - - {% endif %} - {% endif %} - {% endblock %} - - {% endfor %} -
    - -   - {% if admin_view.is_column_sortable(column) %} - {% if sort_column == column %} - - {{ admin_view.column_label(column) }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ admin_view.column_label(column) }} - - {% endif %} - {% else %} - {{ _gettext(admin_view.column_label(column)) }} - {% endif %} -
    - {% if not is_dir %} - - {% endif %} - - {% block list_row_actions scoped %} - {% if admin_view.can_rename and path and name != '..' %} - {%- if admin_view.rename_modal - %} - {{ lib.add_modal_button(url=get_url('.rename', path=path, modal=True), - title=_gettext('Rename File'), - content=' - - ') }} - {% else %} - - - - {%- endif - %} - {% endif %} - {%- if admin_view.can_delete and path - %} - {% if is_dir %} - {% if name != '..' and admin_view.can_delete_dirs %} -
    - {{ delete_form.path(value=path) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    - {% endif %} - {% else %} -
    - {{ delete_form.path(value=path) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    - {% endif %} - {%- endif - %} - {% endblock %} -
    - - - {{ name }} - - - {% if admin_view.can_download %} - {%- if admin_view.edit_modal and admin_view.is_file_editable(path) - %} - {{ lib.add_modal_button(url=get_file_url(path, modal=True)|safe, - btn_class='', content=name) }} - {% else %} - {{ name }} - {%- endif - %} - {% else %} - {{ name }} - {% endif %} - {{ size|filesizeformat }}{{ timestamp_format(date) }}
    -
    - {% endblock %} - {% block toolbar %} -
    - {% if admin_view.can_upload %} -
    - {%- if admin_view.upload_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True), - btn_class="btn btn-large", - content=_gettext('Upload File')) }} - {% else %} - - {{ _gettext('Upload File') }} - - {%- endif - %} -
    - {% endif %} - {% if admin_view.can_mkdir %} -
    - {%- if admin_view.mkdir_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True), - btn_class="btn btn-large", - content=_gettext('Create Directory')) }} - {% else %} - - {{ _gettext('Create Directory') }} - - {%- endif - %} -
    - {% endif %} - {% if actions %} -
    - {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-large') }} -
    - {% endif %} -
    - {% endblock %} - {% block actions %} - {{ actionslib.form(actions, get_url('.action_view')) }} - {% endblock %} - {%- if admin_view.rename_modal or admin_view.mkdir_modal - or admin_view.upload_modal or admin_view.edit_modal -%} - {{ lib.add_modal_window() }} - {%- endif - %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ actionslib.script(_gettext('Please select at least one file.'), - actions, - actions_confirmation) }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/file/modals/form.html b/tests/flask_admin/bootstrap2/admin/file/modals/form.html deleted file mode 100644 index c9efe92..0000000 --- a/tests/flask_admin/bootstrap2/admin/file/modals/form.html +++ /dev/null @@ -1,15 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {# content added to modal-content #} - {% block fa_form %} - {{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }} - {% endblock %} -{% endblock %} -{% block tail %} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/index.html b/tests/flask_admin/bootstrap2/admin/index.html deleted file mode 100644 index 6c4bda4..0000000 --- a/tests/flask_admin/bootstrap2/admin/index.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends 'admin/master.html' %} -{% block body %}{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/layout.html b/tests/flask_admin/bootstrap2/admin/layout.html deleted file mode 100644 index 2076ab5..0000000 --- a/tests/flask_admin/bootstrap2/admin/layout.html +++ /dev/null @@ -1,105 +0,0 @@ -{% macro menu_icon(item) - %} -{% set icon_type = item.get_icon_type() %} -{%- if icon_type %} -{% set icon_value = item.get_icon_value() %} -{% if icon_type == 'glyph' %} - -{% elif icon_type == 'fa' %} - -{% elif icon_type == 'image' %} - menu image -{% elif icon_type == 'image-url' %} - menu image -{% endif %} -{% endif %} -{%- endmacro %} -{% macro menu(menu_root=None) %} -{% if menu_root is none %} - {% set menu_root = admin_view.admin.menu() %} -{% endif %} -{%- for item in menu_root %} -{%- if item.is_category() - %} -{% set children = item.get_children() %} -{%- if children %} -{% set class_name = item.get_class_name() or '' %} -{%- if item.is_active(admin_view) %} - - {% endif %} - {%- else %} - {%- if item.is_accessible() and item.is_visible() - %} - {% set class_name = item.get_class_name() %} - {%- if item.is_active(admin_view) %} -
  • - {%- else %} - - {%- endif %} - - {{ menu_icon(item) }}{{ item.name }} - -
  • - {%- endif - %} - {% endif - %} -{% endfor %} -{% endmacro %} -{% macro menu_links(links=None) %} -{% if links is none %}{% set links = admin_view.admin.menu_links() %}{% endif %} -{% for item in links %} - {% set class_name = item.get_class_name() %} - {% if item.is_accessible() and item.is_visible() %} - - {{ menu_icon(item) }}{{ item.name }} - - {% endif %} -{% endfor %} -{% endmacro %} -{% macro messages() %} -{% with messages = get_flashed_messages(with_categories=True) %} - {% if messages %} - {% for category, m in messages %} - {% if category %} -
    - {% else %} -
    - {% endif %} - - x - - {{ m }} -
    - {% endfor %} - {% endif %} - {% endwith %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/lib.html b/tests/flask_admin/bootstrap2/admin/lib.html deleted file mode 100644 index 80c34ab..0000000 --- a/tests/flask_admin/bootstrap2/admin/lib.html +++ /dev/null @@ -1,257 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{# ---------------------- Pager -------------------------- #} -{% macro pager(page, pages, generator) - %} -{% if pages > 1 %} - -{% endif %} -{%- endmacro %} -{% macro simple_pager(page, have_next, generator) - %} - -{%- endmacro %} -{# ---------------------- Modal Window -------------------------- #} -{% macro add_modal_window(modal_window_id='fa_modal_window') %} - -{% endmacro %} -{% macro add_modal_button(url='', title='', content='', modal_window_id='fa_modal_window', btn_class='icon') %} - - {{ content|safe }} - -{% endmacro %} -{# ---------------------- Forms -------------------------- #} -{% macro render_field(form, field, kwargs={}, caller=None) %} -{% set direct_error = h.is_field_error(field.errors) %} -
    -
    - -
    -
    -
    - {{ field(**kwargs)|safe }} -
    - {% if field.description %} -

    - {{ field.description|safe }} -

    - {% endif %} - {% if direct_error %} -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    - {% endif %} -
    - {% if caller %}{{ caller(form, field, direct_error, kwargs) }}{% endif %} -
    -{% endmacro %} -{% macro render_header(form, text) %} -

    {{ text }}

    -{% endmacro %} -{% macro render_form_fields(form, form_opts=None) %} -{% if form.hidden_tag is defined %} - {{ form.hidden_tag() }} -{% else %} - {% if csrf_token %} - - {% endif %} - {% for f in form if f.widget.input_type == 'hidden' %} - {{ f }} - {% endfor %} -{% endif %} -{% if form_opts and form_opts.form_rules %} - {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %} -{% else %} - {% for f in form if f.widget.input_type != 'hidden' %} - {% if form_opts %} - {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %} - {% else %} - {% set kwargs = {} %} - {% endif %} - {{ render_field(form, f, kwargs) }} - {% endfor %} -{% endif %} -{% endmacro %} -{% macro form_tag(form=None, action=None) %} -
    -
    - {{ caller() }} -
    -
    -{% endmacro %} -{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %} -
    -
    -
    - - {% if extra %}{{ extra }}{% endif %} - {% if cancel_url %} - - {{ _gettext('Cancel') }} - - {% endif %} -
    -
    -{% endmacro %} -{% macro render_form(form, cancel_url, extra=None, form_opts=None, action=None, is_modal=False) - %} -{% call form_tag(action=action) %} -{{ render_form_fields(form, form_opts=form_opts) }} -{{ render_form_buttons(cancel_url, extra, is_modal) }} -{% endcall %} -{% endmacro %} -{% macro form_css() %} - - -{% if config.MAPBOX_MAP_ID %} - - -{% endif %} -{% if editable_columns %} - -{% endif %} -{% endmacro %} -{% macro form_js() %} -{% if config.MAPBOX_MAP_ID %} - - - - {% if config.MAPBOX_SEARCH %} - - - {% endif %} -{% endif %} - -{% if editable_columns %} - -{% endif %} - -{% endmacro %} -{% macro extra() %} -{% if admin_view.can_create %} - -{% endif %} -{% if admin_view.can_edit %} - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/master.html b/tests/flask_admin/bootstrap2/admin/master.html deleted file mode 100644 index 8f27dad..0000000 --- a/tests/flask_admin/bootstrap2/admin/master.html +++ /dev/null @@ -1 +0,0 @@ -{% extends admin_base_template %} diff --git a/tests/flask_admin/bootstrap2/admin/model/create.html b/tests/flask_admin/bootstrap2/admin/model/create.html deleted file mode 100644 index 697a38e..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/create.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block create_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/details.html b/tests/flask_admin/bootstrap2/admin/model/details.html deleted file mode 100644 index 2627da8..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/details.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block details_search %} -
    -
    - {{ _gettext('Filter') }} - -
    -
    - {% endblock %} - {% block details_table %} - - {% for c, name in details_columns %} - - - - - {% endfor %} -
    - - {{ name }} - - {{ get_value(model, c) }}
    - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/edit.html b/tests/flask_admin/bootstrap2/admin/model/edit.html deleted file mode 100644 index 9eef6a7..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/edit.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block edit_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/inline_field_list.html b/tests/flask_admin/bootstrap2/admin/model/inline_field_list.html deleted file mode 100644 index c46db1b..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/inline_field_list.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'admin/model/inline_list_base.html' as base with context %} -{% macro render_field(field) %} -{{ field }} -{% if h.is_field_error(field.errors) %} -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    -{% endif %} -{% endmacro %} -{{ base.render_inline_fields(field, template, render_field, check) }} diff --git a/tests/flask_admin/bootstrap2/admin/model/inline_form.html b/tests/flask_admin/bootstrap2/admin/model/inline_form.html deleted file mode 100644 index 9a4b9fa..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/inline_form.html +++ /dev/null @@ -1,4 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -
    - {{ lib.render_form_fields(field.form, form_opts=form_opts) }} -
    diff --git a/tests/flask_admin/bootstrap2/admin/model/inline_list_base.html b/tests/flask_admin/bootstrap2/admin/model/inline_list_base.html deleted file mode 100644 index 66327b8..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/inline_list_base.html +++ /dev/null @@ -1,55 +0,0 @@ -{% macro render_inline_fields(field, template, render, check=None) %} -
    - {# existing inline form fields #} -
    - {% for subfield in field %} -
    - {%- if not check or check(subfield) %} - - {{ field.label.text }} #{{ loop.index }} -
    - {% if subfield.get_pk and subfield.get_pk() %} - - - {% else %} - - - - {% endif %} -
    -
    - {%- endif - %} - {{ render(subfield) }} -
    - {% endfor %} -
    - {# template for new inline form fields #} -
    - {% filter forceescape %} -
    - - {{ _gettext('New') }} {{ field.label.text }} -
    - - - -
    -
    - {{ render(template) }} -
    - {% endfilter %} -
    - - {{ _gettext('Add') }} {{ field.label.text }} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/model/layout.html b/tests/flask_admin/bootstrap2/admin/model/layout.html deleted file mode 100644 index daf925a..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/layout.html +++ /dev/null @@ -1,130 +0,0 @@ -{% macro filter_options(btn_class='dropdown-toggle') %} - - {{ _gettext('Add Filter') }} - - - -{% endmacro %} -{% macro export_options(btn_class='dropdown-toggle') %} -{% if admin_view.export_types|length > 1 %} - -{% else %} -
  • - - {{ _gettext('Export') }} - -
  • -{% endif %} -{% endmacro %} -{% macro filter_form() %} -
    - {% for arg_name, arg_value in extra_args.items() %} - - {% endfor %} - {% if sort_column is not none %} - - {% endif %} - {% if sort_desc %} - - {% endif %} - {% if search %} - - {% endif %} - {% if page_size != default_page_size %} - - {% endif %} -
    - - {% if active_filters %} - - {{ _gettext('Reset Filters') }} - - {% endif %} -
    -
    -
    -
    -{% endmacro %} -{% macro search_form(input_class=None) %} -
    - {% for flt_name, flt_value in filter_args.items() %} - - {% endfor %} - {% for arg_name, arg_value in extra_args.items() %} - - {% endfor %} - {% if page_size != default_page_size %} - - {% endif %} - {% if sort_column is not none %} - - {% endif %} - {% if sort_desc %} - - {% endif %} - {%- set full_search_placeholder = _gettext('Search') %} - {%- if search_placeholder %}{% set full_search_placeholder = [full_search_placeholder, search_placeholder] | join(": ") %} -{% endif %} -{% if search %} -
    - - - - -
    -{% else %} - -{% endif %} -
    -{% endmacro %} -{% macro page_size_form(generator, btn_class='dropdown-toggle') %} - - {{ page_size }} {{ _gettext('items') }} - - - -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/model/list.html b/tests/flask_admin/bootstrap2/admin/model/list.html deleted file mode 100755 index a9185d1..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/list.html +++ /dev/null @@ -1,194 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/model/layout.html' as model_layout with context %} -{% import 'admin/actions.html' as actionlib with context %} -{% import 'admin/model/row_actions.html' as row_actions with context %} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block model_menu_bar %} - - {% endblock %} - {% if filters %} - {{ model_layout.filter_form() }} -
    - {% endif %} - {% block model_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_header %} - {% if admin_view.column_display_actions %} - - {% endif %} - {% endblock %} - {% for c, name in list_columns %} - {% set column = loop.index0 %} - - {% endfor %} - {% endblock %} - - - {% for row in data %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_column scoped %} - {% if admin_view.column_display_actions %} - - {%- endif - %} - {% endblock %} - {% for c, name in list_columns %} - - {% endfor %} - {% endblock %} - - {% else %} - - - - {% endfor %} -
    - -   - {% if admin_view.is_sortable(c) %} - {% if sort_column == column %} - - {{ name }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ name }} - - {% endif %} - {% else %} - {{ name }} - {% endif %} - {% if admin_view.column_descriptions.get(c) %} - - {% endif %} -
    - - - {% block list_row_actions scoped %} - {% for action in list_row_actions %}{{ action.render_ctx(get_pk_value(row), row) }}{% endfor %} - {% endblock %} - - {% if admin_view.is_editable(c) %} - {% set form = list_forms[get_pk_value(row)] %} - {% if form.csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }} - {% elif csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=csrf_token()) }} - {% else %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c)) }} - {% endif %} - {% else %} - {{ get_value(row, c) }} - {% endif %} -
    - {% block empty_list_message %} -
    - {{ admin_view.get_empty_list_message() }} -
    - {% endblock %} -
    -
    - {% block list_pager %} - {% if num_pages is not none %} - {{ lib.pager(page, num_pages, pager_url) }} - {% else %} - {{ lib.simple_pager(page, data|length == page_size, pager_url) }} - {% endif %} - {% endblock %} - {% endblock %} - {{ actionlib.form(actions, get_url('.action_view')) }} - {%- if admin_view.edit_modal or admin_view.create_modal or admin_view.details_modal - %} - {{ lib.add_modal_window() }} - {%- endif - %} - {% endblock %} - {% block tail %} - {{ super() }} - {% if filter_groups %} - - - {% endif %} - {{ lib.form_js() }} - - {{ actionlib.script(_gettext('Please select at least one record.'), - actions, - actions_confirmation) }} - {% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/modals/create.html b/tests/flask_admin/bootstrap2/admin/model/modals/create.html deleted file mode 100644 index b0b961b..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/modals/create.html +++ /dev/null @@ -1,21 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - {# "save and add" button is removed from modal (it won't function properly) #} - {% block create_form %} - {{ lib.render_form(form, return_url, extra=None, form_opts=form_opts, - action=url_for('.create_view', url=return_url), - is_modal=True) }} - {% endblock %} -{% endblock %} -{% block tail %} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/modals/details.html b/tests/flask_admin/bootstrap2/admin/model/modals/details.html deleted file mode 100755 index 47894df..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/modals/details.html +++ /dev/null @@ -1,36 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block details_search %} -
    -
    - {{ _gettext('Filter') }} - -
    -
    - {% endblock %} - {% block details_table %} - - {% for c, name in details_columns %} - - - - - {% endfor %} -
    - - {{ name }} - - {{ get_value(model, c) }}
    - {% endblock %} -{% endblock %} -{% block tail %} - - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/modals/edit.html b/tests/flask_admin/bootstrap2/admin/model/modals/edit.html deleted file mode 100644 index 7d4f3e3..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/modals/edit.html +++ /dev/null @@ -1,21 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - {# "save and continue" button is removed from modal (it won't function properly) #} - {% block edit_form %} - {{ lib.render_form(form, return_url, extra=None, form_opts=form_opts, - action=url_for('.edit_view', id=request.args.get('id'), url=return_url), - is_modal=True) }} - {% endblock %} -{% endblock %} -{% block tail %} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/model/row_actions.html b/tests/flask_admin/bootstrap2/admin/model/row_actions.html deleted file mode 100644 index 44debdc..0000000 --- a/tests/flask_admin/bootstrap2/admin/model/row_actions.html +++ /dev/null @@ -1,37 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -{% macro link(action, url, icon_class=None) %} - - - -{% endmacro %} -{% macro view_row(action, row_id, row) %} -{{ link(action, get_url('.details_view', id=row_id, url=return_url), 'fa fa-eye glyphicon icon-eye-open') }} -{% endmacro %} -{% macro view_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.details_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro edit_row(action, row_id, row) %} -{{ link(action, get_url('.edit_view', id=row_id, url=return_url), 'fa fa-pencil glyphicon icon-pencil') }} -{% endmacro %} -{% macro edit_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.edit_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro delete_row(action, row_id, row) %} -
    - {{ delete_form.id(value=get_pk_value(row)) }} - {{ delete_form.url(value=return_url) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap2/admin/rediscli/console.html b/tests/flask_admin/bootstrap2/admin/rediscli/console.html deleted file mode 100644 index 441c5ce..0000000 --- a/tests/flask_admin/bootstrap2/admin/rediscli/console.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% block head %} - {{ super() }} - -{% endblock %} -{% block body %} -
    -
    -
    -
    - -
    -
    -
    -{% endblock %} -{% block tail %} - {{ super() }} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap2/admin/rediscli/response.html b/tests/flask_admin/bootstrap2/admin/rediscli/response.html deleted file mode 100644 index 661852c..0000000 --- a/tests/flask_admin/bootstrap2/admin/rediscli/response.html +++ /dev/null @@ -1,35 +0,0 @@ -{% macro render(item, depth=0) %} -{% set type = type_name(item) %} -{% if type == 'tuple' or type == 'list' %} - {% if not item %} - Empty {{ type }}. - {% else %} - {% for n in item %} - {{ loop.index }}) {{ render(n, depth + 1) }} -
    - {% endfor %} - {% endif %} -{% elif type == 'bool' %} - {% if depth == 0 and item %} - OK - {% else %} - {{ item }} - {% endif %} -{% elif type == 'str' or type == 'unicode' %} - "{{ item }}" -{% elif type == 'bytes' %} - "{{ item.decode('utf-8') }}" -{% elif type == 'TextWrapper' %} -
    -{{ item }}
    -    
    -{% elif type == 'dict' %} - {% for k, v in item.items() %} - {{ loop.index }}) {{ k }} - {{ render(v, depth + 1) }} -
    - {% endfor %} -{% else %} - {{ item }} -{% endif %} -{% endmacro %} -{{ render(result) }} diff --git a/tests/flask_admin/bootstrap2/admin/static.html b/tests/flask_admin/bootstrap2/admin/static.html deleted file mode 100644 index 811f9ba..0000000 --- a/tests/flask_admin/bootstrap2/admin/static.html +++ /dev/null @@ -1,3 +0,0 @@ -{% macro url() - %} -{{ get_url('{admin_endpoint}.static'.format(admin_endpoint=admin_view.admin.endpoint), *varargs, **kwargs) }} -{%- endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/actions.html b/tests/flask_admin/bootstrap3/admin/actions.html deleted file mode 100644 index f188027..0000000 --- a/tests/flask_admin/bootstrap3/admin/actions.html +++ /dev/null @@ -1,40 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% macro dropdown(actions, btn_class='btn dropdown-toggle') - %} - - {{ _gettext('With selected') }} - - - -{% endmacro %} -{% macro form(actions, url) %} -{% if actions %} - -{% endif %} -{% endmacro %} -{% macro script(message, actions, actions_confirmation) %} -{% if actions %} - - - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/base.html b/tests/flask_admin/bootstrap3/admin/base.html deleted file mode 100644 index fa14137..0000000 --- a/tests/flask_admin/bootstrap3/admin/base.html +++ /dev/null @@ -1,96 +0,0 @@ -{% import 'admin/layout.html' as layout with context - %} -{% import 'admin/static.html' as admin_static with context %} - - - - - {% block title %} - {% if admin_view.category %}{{ admin_view.category }} - {% endif %} - {{ admin_view.name }} - {{ admin_view.admin.name }} - {% endblock %} - - {% block head_meta %} - - - - - - {% endblock %} - {% block head_css %} - - {% if config.get('FLASK_ADMIN_SWATCH', 'default') == 'default' %} - - {% endif %} - - - {% if admin_view.extra_css %} - {% for css_url in admin_view.extra_css %} - - {% endfor %} - {% endif %} - - {% endblock %} - {% block head %}{% endblock %} - {% block head_tail %}{% endblock %} - - - {% block page_body %} -
    - - {% block messages %}{{ layout.messages() }}{% endblock %} - {# store the jinja2 context for form_rules rendering logic #} - {% set render_ctx = h.resolve_ctx() %} - {% block body %}{% endblock %}
    {% endblock %} - {% block tail_js %} - - - - - - {% if admin_view.extra_js %} - {% for js_url in admin_view.extra_js %} - - {% endfor %} - {% endif %} - {% endblock %} - {% block tail %}{% endblock %} - - diff --git a/tests/flask_admin/bootstrap3/admin/file/form.html b/tests/flask_admin/bootstrap3/admin/file/form.html deleted file mode 100644 index 3052310..0000000 --- a/tests/flask_admin/bootstrap3/admin/file/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block header %}

    {{ header_text }}

    {% endblock %} - {% block fa_form %}{{ lib.render_form(form, dir_url) }}{% endblock %} -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/file/list.html b/tests/flask_admin/bootstrap3/admin/file/list.html deleted file mode 100644 index 98677bd..0000000 --- a/tests/flask_admin/bootstrap3/admin/file/list.html +++ /dev/null @@ -1,209 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/actions.html' as actionslib with context %} -{% block body %} - {% block breadcrums %} - - {% endblock %} - {% block file_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - - {% for column in admin_view.column_list %} - - {% endfor %} - {% endblock %} - - - {% for name, path, is_dir, size, date in items %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - - {% if is_dir %} - - {% else %} - - {% if admin_view.is_column_visible('size') %} - - {% endif %} - {% endif %} - {% if admin_view.is_column_visible('date') %} - - {% endif %} - {% endblock %} - - {% endfor %} -
    - -   - {% if admin_view.is_column_sortable(column) %} - {% if sort_column == column %} - - {{ admin_view.column_label(column) }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ admin_view.column_label(column) }} - - {% endif %} - {% else %} - {{ _gettext(admin_view.column_label(column)) }} - {% endif %} -
    - {% if not is_dir %} - - {% endif %} - - {% block list_row_actions scoped %} - {% if admin_view.can_rename and path and name != '..' %} - {%- if admin_view.rename_modal - %} - {{ lib.add_modal_button(url=get_url('.rename', path=path, modal=True), - title=_gettext('Rename File'), - content=' - - ') }} - {% else %} - - - - {%- endif - %} - {% endif %} - {%- if admin_view.can_delete and path - %} - {% if is_dir %} - {% if name != '..' and admin_view.can_delete_dirs %} -
    - {{ delete_form.path(value=path) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    - {% endif %} - {% else %} -
    - {{ delete_form.path(value=path) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    - {% endif %} - {%- endif - %} - {% endblock %} -
    - - - {{ name }} - - - {% if admin_view.can_download %} - {%- if admin_view.edit_modal and admin_view.is_file_editable(path) - %} - {{ lib.add_modal_button(url=get_file_url(path, modal=True)|safe, - btn_class='', content=name) }} - {% else %} - {{ name }} - {%- endif - %} - {% else %} - {{ name }} - {% endif %} - {{ size|filesizeformat }}{{ timestamp_format(date) }}
    -
    - {% endblock %} - {% block toolbar %} -
    - {% if admin_view.can_upload %} -
    - {%- if admin_view.upload_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True), - btn_class="btn btn-default btn-large", - content=_gettext('Upload File')) }} - {% else %} - - {{ _gettext('Upload File') }} - - {%- endif - %} -
    - {% endif %} - {% if admin_view.can_mkdir %} -
    - {%- if admin_view.mkdir_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True), - btn_class="btn btn-default btn-large", - content=_gettext('Create Directory')) }} - {% else %} - - {{ _gettext('Create Directory') }} - - {%- endif - %} -
    - {% endif %} - {% if actions %} -
    - {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-default btn-large') }} -
    - {% endif %} -
    - {% endblock %} - {% block actions %} - {{ actionslib.form(actions, get_url('.action_view')) }} - {% endblock %} - {%- if admin_view.rename_modal or admin_view.mkdir_modal - or admin_view.upload_modal or admin_view.edit_modal -%} - {{ lib.add_modal_window() }} - {%- endif - %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ actionslib.script(_gettext('Please select at least one file.'), - actions, - actions_confirmation) }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/file/modals/form.html b/tests/flask_admin/bootstrap3/admin/file/modals/form.html deleted file mode 100644 index 6937032..0000000 --- a/tests/flask_admin/bootstrap3/admin/file/modals/form.html +++ /dev/null @@ -1,19 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {# content added to modal-content #} - - -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/index.html b/tests/flask_admin/bootstrap3/admin/index.html deleted file mode 100644 index 6c4bda4..0000000 --- a/tests/flask_admin/bootstrap3/admin/index.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends 'admin/master.html' %} -{% block body %}{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/layout.html b/tests/flask_admin/bootstrap3/admin/layout.html deleted file mode 100644 index f6b2efa..0000000 --- a/tests/flask_admin/bootstrap3/admin/layout.html +++ /dev/null @@ -1,109 +0,0 @@ -{% macro menu_icon(item) - %} -{% set icon_type = item.get_icon_type() %} -{%- if icon_type %} -{% set icon_value = item.get_icon_value() %} -{% if icon_type == 'glyph' %} - -{% elif icon_type == 'fa' %} - -{% elif icon_type == 'image' %} - menu image -{% elif icon_type == 'image-url' %} - menu image -{% endif %} -{% endif %} -{%- endmacro %} -{% macro menu(menu_root=None) %} -{% if menu_root is none %} - {% set menu_root = admin_view.admin.menu() %} -{% endif %} -{%- for item in menu_root %} -{%- if item.is_category() - %} -{% set children = item.get_children() %} -{%- if children %} -{% set class_name = item.get_class_name() or '' %} -{%- if item.is_active(admin_view) %} - - {% endif %} - {%- else %} - {%- if item.is_accessible() and item.is_visible() - %} - {% set class_name = item.get_class_name() %} - {%- if item.is_active(admin_view) %} -
  • - {%- else %} - - {%- endif %} - - {{ menu_icon(item) }}{{ item.name }} - -
  • - {%- endif - %} - {% endif - %} -{% endfor %} -{% endmacro %} -{% macro menu_links(links=None) %} -{% if links is none %}{% set links = admin_view.admin.menu_links() %}{% endif %} -{% for item in links %} - {% set class_name = item.get_class_name() %} - {% if item.is_accessible() and item.is_visible() %} - - {{ menu_icon(item) }}{{ item.name }} - - {% endif %} -{% endfor %} -{% endmacro %} -{% macro messages() %} -{% with messages = get_flashed_messages(with_categories=True) %} - {% if messages %} - {% for category, m in messages %} - {% if category %} - {# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #} - {% set mapping = {'message': 'info', 'error': 'danger'} %} -
    - {% else %} -
    - {% endif %} - - {{ m }} -
    - {% endfor %} - {% endif %} - {% endwith %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/lib.html b/tests/flask_admin/bootstrap3/admin/lib.html deleted file mode 100644 index 41a968c..0000000 --- a/tests/flask_admin/bootstrap3/admin/lib.html +++ /dev/null @@ -1,252 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{# ---------------------- Pager -------------------------- #} -{% macro pager(page, pages, generator) - %} -{% if pages > 1 %} -
      - {% set min = page - 3 %} - {% set max = page + 3 + 1 %} - {% if min < 0 %} - {% set max = max - min %} - {% endif %} - {% if max >= pages %} - {% set min = min - max + pages %} - {% endif %} - {% if min < 0 %} - {% set min = 0 %} - {% endif %} - {% if max >= pages %} - {% set max = pages %} - {% endif %} - {% if min > 0 %} -
    • - « -
    • - {% else %} -
    • - « -
    • - {% endif %} - {% if page > 0 %} -
    • - < -
    • - {% else %} -
    • - < -
    • - {% endif %} - {% for p in range(min, max) %} - {% if page == p %} -
    • - {{ p + 1 }} -
    • - {% else %} -
    • - {{ p + 1 }} -
    • - {% endif %} - {% endfor %} - {% if page + 1 < pages %} -
    • - > -
    • - {% else %} -
    • - > -
    • - {% endif %} - {% if max < pages %} -
    • - » -
    • - {% else %} -
    • - » -
    • - {% endif %} -
    -{% endif %} -{%- endmacro %} -{% macro simple_pager(page, have_next, generator) - %} -
      - {% if page > 0 %} -
    • - < -
    • - {% else %} -
    • - < -
    • - {% endif %} - {% if have_next %} -
    • - > -
    • - {% else %} -
    • - > -
    • - {% endif %} -
    -{%- endmacro %} -{# ---------------------- Modal Window ------------------- #} -{% macro add_modal_window(modal_window_id='fa_modal_window', modal_label_id='fa_modal_label') %} - -{% endmacro %} -{% macro add_modal_button(url='', title='', content='', modal_window_id='fa_modal_window', btn_class='icon') %} - - {{ content|safe }} - -{% endmacro %} -{# ---------------------- Forms -------------------------- #} -{% macro render_field(form, field, kwargs={}, caller=None) %} -{% set direct_error = h.is_field_error(field.errors) %} -
    - -
    - {% set _dummy = kwargs.setdefault('class', 'form-control') %} - {{ field(**kwargs)|safe }} - {% if field.description %} -

    - {{ field.description|safe }} -

    - {% endif %} - {% if direct_error %} -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    - {% endif %} -
    - {% if caller %}{{ caller(form, field, direct_error, kwargs) }}{% endif %} -
    -{% endmacro %} -{% macro render_header(form, text) %} -

    {{ text }}

    -{% endmacro %} -{% macro render_form_fields(form, form_opts=None) %} -{% if form.hidden_tag is defined %} - {{ form.hidden_tag() }} -{% else %} - {% if csrf_token %} - - {% endif %} - {% for f in form if f.widget.input_type == 'hidden' %} - {{ f }} - {% endfor %} -{% endif %} -{% if form_opts and form_opts.form_rules %} - {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %} -{% else %} - {% for f in form if f.widget.input_type != 'hidden' %} - {% if form_opts %} - {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %} - {% else %} - {% set kwargs = {} %} - {% endif %} - {{ render_field(form, f, kwargs) }} - {% endfor %} -{% endif %} -{% endmacro %} -{% macro form_tag(form=None, action=None) %} -
    - {{ caller() }} -
    -{% endmacro %} -{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %} -
    -
    -
    - - {% if extra %}{{ extra }}{% endif %} - {% if cancel_url %} - - {{ _gettext('Cancel') }} - - {% endif %} -
    -
    -{% endmacro %} -{% macro render_form(form, cancel_url, extra=None, form_opts=None, action=None, is_modal=False) - %} -{% call form_tag(action=action) %} -{{ render_form_fields(form, form_opts=form_opts) }} -{{ render_form_buttons(cancel_url, extra, is_modal) }} -{% endcall %} -{% endmacro %} -{% macro form_css() %} - - - -{% if config.MAPBOX_MAP_ID %} - - -{% endif %} -{% if editable_columns %} - -{% endif %} -{% endmacro %} -{% macro form_js() %} -{% if config.MAPBOX_MAP_ID %} - - - - {% if config.MAPBOX_SEARCH %} - - - {% endif %} -{% endif %} - -{% if editable_columns %} - -{% endif %} - -{% endmacro %} -{% macro extra() %} -{% if admin_view.can_create %} - -{% endif %} -{% if admin_view.can_edit %} - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/master.html b/tests/flask_admin/bootstrap3/admin/master.html deleted file mode 100644 index 8f27dad..0000000 --- a/tests/flask_admin/bootstrap3/admin/master.html +++ /dev/null @@ -1 +0,0 @@ -{% extends admin_base_template %} diff --git a/tests/flask_admin/bootstrap3/admin/model/create.html b/tests/flask_admin/bootstrap3/admin/model/create.html deleted file mode 100644 index 697a38e..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/create.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block create_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/details.html b/tests/flask_admin/bootstrap3/admin/model/details.html deleted file mode 100644 index de674a8..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/details.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block details_search %} -
    - {{ _gettext('Filter') }} - -
    - {% endblock %} - {% block details_table %} - - {% for c, name in details_columns %} - - - - - {% endfor %} -
    - - {{ name }} - - {{ get_value(model, c) }}
    - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/edit.html b/tests/flask_admin/bootstrap3/admin/model/edit.html deleted file mode 100644 index 9eef6a7..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/edit.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block edit_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/inline_field_list.html b/tests/flask_admin/bootstrap3/admin/model/inline_field_list.html deleted file mode 100644 index 347977c..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/inline_field_list.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'admin/model/inline_list_base.html' as base with context %} -{% macro render_field(field) %} -{{ field }} -{% if h.is_field_error(field.errors) %} -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    -{% endif %} -{% endmacro %} -{{ base.render_inline_fields(field, template, render_field, check) }} diff --git a/tests/flask_admin/bootstrap3/admin/model/inline_form.html b/tests/flask_admin/bootstrap3/admin/model/inline_form.html deleted file mode 100644 index 9a4b9fa..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/inline_form.html +++ /dev/null @@ -1,4 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -
    - {{ lib.render_form_fields(field.form, form_opts=form_opts) }} -
    diff --git a/tests/flask_admin/bootstrap3/admin/model/inline_list_base.html b/tests/flask_admin/bootstrap3/admin/model/inline_list_base.html deleted file mode 100644 index fac497e..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/inline_list_base.html +++ /dev/null @@ -1,61 +0,0 @@ -{% macro render_inline_fields(field, template, render, check=None) %} -
    - {# existing inline form fields #} -
    - {% for subfield in field %} -
    - {%- if not check or check(subfield) %} - - - {{ field.label.text }} #{{ loop.index }} -
    - {% if subfield.get_pk and subfield.get_pk() %} - - - {% else %} - - - - {% endif %} -
    -
    -
    -
    - {%- endif - %} - {{ render(subfield) }} -
    - {% endfor %} -
    - {# template for new inline form fields #} -
    - {% filter forceescape %} -
    - - - {{ _gettext('New') }} {{ field.label.text }} - -
    - - - -
    -
    -
    - {{ render(template) }} -
    - {% endfilter %} -
    - - {{ _gettext('Add') }} {{ field.label.text }} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/model/layout.html b/tests/flask_admin/bootstrap3/admin/model/layout.html deleted file mode 100644 index 6e5510d..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/layout.html +++ /dev/null @@ -1,136 +0,0 @@ -{% macro filter_options(btn_class='dropdown-toggle') %} - - {{ _gettext('Add Filter') }} - - - -{% endmacro %} -{% macro export_options(btn_class='dropdown-toggle') %} -{% if admin_view.export_types|length > 1 %} - -{% else %} -
  • - - {{ _gettext('Export') }} - -
  • -{% endif %} -{% endmacro %} -{% macro filter_form() %} -
    - {% for arg_name, arg_value in extra_args.items() %} - - {% endfor %} - {% if sort_column is not none %} - - {% endif %} - {% if sort_desc %} - - {% endif %} - {% if search %} - - {% endif %} - {% if page_size != default_page_size %} - - {% endif %} -
    - - {% if active_filters %} - - {{ _gettext('Reset Filters') }} - - {% endif %} -
    -
    -
    -
    -{% endmacro %} -{% macro search_form(input_class=None) %} - -{% endmacro %} -{% macro page_size_form(generator, btn_class='dropdown-toggle') %} - - {{ page_size }} {{ _gettext('items') }} - - - -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/model/list.html b/tests/flask_admin/bootstrap3/admin/model/list.html deleted file mode 100755 index 4ad7d02..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/list.html +++ /dev/null @@ -1,196 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/model/layout.html' as model_layout with context %} -{% import 'admin/actions.html' as actionlib with context %} -{% import 'admin/model/row_actions.html' as row_actions with context %} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block model_menu_bar %} - - {% endblock %} - {% if filters %} - {{ model_layout.filter_form() }} -
    - {% endif %} - {% block model_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_header %} - {% if admin_view.column_display_actions %} - - {% endif %} - {% endblock %} - {% for c, name in list_columns %} - {% set column = loop.index0 %} - - {% endfor %} - {% endblock %} - - - {% for row in data %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_column scoped %} - {% if admin_view.column_display_actions %} - - {%- endif - %} - {% endblock %} - {% for c, name in list_columns %} - - {% endfor %} - {% endblock %} - - {% else %} - - - - {% endfor %} -
    - -   - {% if admin_view.is_sortable(c) %} - {% if sort_column == column %} - - {{ name }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ name }} - - {% endif %} - {% else %} - {{ name }} - {% endif %} - {% if admin_view.column_descriptions.get(c) %} - - {% endif %} -
    - - - {% block list_row_actions scoped %} - {% for action in list_row_actions %}{{ action.render_ctx(get_pk_value(row), row) }}{% endfor %} - {% endblock %} - - {% if admin_view.is_editable(c) %} - {% set form = list_forms[get_pk_value(row)] %} - {% if form.csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }} - {% elif csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=csrf_token()) }} - {% else %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c)) }} - {% endif %} - {% else %} - {{ get_value(row, c) }} - {% endif %} -
    - {% block empty_list_message %} -
    - {{ admin_view.get_empty_list_message() }} -
    - {% endblock %} -
    -
    - {% block list_pager %} - {% if num_pages is not none %} - {{ lib.pager(page, num_pages, pager_url) }} - {% else %} - {{ lib.simple_pager(page, data|length == page_size, pager_url) }} - {% endif %} - {% endblock %} - {% endblock %} - {% block actions %} - {{ actionlib.form(actions, get_url('.action_view')) }} - {% endblock %} - {%- if admin_view.edit_modal or admin_view.create_modal or admin_view.details_modal - %} - {{ lib.add_modal_window() }} - {%- endif - %} - {% endblock %} - {% block tail %} - {{ super() }} - {% if filter_groups %} - - - {% endif %} - {{ lib.form_js() }} - - {{ actionlib.script(_gettext('Please select at least one record.'), - actions, - actions_confirmation) }} - {% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/modals/create.html b/tests/flask_admin/bootstrap3/admin/model/modals/create.html deleted file mode 100644 index bc3f9a8..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/modals/create.html +++ /dev/null @@ -1,23 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - - -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/modals/details.html b/tests/flask_admin/bootstrap3/admin/model/modals/details.html deleted file mode 100755 index a0e8e32..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/modals/details.html +++ /dev/null @@ -1,38 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - - -{% endblock %} -{% block tail %} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/modals/edit.html b/tests/flask_admin/bootstrap3/admin/model/modals/edit.html deleted file mode 100644 index bdfe7f9..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/modals/edit.html +++ /dev/null @@ -1,25 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - - -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/model/row_actions.html b/tests/flask_admin/bootstrap3/admin/model/row_actions.html deleted file mode 100644 index a10e574..0000000 --- a/tests/flask_admin/bootstrap3/admin/model/row_actions.html +++ /dev/null @@ -1,37 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -{% macro link(action, url, icon_class=None) %} - - - -{% endmacro %} -{% macro view_row(action, row_id, row) %} -{{ link(action, get_url('.details_view', id=row_id, url=return_url), 'fa fa-eye glyphicon glyphicon-eye-open') }} -{% endmacro %} -{% macro view_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.details_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro edit_row(action, row_id, row) %} -{{ link(action, get_url('.edit_view', id=row_id, url=return_url), 'fa fa-pencil glyphicon glyphicon-pencil') }} -{% endmacro %} -{% macro edit_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.edit_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro delete_row(action, row_id, row) %} -
    - {{ delete_form.id(value=get_pk_value(row)) }} - {{ delete_form.url(value=return_url) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap3/admin/rediscli/console.html b/tests/flask_admin/bootstrap3/admin/rediscli/console.html deleted file mode 100644 index e7e3c0e..0000000 --- a/tests/flask_admin/bootstrap3/admin/rediscli/console.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% block head %} - {{ super() }} - -{% endblock %} -{% block body %} -
    -
    -
    -
    - -
    -
    -
    -{% endblock %} -{% block tail %} - {{ super() }} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap3/admin/rediscli/response.html b/tests/flask_admin/bootstrap3/admin/rediscli/response.html deleted file mode 100644 index 661852c..0000000 --- a/tests/flask_admin/bootstrap3/admin/rediscli/response.html +++ /dev/null @@ -1,35 +0,0 @@ -{% macro render(item, depth=0) %} -{% set type = type_name(item) %} -{% if type == 'tuple' or type == 'list' %} - {% if not item %} - Empty {{ type }}. - {% else %} - {% for n in item %} - {{ loop.index }}) {{ render(n, depth + 1) }} -
    - {% endfor %} - {% endif %} -{% elif type == 'bool' %} - {% if depth == 0 and item %} - OK - {% else %} - {{ item }} - {% endif %} -{% elif type == 'str' or type == 'unicode' %} - "{{ item }}" -{% elif type == 'bytes' %} - "{{ item.decode('utf-8') }}" -{% elif type == 'TextWrapper' %} -
    -{{ item }}
    -    
    -{% elif type == 'dict' %} - {% for k, v in item.items() %} - {{ loop.index }}) {{ k }} - {{ render(v, depth + 1) }} -
    - {% endfor %} -{% else %} - {{ item }} -{% endif %} -{% endmacro %} -{{ render(result) }} diff --git a/tests/flask_admin/bootstrap3/admin/static.html b/tests/flask_admin/bootstrap3/admin/static.html deleted file mode 100644 index 811f9ba..0000000 --- a/tests/flask_admin/bootstrap3/admin/static.html +++ /dev/null @@ -1,3 +0,0 @@ -{% macro url() - %} -{{ get_url('{admin_endpoint}.static'.format(admin_endpoint=admin_view.admin.endpoint), *varargs, **kwargs) }} -{%- endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/actions.html b/tests/flask_admin/bootstrap4/admin/actions.html deleted file mode 100644 index 37db593..0000000 --- a/tests/flask_admin/bootstrap4/admin/actions.html +++ /dev/null @@ -1,43 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% macro dropdown(actions, btn_class='nav-link dropdown-toggle') - %} - - -{% endmacro %} -{% macro form(actions, url) %} -{% if actions %} - -{% endif %} -{% endmacro %} -{% macro script(message, actions, actions_confirmation) %} -{% if actions %} - - - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/base.html b/tests/flask_admin/bootstrap4/admin/base.html deleted file mode 100644 index 5a70097..0000000 --- a/tests/flask_admin/bootstrap4/admin/base.html +++ /dev/null @@ -1,99 +0,0 @@ -{% import 'admin/layout.html' as layout with context - %} -{% import 'admin/static.html' as admin_static with context %} - - - - - {% block title %} - {% if admin_view.category %}{{ admin_view.category }} - {% endif %} - {{ admin_view.name }} - {{ admin_view.admin.name }} - {% endblock %} - - {% block head_meta %} - - - - - - {% endblock %} - {% block head_css %} - - {% if config.get('FLASK_ADMIN_SWATCH', 'default') == 'default' %} - - {% endif %} - - - {% if admin_view.extra_css %} - {% for css_url in admin_view.extra_css %} - - {% endfor %} - {% endif %} - - {% endblock %} - {% block head %}{% endblock %} - {% block head_tail %}{% endblock %} - - - {% block page_body %} -
    - - {% block messages %}{{ layout.messages() }}{% endblock %} - {# store the jinja2 context for form_rules rendering logic #} - {% set render_ctx = h.resolve_ctx() %} - {% block body %}{% endblock %}
    {% endblock %} - {% block tail_js %} - - - - - - - - - - {% if admin_view.extra_js %} - {% for js_url in admin_view.extra_js %} - - {% endfor %} - {% endif %} - {% endblock %} - {% block tail %}{% endblock %} - - diff --git a/tests/flask_admin/bootstrap4/admin/file/form.html b/tests/flask_admin/bootstrap4/admin/file/form.html deleted file mode 100644 index 3052310..0000000 --- a/tests/flask_admin/bootstrap4/admin/file/form.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block header %}

    {{ header_text }}

    {% endblock %} - {% block fa_form %}{{ lib.render_form(form, dir_url) }}{% endblock %} -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/file/list.html b/tests/flask_admin/bootstrap4/admin/file/list.html deleted file mode 100644 index 3fa6b48..0000000 --- a/tests/flask_admin/bootstrap4/admin/file/list.html +++ /dev/null @@ -1,204 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/actions.html' as actionslib with context %} -{% block body %} - {% block breadcrums %} - - {% endblock %} - {% block file_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - - {% for column in admin_view.column_list %} - - {% endfor %} - {% endblock %} - - - {% for name, path, is_dir, size, date in items %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - - {% if is_dir %} - - {% else %} - - {% if admin_view.is_column_visible('size') %} - - {% endif %} - {% endif %} - {% if admin_view.is_column_visible('date') %} - - {% endif %} - {% endblock %} - - {% endfor %} -
    - -   - {% if admin_view.is_column_sortable(column) %} - {% if sort_column == column %} - - {{ admin_view.column_label(column) }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ admin_view.column_label(column) }} - - {% endif %} - {% else %} - {{ _gettext(admin_view.column_label(column)) }} - {% endif %} -
    - {% if not is_dir %} - - {% endif %} - - {% block list_row_actions scoped %} - {% if admin_view.can_rename and path and name != '..' %} - {%- if admin_view.rename_modal - %} - {{ lib.add_modal_button(url=get_url('.rename', path=path, modal=True), - title=_gettext('Rename File'), - content=' - - ') }} - {% else %} - - - - {%- endif - %} - {% endif %} - {%- if admin_view.can_delete and path - %} - {% if is_dir %} - {% if name != '..' and admin_view.can_delete_dirs %} -
    - {{ delete_form.path(value=path) }} - {{ delete_form.csrf_token }} - -
    - {% endif %} - {% else %} -
    - {{ delete_form.path(value=path) }} - {{ delete_form.csrf_token }} - -
    - {% endif %} - {%- endif - %} - {% endblock %} -
    - - - {{ name }} - - - {% if admin_view.can_download %} - {%- if admin_view.edit_modal and admin_view.is_file_editable(path) - %} - {{ lib.add_modal_button(url=get_file_url(path, modal=True)|safe, - btn_class='', content=name) }} - {% else %} - {{ name }} - {%- endif - %} - {% else %} - {{ name }} - {% endif %} - {{ size|filesizeformat }}{{ timestamp_format(date) }}
    -
    - {% endblock %} - {% block toolbar %} -
    - {% if admin_view.can_upload %} -
    - {%- if admin_view.upload_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True), - btn_class="btn btn-secondary", - content=_gettext('Upload File')) }} - {% else %} - - {{ _gettext('Upload File') }} - - {%- endif - %} -
    - {% endif %} - {% if admin_view.can_mkdir %} -
    - {%- if admin_view.mkdir_modal - %} - {{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True), - btn_class="btn btn-secondary", - content=_gettext('Create Directory')) }} - {% else %} - - {{ _gettext('Create Directory') }} - - {%- endif - %} -
    - {% endif %} - {% if actions %} -
    - {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-secondary') }} -
    - {% endif %} -
    - {% endblock %} - {% block actions %} - {{ actionslib.form(actions, get_url('.action_view')) }} - {% endblock %} - {%- if admin_view.rename_modal or admin_view.mkdir_modal - or admin_view.upload_modal or admin_view.edit_modal -%} - {{ lib.add_modal_window() }} - {%- endif - %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ actionslib.script(_gettext('Please select at least one file.'), - actions, - actions_confirmation) }} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/file/modals/form.html b/tests/flask_admin/bootstrap4/admin/file/modals/form.html deleted file mode 100644 index 7ed7708..0000000 --- a/tests/flask_admin/bootstrap4/admin/file/modals/form.html +++ /dev/null @@ -1,19 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {# content added to modal-content #} - - -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/index.html b/tests/flask_admin/bootstrap4/admin/index.html deleted file mode 100644 index 6c4bda4..0000000 --- a/tests/flask_admin/bootstrap4/admin/index.html +++ /dev/null @@ -1,2 +0,0 @@ -{% extends 'admin/master.html' %} -{% block body %}{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/layout.html b/tests/flask_admin/bootstrap4/admin/layout.html deleted file mode 100644 index 80db028..0000000 --- a/tests/flask_admin/bootstrap4/admin/layout.html +++ /dev/null @@ -1,118 +0,0 @@ -{% macro menu_icon(item) - %} -{% set icon_type = item.get_icon_type() %} -{%- if icon_type %} -{% set icon_value = item.get_icon_value() %} -{% if icon_type == 'glyph' %} - -{% elif icon_type == 'fa' %} - -{% elif icon_type == 'image' %} - menu image -{% elif icon_type == 'image-url' %} - menu image -{% endif %} -{% endif %} -{%- endmacro %} -{% macro menu(menu_root=None) %} -{% set is_main_nav = menu_root == None %} -{% if menu_root is none %} - {% set menu_root = admin_view.admin.menu() %} -{% endif %} -{%- for item in menu_root %} -{%- if item.is_category() - %} -{% set children = item.get_children() %} -{%- if children %} -{% set class_name = item.get_class_name() or '' %} -{%- if item.is_active(admin_view) %} - - {% endif %} - {%- else %} - {%- if item.is_accessible() and item.is_visible() - %} - {% set class_name = item.get_class_name() %} - {%- if item.is_active(admin_view) %} -
  • - {%- else %} - - {%- endif %} - - {{ menu_icon(item) }}{{ item.name }} - -
  • - {%- endif - %} - {% endif - %} -{% endfor %} -{% endmacro %} -{% macro menu_links(links=None) %} -{% if links is none %}{% set links = admin_view.admin.menu_links() %}{% endif %} -{% for item in links %} - {% set class_name = item.get_class_name() %} - {% if item.is_accessible() and item.is_visible() %} - - - {{ menu_icon(item) }}{{ item.name }} - - - {% endif %} -{% endfor %} -{% endmacro %} -{% macro messages() %} -{% with messages = get_flashed_messages(with_categories=True) %} - {% if messages %} - {% for category, m in messages %} - {% if category %} - {# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #} - {% set mapping = {'message': 'info', 'error': 'danger'} %} -
    - {% else %} -
    - {% endif %} - - {{ m }} -
    - {% endfor %} - {% endif %} - {% endwith %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/lib.html b/tests/flask_admin/bootstrap4/admin/lib.html deleted file mode 100644 index c940d86..0000000 --- a/tests/flask_admin/bootstrap4/admin/lib.html +++ /dev/null @@ -1,312 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{# ---------------------- Pager -------------------------- #} -{% macro pager(page, pages, generator) - %} -{% if pages > 1 %} -
      - {% set min = page - 3 %} - {% set max = page + 3 + 1 %} - {% if min < 0 %} - {% set max = max - min %} - {% endif %} - {% if max >= pages %} - {% set min = min - max + pages %} - {% endif %} - {% if min < 0 %} - {% set min = 0 %} - {% endif %} - {% if max >= pages %} - {% set max = pages %} - {% endif %} - {% if min > 0 %} -
    • - - « - -
    • - {% else %} -
    • - - « - -
    • - {% endif %} - {% if page > 0 %} -
    • - - < - -
    • - {% else %} -
    • - - < - -
    • - {% endif %} - {% for p in range(min, max) %} - {% if page == p %} -
    • - - {{ p + 1 }} - -
    • - {% else %} -
    • - - {{ p + 1 }} - -
    • - {% endif %} - {% endfor %} - {% if page + 1 < pages %} -
    • - - > - -
    • - {% else %} -
    • - - > - -
    • - {% endif %} - {% if max < pages %} -
    • - - » - -
    • - {% else %} -
    • - - » - -
    • - {% endif %} -
    -{% endif %} -{%- endmacro %} -{% macro simple_pager(page, have_next, generator) - %} -
      - {% if page > 0 %} -
    • - < -
    • - {% else %} -
    • - < -
    • - {% endif %} - {% if have_next %} -
    • - > -
    • - {% else %} -
    • - > -
    • - {% endif %} -
    -{%- endmacro %} -{# ---------------------- Modal Window ------------------- #} -{% macro add_modal_window(modal_window_id='fa_modal_window', modal_label_id='fa_modal_label') %} - -{% endmacro %} -{% macro add_modal_button(url='', title='', content='', modal_window_id='fa_modal_window', btn_class='icon') %} - - {{ content|safe }} - -{% endmacro %} -{# ---------------------- Forms -------------------------- #} -{% macro render_field(form, field, kwargs={}, caller=None) %} -{% set direct_error = h.is_field_error(field.errors) %} -{% set prepend = kwargs.pop('prepend', None) %} -{% set append = kwargs.pop('append', None) %} -
    - - {% if prepend or append %} -
    - {%- if prepend - %} -
    - {{ prepend }} -
    - {%- endif - %} - {% endif %} - {% if field.widget.input_type == 'checkbox' %} - {% set _class = kwargs.setdefault('class', 'form-control-lg') %} - {% elif field.widget.input_type == 'file' %} - {% set _class = kwargs.setdefault('class', 'form-control-file') %} - {% else %} - {% set _class = kwargs.setdefault('class', 'form-control') %} - {% endif %} - {%- if direct_error %} {% set _ = kwargs.update({'class': kwargs['class'] ~ ' is-invalid'}) %} - {% endif - %} - {{ field(**kwargs) | safe }} - {%- if append - %} -
    - {{ append }} -
    - {%- endif - %} - {% if direct_error %} -
    -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    -
    - {% elif field.description %} -
    - {{ field.description|safe }} -
    - {% endif %} - {% if prepend or append %}
    {% endif %} - {% if caller %}{{ caller(form, field, direct_error, kwargs) }}{% endif %} -
    -{% endmacro %} -{% macro render_header(form, text) %} -

    {{ text }}

    -{% endmacro %} -{% macro render_form_fields(form, form_opts=None) %} -{% if form.hidden_tag is defined %} - {{ form.hidden_tag() }} -{% else %} - {% if csrf_token %} - - {% endif %} - {% for f in form if f.widget.input_type == 'hidden' %} - {{ f }} - {% endfor %} -{% endif %} -{% if form_opts and form_opts.form_rules %} - {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %} -{% else %} - {% for f in form if f.widget.input_type != 'hidden' %} - {% if form_opts %} - {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %} - {% else %} - {% set kwargs = {} %} - {% endif %} - {{ render_field(form, f, kwargs) }} - {% endfor %} -{% endif %} -{% endmacro %} -{% macro form_tag(form=None, action=None) %} -
    -
    - {{ caller() }} -
    -
    -{% endmacro %} -{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %} -{% if is_modal %} - - {% if extra %}{{ extra }}{% endif %} - {% if cancel_url %} - - {{ _gettext('Cancel') }} - - {% endif %} -{% else %} -
    -
    -
    - - {% if extra %}{{ extra }}{% endif %} - {% if cancel_url %} - - {{ _gettext('Cancel') }} - - {% endif %} -
    -
    -{% endif %} -{% endmacro %} -{% macro render_form(form, cancel_url, extra=None, form_opts=None, action=None, is_modal=False) - %} -{% call form_tag(action=action) %} -{{ render_form_fields(form, form_opts=form_opts) }} -{{ render_form_buttons(cancel_url, extra, is_modal) }} -{% endcall %} -{% endmacro %} -{% macro form_css() %} - - - -{% if config.MAPBOX_MAP_ID %} - - -{% endif %} -{% if editable_columns %} - -{% endif %} -{% endmacro %} -{% macro form_js() %} -{% if config.MAPBOX_MAP_ID %} - - - - {% if config.MAPBOX_SEARCH %} - - - {% endif %} -{% endif %} - -{% if editable_columns %} - -{% endif %} - -{% endmacro %} -{% macro extra() %} -{% if admin_view.can_create %} - -{% endif %} -{% if admin_view.can_edit %} - -{% endif %} -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/master.html b/tests/flask_admin/bootstrap4/admin/master.html deleted file mode 100644 index 8f27dad..0000000 --- a/tests/flask_admin/bootstrap4/admin/master.html +++ /dev/null @@ -1 +0,0 @@ -{% extends admin_base_template %} diff --git a/tests/flask_admin/bootstrap4/admin/model/create.html b/tests/flask_admin/bootstrap4/admin/model/create.html deleted file mode 100644 index 2ad163b..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/create.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block create_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/details.html b/tests/flask_admin/bootstrap4/admin/model/details.html deleted file mode 100644 index 0e6e86a..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/details.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block details_search %} -
    - - -
    - {% endblock %} - {% block details_table %} - - {% for c, name in details_columns %} - - - - - {% endfor %} -
    - - {{ name }} - - {{ get_value(model, c) }}
    - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/edit.html b/tests/flask_admin/bootstrap4/admin/model/edit.html deleted file mode 100644 index 4fa00a7..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/edit.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% from 'admin/lib.html' import extra with context %} {# backward compatible #} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block navlinks %} - - {% endblock %} - {% block edit_form %} - {{ lib.render_form(form, return_url, extra(), form_opts) }} - {% endblock %} -{% endblock %} -{% block tail %} - {{ super() }} - {{ lib.form_js() }} -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/inline_field_list.html b/tests/flask_admin/bootstrap4/admin/model/inline_field_list.html deleted file mode 100644 index 347977c..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/inline_field_list.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'admin/model/inline_list_base.html' as base with context %} -{% macro render_field(field) %} -{{ field }} -{% if h.is_field_error(field.errors) %} -
      - {% for e in field.errors if e is string %} -
    • - {{ e }} -
    • - {% endfor %} -
    -{% endif %} -{% endmacro %} -{{ base.render_inline_fields(field, template, render_field, check) }} diff --git a/tests/flask_admin/bootstrap4/admin/model/inline_form.html b/tests/flask_admin/bootstrap4/admin/model/inline_form.html deleted file mode 100644 index 9a4b9fa..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/inline_form.html +++ /dev/null @@ -1,4 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -
    - {{ lib.render_form_fields(field.form, form_opts=form_opts) }} -
    diff --git a/tests/flask_admin/bootstrap4/admin/model/inline_list_base.html b/tests/flask_admin/bootstrap4/admin/model/inline_list_base.html deleted file mode 100644 index 3a9a442..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/inline_list_base.html +++ /dev/null @@ -1,62 +0,0 @@ -{% macro render_inline_fields(field, template, render, check=None) %} -
    - {# existing inline form fields #} -
    - {% for subfield in field %} -
    - {%- if not check or check(subfield) %} - - - {{ field.label.text }} #{{ loop.index }} -
    - {% if subfield.get_pk and subfield.get_pk() %} - - - {% else %} - - - - {% endif %} -
    -
    -
    -
    - {%- endif - %} - {{ render(subfield) }} -
    - {% endfor %} -
    - {# template for new inline form fields #} -
    - {% filter forceescape %} -
    - - - {{ _gettext('New') }} {{ field.label.text }} - -
    - - - -
    -
    -
    - {{ render(template) }} -
    - {% endfilter %} -
    - - {{ _gettext('Add') }} {{ field.label.text }} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/model/layout.html b/tests/flask_admin/bootstrap4/admin/model/layout.html deleted file mode 100644 index de0325b..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/layout.html +++ /dev/null @@ -1,138 +0,0 @@ -{% macro filter_options(btn_class='dropdown-toggle') %} - - {{ _gettext('Add Filter') }} - - - -{% endmacro %} -{% macro export_options(btn_class='dropdown-toggle') %} -{% if admin_view.export_types|length > 1 %} - -{% else %} -
  • - - {{ _gettext('Export') }} - -
  • -{% endif %} -{% endmacro %} -{% macro filter_form() %} -
    - {% if sort_column is not none %} - - {% endif %} - {% if sort_desc %} - - {% endif %} - {% if search %} - - {% endif %} - {% if page_size != default_page_size %} - - {% endif %} -
    - - {% if active_filters %} - - {{ _gettext('Reset Filters') }} - - {% endif %} -
    -
    -
    -
    -{% endmacro %} -{% macro search_form(input_class="col-auto") %} - -{% endmacro %} -{% macro page_size_form(generator, btn_class='nav-link dropdown-toggle') %} - - {{ page_size }} {{ _gettext('items') }} - - - -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/model/list.html b/tests/flask_admin/bootstrap4/admin/model/list.html deleted file mode 100755 index f5aa267..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/list.html +++ /dev/null @@ -1,198 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/model/layout.html' as model_layout with context %} -{% import 'admin/actions.html' as actionlib with context %} -{% import 'admin/model/row_actions.html' as row_actions with context %} -{% block head %} - {{ super() }} - {{ lib.form_css() }} -{% endblock %} -{% block body %} - {% block model_menu_bar %} - - {% endblock %} - {% if filters %} - {{ model_layout.filter_form() }} -
    - {% endif %} - {% block model_list_table %} -
    - - - - {% block list_header scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_header %} - {% if admin_view.column_display_actions %} - - {% endif %} - {% endblock %} - {% for c, name in list_columns %} - {% set column = loop.index0 %} - - {% endfor %} - {% endblock %} - - - {% for row in data %} - - {% block list_row scoped %} - {% if actions %} - - {% endif %} - {% block list_row_actions_column scoped %} - {% if admin_view.column_display_actions %} - - {%- endif - %} - {% endblock %} - {% for c, name in list_columns %} - - {% endfor %} - {% endblock %} - - {% else %} - - - - {% endfor %} -
    - -   - {% if admin_view.is_sortable(c) %} - {% if sort_column == column %} - - {{ name }} - {% if sort_desc %} - - {% else %} - - {% endif %} - - {% else %} - - {{ name }} - - {% endif %} - {% else %} - {{ name }} - {% endif %} - {% if admin_view.column_descriptions.get(c) %} - - {% endif %} -
    - - - {% block list_row_actions scoped %} - {% for action in list_row_actions %}{{ action.render_ctx(get_pk_value(row), row) }}{% endfor %} - {% endblock %} - - {% if admin_view.is_editable(c) %} - {% set form = list_forms[get_pk_value(row)] %} - {% if form.csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }} - {% elif csrf_token %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=csrf_token()) }} - {% else %} - {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c)) }} - {% endif %} - {% else %} - {{ get_value(row, c) }} - {% endif %} -
    - {% block empty_list_message %} -
    - {{ admin_view.get_empty_list_message() }} -
    - {% endblock %} -
    -
    - {% block list_pager %} - {% if num_pages is not none %} - {{ lib.pager(page, num_pages, pager_url) }} - {% else %} - {{ lib.simple_pager(page, data|length == page_size, pager_url) }} - {% endif %} - {% endblock %} - {% endblock %} - {% block actions %} - {{ actionlib.form(actions, get_url('.action_view')) }} - {% endblock %} - {%- if admin_view.edit_modal or admin_view.create_modal or admin_view.details_modal - %} - {{ lib.add_modal_window() }} - {%- endif - %} - {% endblock %} - {% block tail %} - {{ super() }} - {% if filter_groups %} - - - {% endif %} - {{ lib.form_js() }} - - - {{ actionlib.script(_gettext('Please select at least one record.'), - actions, - actions_confirmation) }} - {% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/modals/create.html b/tests/flask_admin/bootstrap4/admin/model/modals/create.html deleted file mode 100644 index db4244d..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/modals/create.html +++ /dev/null @@ -1,31 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - - {% call lib.form_tag(action=url_for('.create_view', url=return_url)) %} - - -{% endcall %} -{# "save and add" button is removed from modal (it won't function properly) #} - {# % block create_form %} -{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts, -action=url_for('.create_view', url=return_url), -is_modal=True) }} -{% endblock % #} -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/modals/details.html b/tests/flask_admin/bootstrap4/admin/model/modals/details.html deleted file mode 100755 index ec37abf..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/modals/details.html +++ /dev/null @@ -1,38 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{% block body %} - - -{% endblock %} -{% block tail %} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/modals/edit.html b/tests/flask_admin/bootstrap4/admin/model/modals/edit.html deleted file mode 100644 index 3cdcbd6..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/modals/edit.html +++ /dev/null @@ -1,27 +0,0 @@ -{% import 'admin/static.html' as admin_static with context %} -{% import 'admin/lib.html' as lib with context %} -{# store the jinja2 context for form_rules rendering logic #} -{% set render_ctx = h.resolve_ctx() %} -{% block body %} - - {% call lib.form_tag(action=url_for('.edit_view', id=request.args.get('id'), url=return_url)) %} - - -{% endcall %} -{% endblock %} -{% block tail %} - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/model/row_actions.html b/tests/flask_admin/bootstrap4/admin/model/row_actions.html deleted file mode 100644 index a10e574..0000000 --- a/tests/flask_admin/bootstrap4/admin/model/row_actions.html +++ /dev/null @@ -1,37 +0,0 @@ -{% import 'admin/lib.html' as lib with context %} -{% macro link(action, url, icon_class=None) %} - - - -{% endmacro %} -{% macro view_row(action, row_id, row) %} -{{ link(action, get_url('.details_view', id=row_id, url=return_url), 'fa fa-eye glyphicon glyphicon-eye-open') }} -{% endmacro %} -{% macro view_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.details_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro edit_row(action, row_id, row) %} -{{ link(action, get_url('.edit_view', id=row_id, url=return_url), 'fa fa-pencil glyphicon glyphicon-pencil') }} -{% endmacro %} -{% macro edit_row_popup(action, row_id, row) %} -{{ lib.add_modal_button(url=get_url('.edit_view', id=row_id, url=return_url, modal=True), title=action.title, content=' - -') }} -{% endmacro %} -{% macro delete_row(action, row_id, row) %} -
    - {{ delete_form.id(value=get_pk_value(row)) }} - {{ delete_form.url(value=return_url) }} - {% if delete_form.csrf_token %} - {{ delete_form.csrf_token }} - {% elif csrf_token %} - - {% endif %} - -
    -{% endmacro %} diff --git a/tests/flask_admin/bootstrap4/admin/rediscli/console.html b/tests/flask_admin/bootstrap4/admin/rediscli/console.html deleted file mode 100644 index 82cb982..0000000 --- a/tests/flask_admin/bootstrap4/admin/rediscli/console.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'admin/master.html' %} -{% import 'admin/lib.html' as lib with context %} -{% import 'admin/static.html' as admin_static with context %} -{% block head %} - {{ super() }} - -{% endblock %} -{% block body %} -
    -
    -
    -
    - -
    -
    -
    -{% endblock %} -{% block tail %} - {{ super() }} - - -{% endblock %} diff --git a/tests/flask_admin/bootstrap4/admin/rediscli/response.html b/tests/flask_admin/bootstrap4/admin/rediscli/response.html deleted file mode 100644 index 661852c..0000000 --- a/tests/flask_admin/bootstrap4/admin/rediscli/response.html +++ /dev/null @@ -1,35 +0,0 @@ -{% macro render(item, depth=0) %} -{% set type = type_name(item) %} -{% if type == 'tuple' or type == 'list' %} - {% if not item %} - Empty {{ type }}. - {% else %} - {% for n in item %} - {{ loop.index }}) {{ render(n, depth + 1) }} -
    - {% endfor %} - {% endif %} -{% elif type == 'bool' %} - {% if depth == 0 and item %} - OK - {% else %} - {{ item }} - {% endif %} -{% elif type == 'str' or type == 'unicode' %} - "{{ item }}" -{% elif type == 'bytes' %} - "{{ item.decode('utf-8') }}" -{% elif type == 'TextWrapper' %} -
    -{{ item }}
    -    
    -{% elif type == 'dict' %} - {% for k, v in item.items() %} - {{ loop.index }}) {{ k }} - {{ render(v, depth + 1) }} -
    - {% endfor %} -{% else %} - {{ item }} -{% endif %} -{% endmacro %} -{{ render(result) }} diff --git a/tests/flask_admin/bootstrap4/admin/static.html b/tests/flask_admin/bootstrap4/admin/static.html deleted file mode 100644 index 811f9ba..0000000 --- a/tests/flask_admin/bootstrap4/admin/static.html +++ /dev/null @@ -1,3 +0,0 @@ -{% macro url() - %} -{{ get_url('{admin_endpoint}.static'.format(admin_endpoint=admin_view.admin.endpoint), *varargs, **kwargs) }} -{%- endmacro %} diff --git a/tests/jinja_adminlte/calendar.html b/tests/jinja_adminlte/calendar.html deleted file mode 100644 index 9a854aa..0000000 --- a/tests/jinja_adminlte/calendar.html +++ /dev/null @@ -1,345 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Blank Page {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Calendar

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -
    -

    Draggable Events

    -
    -
    - -
    -
    - Lunch -
    -
    - Go home -
    -
    - Do homework -
    -
    - Work on UI design -
    -
    - Sleep tight -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    Create Event

    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -
    -
    -
    - -
    -
    -
    - -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/charts-chartjs.html b/tests/jinja_adminlte/charts-chartjs.html deleted file mode 100644 index 53ce15f..0000000 --- a/tests/jinja_adminlte/charts-chartjs.html +++ /dev/null @@ -1,383 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}ChartsJS {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    ChartJS

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Area Chart

    -
    - - -
    -
    -
    -
    - -
    -
    - -
    - - -
    -
    -

    Donut Chart

    -
    - - -
    -
    -
    - -
    - -
    - - -
    -
    -

    Pie Chart

    -
    - - -
    -
    -
    - -
    - -
    - -
    - -
    - -
    -
    -

    Line Chart

    -
    - - -
    -
    -
    -
    - -
    -
    - -
    - - -
    -
    -

    Bar Chart

    -
    - - -
    -
    -
    -
    - -
    -
    - -
    - - -
    -
    -

    Stacked Bar Chart

    -
    - - -
    -
    -
    -
    - -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/charts-flot.html b/tests/jinja_adminlte/charts-flot.html deleted file mode 100644 index ac30b16..0000000 --- a/tests/jinja_adminlte/charts-flot.html +++ /dev/null @@ -1,483 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Flot Charts {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Flot Charts

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    - - Interactive Area Chart -

    -
    - Real time -
    - - -
    -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    - -
    -
    -

    - - Line Chart -

    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -

    - - Area Chart -

    -
    - - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    -
    -

    - - Bar Chart -

    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -

    - - Donut Chart -

    -
    - - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/charts-inline.html b/tests/jinja_adminlte/charts-inline.html deleted file mode 100644 index 9847af7..0000000 --- a/tests/jinja_adminlte/charts-inline.html +++ /dev/null @@ -1,611 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Inline Charts {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Inline Charts

    -
    -
    - -
    -
    -
    - -
    - -
    -
    - -
    -
    - -
    -
    -

    - - jQuery Knob -

    -
    - - -
    -
    - -
    -
    -
    - -
    - New Visitors -
    -
    - -
    - -
    - Bounce Rate -
    -
    - -
    - -
    - Server Load -
    -
    - -
    - -
    - Disk Space -
    -
    - -
    - -
    -
    - -
    - Bandwidth -
    -
    - -
    - -
    - CPU -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - - jQuery Knob Different Sizes -

    -
    - - -
    -
    - -
    -
    -
    - -
    - data-width="90" -
    -
    - -
    - -
    - data-width="120" -
    -
    - -
    - -
    - data-thickness="0.1" -
    -
    - -
    - -
    - data-angleArc="250" -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - - jQuery Knob Tron Style -

    -
    - - -
    -
    - -
    -
    -
    - -
    - data-width="90" -
    -
    - -
    - -
    - data-width="120" -
    -
    - -
    - -
    - data-thickness="0.1" -
    -
    - -
    - -
    - data-angleArc="250" -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -
    - {% endblock content %} - - {% block javascripts %} - - - - - - - - - - - - - - - {% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-404.html b/tests/jinja_adminlte/examples-404.html deleted file mode 100644 index 88545b6..0000000 --- a/tests/jinja_adminlte/examples-404.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Error 404 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    404 Error Page

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    404

    -
    -

    - - Oops! Page not found. -

    -

    - We could not find the page you were looking for. - Meanwhile, you may - return to dashboard - or try using the search form. -

    -
    -
    - -
    - -
    -
    - -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-500.html b/tests/jinja_adminlte/examples-500.html deleted file mode 100644 index f4cf8d7..0000000 --- a/tests/jinja_adminlte/examples-500.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Error 500 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    500 Error Page

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    500

    -
    -

    - - Oops! Something went wrong. -

    -

    - We will work on fixing that right away. - Meanwhile, you may - return to dashboard - or try using the search form. -

    -
    -
    - -
    - -
    -
    - -
    -
    -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-blank.html b/tests/jinja_adminlte/examples-blank.html deleted file mode 100644 index ee51f7c..0000000 --- a/tests/jinja_adminlte/examples-blank.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Blank Page {% endblock %} - -{% block body_class %} - sidebar-mini pace-primary -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Blank Page

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-contacts.html b/tests/jinja_adminlte/examples-contacts.html deleted file mode 100644 index b7f932a..0000000 --- a/tests/jinja_adminlte/examples-contacts.html +++ /dev/null @@ -1,572 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Contacts {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Contacts

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    -
    - Digital Strategist -
    -
    -
    -
    -

    - - Nicole Pearson - -

    -

    - - About: - - Web Designer / UX / Graphic Artist / Coffee Lover -

    -
      -
    • - - - - Address: Demo Street 123, Demo City 04312, NJ -
    • -
    • - - - - Phone #: + 800 - 12 12 23 52 -
    • -
    -
    -
    - user-avatar -
    -
    -
    - -
    -
    -
    -
    - - - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-e-commerce.html b/tests/jinja_adminlte/examples-e-commerce.html deleted file mode 100644 index df1f949..0000000 --- a/tests/jinja_adminlte/examples-e-commerce.html +++ /dev/null @@ -1,249 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}eCommerce {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    E-commerce

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    -
    -

    LOWA Men’s Renegade GTX Mid Hiking Boots Review

    -
    - Product Image -
    -
    -
    - Product Image -
    -
    - Product Image -
    -
    - Product Image -
    -
    - Product Image -
    -
    - Product Image -
    -
    -
    -
    -

    LOWA Men’s Renegade GTX Mid Hiking Boots Review

    -

    - Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terr. -

    -
    -

    Available Colors

    -
    - - - - - -
    -

    - Size - - Please select one - -

    -
    - - - - -
    -
    -

    $80.00

    -

    - - Ex Tax: $80.00 - -

    -
    -
    -
    - - Add to Cart -
    -
    - - Add to Wishlist -
    -
    - -
    -
    -
    - - -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-forgot-password.html b/tests/jinja_adminlte/examples-forgot-password.html deleted file mode 100644 index 723aae7..0000000 --- a/tests/jinja_adminlte/examples-forgot-password.html +++ /dev/null @@ -1,72 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Forgot Password {% endblock %} - -{% block body_class %} - login-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-invoice-print.html b/tests/jinja_adminlte/examples-invoice-print.html deleted file mode 100644 index fcaa791..0000000 --- a/tests/jinja_adminlte/examples-invoice-print.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - Jinja2 AdminLTE - Invoice Print | AppSeed - - - - - - - - -
    - -
    - -
    -
    - -
    - -
    - -
    -
    - From -
    - Admin, Inc. -
    - 795 Folsom Ave, Suite 600 -
    - San Francisco, CA 94107 -
    - Phone: (804) 123-5432 -
    - Email: info@almasaeedstudio.com -
    -
    - -
    - To -
    - John Doe -
    - 795 Folsom Ave, Suite 600 -
    - San Francisco, CA 94107 -
    - Phone: (555) 539-1037 -
    - Email: john.doe@example.com -
    -
    - -
    - - Invoice #007612 - -
    -
    - - Order ID: - - 4F3S8J -
    - - Payment Due: - - 2/22/2014 -
    - - Account: - - 968-34567 -
    - -
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    QtyProductSerial #DescriptionSubtotal
    1Call of Duty455-981-221El snort testosterone trophy driving gloves handsome$64.50
    1Need for Speed IV247-925-726Wes Anderson umami biodiesel$50.00
    1Monsters DVD735-845-642Terry Richardson helvetica tousled street art master$10.70
    1Grown Ups Blue Ray422-568-642 - Tousled lomo letterpress - - $25.99 -
    -
    - -
    - -
    - -
    -

    - Payment Methods: -

    - Visa - Mastercard - American Express - Paypal -

    - Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem plugg dopplr - jibjab, movity jajah plickers sifteo edmodo ifttt zimbra. -

    -
    - -
    -

    - Amount Due 2/22/2014 -

    -
    - - - - - - - - - - - - - - - - - -
    Subtotal: - $250.30 -
    - Tax (9.3%) - - $10.34 -
    - Shipping: - - $5.80 -
    - Total: - - $265.24 -
    -
    -
    - -
    - -
    - -
    - - - - diff --git a/tests/jinja_adminlte/examples-invoice.html b/tests/jinja_adminlte/examples-invoice.html deleted file mode 100644 index 8ce78b1..0000000 --- a/tests/jinja_adminlte/examples-invoice.html +++ /dev/null @@ -1,279 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Invoice {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Invoice

    -
    -
    - -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - - Note: -
    - This page has been enhanced for printing. Click the print button at the bottom of the invoice to test. -
    - -
    - -
    -
    -

    - - AdminLTE, Inc. - - Date: 2/10/2014 - -

    -
    - -
    - -
    -
    - From -
    - Admin, Inc. -
    - 795 Folsom Ave, Suite 600 -
    - San Francisco, CA 94107 -
    - Phone: (804) 123-5432 -
    - Email: info@almasaeedstudio.com -
    -
    - -
    - To -
    - John Doe -
    - 795 Folsom Ave, Suite 600 -
    - San Francisco, CA 94107 -
    - Phone: (555) 539-1037 -
    - Email: john.doe@example.com -
    -
    - -
    - - Invoice #007612 - -
    -
    - - Order ID: - - 4F3S8J -
    - - Payment Due: - - 2/22/2014 -
    - - Account: - - 968-34567 -
    - -
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    QtyProductSerial #DescriptionSubtotal
    1Call of Duty455-981-221El snort testosterone trophy driving gloves handsome$64.50
    1Need for Speed IV247-925-726Wes Anderson umami biodiesel$50.00
    1Monsters DVD735-845-642Terry Richardson helvetica tousled street art master$10.70
    1Grown Ups Blue Ray422-568-642 - Tousled lomo letterpress - - $25.99 -
    -
    - -
    - -
    - -
    -

    - Payment Methods: -

    - Visa - Mastercard - American Express - Paypal -

    - Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem - plugg - dopplr jibjab, movity jajah plickers sifteo edmodo ifttt zimbra. -

    -
    - -
    -

    - Amount Due 2/22/2014 -

    -
    - - - - - - - - - - - - - - - - - -
    Subtotal: - $250.30 -
    - Tax (9.3%) - - $10.34 -
    - Shipping: - - $5.80 -
    - Total: - - $265.24 -
    -
    -
    - -
    - - -
    -
    - - - Print - - - -
    -
    -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-language-menu.html b/tests/jinja_adminlte/examples-language-menu.html deleted file mode 100644 index 3bd9660..0000000 --- a/tests/jinja_adminlte/examples-language-menu.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Language Menu {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Language Menu

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-legacy-user-menu.html b/tests/jinja_adminlte/examples-legacy-user-menu.html deleted file mode 100644 index cff5ac2..0000000 --- a/tests/jinja_adminlte/examples-legacy-user-menu.html +++ /dev/null @@ -1,81 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Legacy User Menu {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Legacy User Menu

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-lockscreen.html b/tests/jinja_adminlte/examples-lockscreen.html deleted file mode 100644 index 8e6883b..0000000 --- a/tests/jinja_adminlte/examples-lockscreen.html +++ /dev/null @@ -1,77 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Lockscreen {% endblock %} -{% block body_class %} - lockscreen -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - - -
    - John Doe -
    - -
    - -
    - User Image -
    - - -
    -
    - -
    - -
    -
    -
    - -
    - -
    - Enter your password to retrieve your session -
    - - -
    - -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-login.html b/tests/jinja_adminlte/examples-login.html deleted file mode 100644 index 71bbd89..0000000 --- a/tests/jinja_adminlte/examples-login.html +++ /dev/null @@ -1,101 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Login {% endblock %} - -{% block body_class %} - login-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-profile.html b/tests/jinja_adminlte/examples-profile.html deleted file mode 100644 index acbba53..0000000 --- a/tests/jinja_adminlte/examples-profile.html +++ /dev/null @@ -1,516 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Profile {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Profile

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -
    - User profile picture -
    -

    Nina Mcintire

    -

    - Software Engineer -

    -
      -
    • - - Followers - - 1,322 -
    • -
    • - - Following - - 543 -
    • -
    • - - Friends - - 13,287 -
    • -
    - - - Follow - - -
    - -
    - - -
    -
    -

    About Me

    -
    - -
    - - - Education - -

    - B.S. in Computer Science from the University of Tennessee at Knoxville -

    -
    - - - Location - -

    - Malibu, California -

    -
    - - - Skills - -

    - UI Design - Coding - Javascript - PHP - Node.js -

    -
    - - - Notes - -

    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam fermentum enim neque. -

    -
    - -
    - -
    - -
    -
    - - -
    -
    -
    - -
    -
    - user image - - Jonathan Burke Jr. - - - - - Shared publicly - 7:30 PM today -
    - -

    - Lorem ipsum represents a long-held tradition for designers, - typographers and the like. Some people hate it and argue for - its demise, but others ignore the hate as they create awesome - tools to help create filler text for everyone from bacon lovers - to Charlie Sheen fans. -

    -

    - - - Share - - - - Like - - - - - Comments (5) - - -

    - -
    - - -
    -
    - User Image - - Sarah Ross - - - - - Sent you a message - 3 days ago -
    - -

    - Lorem ipsum represents a long-held tradition for designers, - typographers and the like. Some people hate it and argue for - its demise, but others ignore the hate as they create awesome - tools to help create filler text for everyone from bacon lovers - to Charlie Sheen fans. -

    -
    -
    - -
    - -
    -
    -
    -
    - - -
    -
    - User Image - - Adam Jones - - - - - Posted 5 photos - 5 days ago -
    - -
    -
    - Photo -
    - -
    -
    -
    - Photo - Photo -
    - -
    - Photo - Photo -
    - -
    - -
    - -
    - -

    - - - Share - - - - Like - - - - - Comments (5) - - -

    - -
    - -
    - -
    - -
    - -
    - 10 Feb. 2014 -
    - - -
    - -
    - - - 12:05 - -

    - Support Team - sent you an email -

    -
    - Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, - weebly ning heekya handango imeem plugg dopplr jibjab, movity - jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle - quora plaxo ideeli hulu weebly balihoo... -
    - -
    -
    - - -
    - -
    - - - 5 mins ago - -

    - Sarah Young - accepted your friend request -

    -
    -
    - - -
    - -
    - - - 27 mins ago - -

    - Jay White - commented on your post -

    -
    - Take me to your leader! - Switzerland is small and neutral! - We are more like Germany, ambitious and misunderstood! -
    - -
    -
    - - -
    - 3 Jan. 2014 -
    - - -
    - -
    - - - 2 days ago - -

    - Mina Lee - uploaded new photos -

    -
    - ... - ... - ... - ... -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-project-add.html b/tests/jinja_adminlte/examples-project-add.html deleted file mode 100644 index 416755f..0000000 --- a/tests/jinja_adminlte/examples-project-add.html +++ /dev/null @@ -1,149 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Product Add {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Project Add

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -

    General

    -
    - -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    -
    -

    Budget

    -
    - -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    -
    - Cancel - -
    -
    -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-project-detail.html b/tests/jinja_adminlte/examples-project-detail.html deleted file mode 100644 index 463cd0e..0000000 --- a/tests/jinja_adminlte/examples-project-detail.html +++ /dev/null @@ -1,253 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Project Detail {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Project Detail

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Projects Detail

    -
    - - -
    -
    -
    -
    -
    -
    -
    -
    -
    - - Estimated budget - - - 2300 - -
    -
    -
    -
    -
    -
    - - Total amount spent - - - 2000 - -
    -
    -
    -
    -
    -
    - - Estimated project duration - - - 20 - -
    -
    -
    -
    -
    -
    -

    Recent Activity

    -
    -
    - user image - - Jonathan Burke Jr. - - Shared publicly - 7:45 PM today -
    - -

    - Lorem ipsum represents a long-held tradition for designers, - typographers and the like. Some people hate it and argue for - its demise, but others ignore. -

    -

    - - - Demo File 1 v2 - -

    -
    -
    -
    - User Image - - Sarah Ross - - Sent you a message - 3 days ago -
    - -

    - Lorem ipsum represents a long-held tradition for designers, - typographers and the like. Some people hate it and argue for - its demise, but others ignore. -

    -

    - - - Demo File 2 - -

    -
    -
    -
    - user image - - Jonathan Burke Jr. - - Shared publicly - 5 days ago -
    - -

    - Lorem ipsum represents a long-held tradition for designers, - typographers and the like. Some people hate it and argue for - its demise, but others ignore. -

    -

    - - - Demo File 1 v1 - -

    -
    -
    -
    -
    -
    -

    - - AdminLTE v3 -

    -

    - Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terr. -

    -
    -
    -

    - Client Company - - Deveint Inc - -

    -

    - Project Leader - - Tony Chicken - -

    -
    -
    Project files
    - - -
    -
    -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-project-edit.html b/tests/jinja_adminlte/examples-project-edit.html deleted file mode 100644 index 536050e..0000000 --- a/tests/jinja_adminlte/examples-project-edit.html +++ /dev/null @@ -1,252 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Project Edit {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Project Edit

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -

    General

    -
    - -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    -
    -

    Budget

    -
    - -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -

    Files

    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    File NameFile Size
    Functional-requirements.docx49.8005 kb - -
    UAT.pdf28.4883 kb - -
    Email-from-flatbal.mln57.9003 kb - -
    Logo.png50.5190 kb - -
    Contract-10_12_2014.docx44.9715 kb - -
    -
    - -
    - -
    -
    -
    -
    - Cancel - -
    -
    -
    - -
    - - {% endblock content %} - - {% block javascripts %} - - - - - - - - - {% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-projects.html b/tests/jinja_adminlte/examples-projects.html deleted file mode 100644 index 165fb65..0000000 --- a/tests/jinja_adminlte/examples-projects.html +++ /dev/null @@ -1,615 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Projects {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Projects

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Projects

    -
    - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #Project NameTeam MembersProject ProgressStatus
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 57% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 47% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 77% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 60% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 12% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 35% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 87% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 77% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    # - AdminLTE v3 -
    - - Created 01.01.2019 - -
    -
      -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    • - Avatar -
    • -
    -
    -
    -
    -
    - - 77% Complete - -
    - Success - - - - View - - - - Edit - - - - Delete - -
    -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-recover-password.html b/tests/jinja_adminlte/examples-recover-password.html deleted file mode 100644 index 5e2af2e..0000000 --- a/tests/jinja_adminlte/examples-recover-password.html +++ /dev/null @@ -1,75 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Recover Password {% endblock %} - -{% block body_class %} - login-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/examples-register.html b/tests/jinja_adminlte/examples-register.html deleted file mode 100644 index d6f6c79..0000000 --- a/tests/jinja_adminlte/examples-register.html +++ /dev/null @@ -1,114 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Register {% endblock %} - -{% block body_class %} - register-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - - -
    -
    - -
    - -
    - -
    -
    - - - I already have a membership - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/forms-advanced.html b/tests/jinja_adminlte/forms-advanced.html deleted file mode 100644 index 121f975..0000000 --- a/tests/jinja_adminlte/forms-advanced.html +++ /dev/null @@ -1,949 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Forms Advanced {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Advanced Form

    -
    -
    - -
    -
    -
    - -
    - -
    -
    - -
    -
    -

    Select2 (Default Theme)

    -
    - - -
    -
    - -
    -
    -
    -
    - - -
    - -
    - - -
    - -
    - -
    -
    - - -
    - -
    - - -
    - -
    - -
    - -
    Custom Color Variants
    -
    -
    -
    - - -
    - -
    - -
    -
    - -
    - -
    -
    - -
    - -
    - -
    - - -
    - - -
    -
    -

    Select2 (Bootstrap4 Theme)

    -
    - - -
    -
    - -
    -
    -
    -
    - - -
    - -
    - - -
    - -
    - -
    -
    - - -
    - -
    - - -
    - -
    - -
    - -
    - - -
    - -
    -
    -

    Bootstrap Duallistbox

    -
    - - -
    -
    - -
    -
    -
    -
    - - -
    - -
    - -
    - -
    - - -
    - -
    -
    -
    -
    -

    Input masks

    -
    -
    - -
    - -
    -
    - - - -
    - -
    - -
    - - -
    -
    -
    - - - -
    - -
    - -
    - - -
    - -
    -
    - - - -
    - -
    - -
    - - -
    - -
    -
    - - - -
    - -
    - -
    - - -
    - -
    -
    - - - -
    - -
    - -
    - -
    - -
    - -
    -
    -

    Color & Time Picker

    -
    -
    - -
    - - -
    - - -
    - -
    - -
    - - - -
    -
    - -
    - - -
    -
    - -
    - -
    -
    - -
    -
    -
    - -
    - -
    -
    - -
    - -
    - -
    -
    -
    -

    Date picker

    -
    -
    - -
    - -
    - -
    -
    - -
    -
    -
    -
    - - -
    - -
    -
    - - - -
    - -
    - -
    - - -
    - -
    -
    - - - -
    - -
    - -
    - - -
    - -
    - -
    -
    - -
    - - -
    - - -
    -
    -

    iCheck Bootstrap - Checkbox & Radio Inputs

    -
    -
    - -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    -
    - - -
    - - -
    -
    -

    - Bootstrap Switch -

    -
    -
    - - -
    -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/forms-editors.html b/tests/jinja_adminlte/forms-editors.html deleted file mode 100644 index 90edf9a..0000000 --- a/tests/jinja_adminlte/forms-editors.html +++ /dev/null @@ -1,115 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Forms Editor {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Text Editors

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -

    - Bootstrap WYSIHTML5 - - Simple and fast - -

    - -
    - - -
    - -
    - - -
    -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/forms-general.html b/tests/jinja_adminlte/forms-general.html deleted file mode 100644 index 79f89cd..0000000 --- a/tests/jinja_adminlte/forms-general.html +++ /dev/null @@ -1,814 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Forms General {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    General Form

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -

    Quick Example

    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    - -
    -
    - - -
    -
    - Upload -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -

    Different Height

    -
    -
    - -
    - -
    - -
    - -
    - -
    -
    -

    Different Width

    -
    -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    - -
    - - -
    -
    -

    Input Addon

    -
    -
    -
    -
    - @ -
    - -
    -
    - -
    - .00 -
    -
    -
    -
    - $ -
    - -
    - .00 -
    -
    -

    With icons

    -
    -
    - - - -
    - -
    -
    - -
    - - - -
    -
    -
    -
    - - - -
    - -
    -
    - -
    -
    -
    -
    With checkbox and radio inputs
    -
    -
    -
    -
    - - - -
    - -
    - -
    - -
    -
    -
    - - - -
    - -
    - -
    - -
    - -
    With buttons
    -

    - Large: - - .input-group.input-group-lg - -

    -
    -
    - - -
    - - -
    - -

    - Normal -

    -
    -
    - -
    - - -
    - -

    - Small - - .input-group.input-group-sm - -

    -
    - - - - -
    - -
    - -
    - - -
    -
    -

    Horizontal Form

    -
    - - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - - -
    -
    -
    -
    - - - -
    -
    - -
    - - -
    - -
    -
    -

    General Elements

    -
    - -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    - -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -

    - Custom Elements -

    -
    - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    - - -
    -
    -
    -
    - - -
    -
    -
    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - - -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/forms-validation.html b/tests/jinja_adminlte/forms-validation.html deleted file mode 100644 index 9947b80..0000000 --- a/tests/jinja_adminlte/forms-validation.html +++ /dev/null @@ -1,170 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Forms Validation {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Validation

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -

    - Quick Example - - jQuery Validation - -

    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    -
    - - -
    -
    -
    - - -
    -
    - -
    - - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/gallery.html b/tests/jinja_adminlte/gallery.html deleted file mode 100644 index f93024d..0000000 --- a/tests/jinja_adminlte/gallery.html +++ /dev/null @@ -1,380 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Gallery {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Gallery

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    FilterizR Gallery with Ekko Lightbox

    -
    - -
    -
    -
    -
    -
    -

    Ekko Lightbox

    -
    -
    -
    -
    - - white sample - -
    -
    - - black sample - -
    -
    - - red sample - -
    -
    - - red sample - -
    -
    - - black sample - -
    -
    - - white sample - -
    -
    - - white sample - -
    -
    - - black sample - -
    -
    - - red sample - -
    -
    - - white sample - -
    -
    - - white sample - -
    -
    - - black sample - -
    -
    -
    -
    -
    -
    -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/includes/footer.html b/tests/jinja_adminlte/includes/footer.html deleted file mode 100644 index 571326d..0000000 --- a/tests/jinja_adminlte/includes/footer.html +++ /dev/null @@ -1,17 +0,0 @@ - - diff --git a/tests/jinja_adminlte/includes/navigation.html b/tests/jinja_adminlte/includes/navigation.html deleted file mode 100644 index 3d7fbc7..0000000 --- a/tests/jinja_adminlte/includes/navigation.html +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/tests/jinja_adminlte/includes/scripts.html b/tests/jinja_adminlte/includes/scripts.html deleted file mode 100644 index 97f0964..0000000 --- a/tests/jinja_adminlte/includes/scripts.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/jinja_adminlte/includes/sidebar.html b/tests/jinja_adminlte/includes/sidebar.html deleted file mode 100644 index 92f2421..0000000 --- a/tests/jinja_adminlte/includes/sidebar.html +++ /dev/null @@ -1,702 +0,0 @@ - - diff --git a/tests/jinja_adminlte/index.html b/tests/jinja_adminlte/index.html deleted file mode 100644 index b5bd297..0000000 --- a/tests/jinja_adminlte/index.html +++ /dev/null @@ -1,812 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Dashboard {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Dashboard

    -
    - -
    - -
    - -
    - -
    - -
    - - -
    -
    - -
    -
    - -
    -
    -

    150

    -

    - New Orders -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    - 53 - - % - -

    -

    - Bounce Rate -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    44

    -

    - User Registrations -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    65

    -

    - Unique Visitors -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - - -
    - -
    - -
    -
    -

    - - Sales -

    -
    - -
    -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - -
    - - -
    -
    -

    Direct Chat

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - Alexander Pierce - - 23 Jan 2:00 pm - -
    - - message user image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - Sarah Bullock - 23 Jan 2:05 pm -
    - - message user image - -
    - You better believe it! -
    - -
    - - -
    -
    - Alexander Pierce - - 23 Jan 5:37 pm - -
    - - message user image - -
    - Working with AdminLTE on a great new app! Wanna join? -
    - -
    - - -
    -
    - Sarah Bullock - 23 Jan 6:10 pm -
    - - message user image - -
    - I would love to. -
    - -
    - -
    - - - - -
    - - - -
    - - -
    -
    -

    - - To Do List -

    -
    -
      -
    • - « -
    • -
    • - 1 -
    • -
    • - 2 -
    • -
    • - 3 -
    • -
    • - » -
    • -
    -
    -
    - -
    -
      -
    • - - - - - - -
      - - -
      - - Design a nice theme - - - - 2 mins - - -
      - - -
      -
    • -
    • - - - - -
      - - -
      - Make the theme responsive - - - 4 hours - -
      - - -
      -
    • -
    • - - - - -
      - - -
      - - Let theme shine like a star - - - - 1 day - -
      - - -
      -
    • -
    • - - - - -
      - - -
      - - Let theme shine like a star - - - - 3 days - -
      - - -
      -
    • -
    • - - - - -
      - - -
      - - Check your messages and notifications - - - - 1 week - -
      - - -
      -
    • -
    • - - - - -
      - - -
      - - Let theme shine like a star - - - - 1 month - -
      - - -
      -
    • -
    -
    - - -
    - -
    - - -
    - -
    -
    -

    - - Visitors -

    - -
    - - -
    - -
    -
    -
    -
    - - -
    - - -
    -
    -

    - - Sales Graph -

    -
    - - -
    -
    -
    - -
    - - - -
    - - -
    -
    -

    - - Calendar -

    - - - -
    - -
    - -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/index2.html b/tests/jinja_adminlte/index2.html deleted file mode 100644 index a3262a2..0000000 --- a/tests/jinja_adminlte/index2.html +++ /dev/null @@ -1,1189 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Dashboard2 {% endblock %} - -{% block body_class %} - sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Dashboard v2

    -
    - -
    - -
    - -
    - -
    - -
    - - -
    -
    - -
    -
    -
    - - - -
    - CPU Traffic - - 10 - - % - - -
    - -
    - -
    - -
    -
    - - - -
    - Likes - 41,410 -
    - -
    - -
    - - -
    -
    -
    - - - -
    - Sales - 760 -
    - -
    - -
    - -
    -
    - - - -
    - New Members - 2,000 -
    - -
    - -
    - -
    - -
    -
    -
    -
    -
    Monthly Recap Report
    -
    - - - -
    -
    - -
    -
    -
    -

    - Sales: 1 Jan, 2014 - 30 Jul, 2014 -

    -
    - - -
    - -
    - -
    -

    - Goal Completion -

    -
    - Add Products to Cart - - - 160 - - /200 - -
    -
    -
    -
    - -
    - Complete Purchase - - - 310 - - /400 - -
    -
    -
    -
    - -
    - Visit Premium Page - - - 480 - - /800 - -
    -
    -
    -
    - -
    - Send Inquiries - - - 250 - - /500 - -
    -
    -
    -
    - -
    - -
    - -
    - - - -
    - -
    - -
    - - -
    - -
    - -
    -
    -

    US-Visitors Report

    -
    - - -
    -
    - -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - 90,70,90,70,75,80,70 -
    -
    8390
    - - Visits - -
    - -
    -
    - 90,50,90,70,61,83,63 -
    -
    - 30% -
    - - Referrals - -
    - -
    -
    - 90,50,90,70,61,83,63 -
    -
    - 70% -
    - - Organic - -
    - -
    - -
    - -
    - -
    - -
    -
    - -
    -
    -

    - Direct Chat -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - message user image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - message user image - -
    - You better believe it! -
    - -
    - - -
    -
    - - Alexander Pierce - - - 23 Jan 5:37 pm - -
    - - message user image - -
    - Working with AdminLTE on a great new app! Wanna join? -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 6:10 pm - -
    - - message user image - -
    - I would love to. -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Latest Members -

    -
    - - 8 New Members - - - -
    -
    - -
    - - -
    - - - -
    - -
    - -
    - - -
    -
    -

    - Latest Orders -

    -
    - - -
    -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Order IDItemStatusPopularity
    - - OR9842 - - Call of Duty IV - - Shipped - - -
    - 90,80,90,-70,61,-83,63 -
    -
    - - OR1848 - - Samsung Smart TV - - Pending - - -
    - 90,80,-90,70,61,-83,68 -
    -
    - - OR7429 - - iPhone 6 Plus - - Delivered - - -
    - 90,-80,90,70,-61,83,63 -
    -
    - - OR7429 - - Samsung Smart TV - - Processing - - -
    - 90,80,-90,70,-61,83,63 -
    -
    - - OR1848 - - Samsung Smart TV - - Pending - - -
    - 90,80,-90,70,61,-83,68 -
    -
    - - OR7429 - - iPhone 6 Plus - - Delivered - - -
    - 90,-80,90,70,-61,83,63 -
    -
    - - OR9842 - - Call of Duty IV - - Shipped - - -
    - 90,80,90,-70,61,-83,63 -
    -
    -
    - -
    - - - -
    - -
    - -
    - -
    - - - -
    - - Inventory - - - 5,200 - -
    - -
    - -
    - - - -
    - - Mentions - - - 92,050 - -
    - -
    - -
    - - - -
    - - Downloads - - - 114,381 - -
    - -
    - -
    - - - -
    - - Direct Messages - - - 163,921 - -
    - -
    - -
    -
    -

    - Browser Usage -

    -
    - - -
    -
    - -
    -
    -
    -
    - -
    - -
    - -
    -
      -
    • - - Chrome -
    • -
    • - - IE -
    • -
    • - - FireFox -
    • -
    • - - Safari -
    • -
    • - - Opera -
    • -
    • - - Navigator -
    • -
    -
    - -
    - -
    - - - -
    - - -
    -
    -

    - Recently Added Products -

    -
    - - -
    -
    - -
    - -
    - - - -
    - -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/index3.html b/tests/jinja_adminlte/index3.html deleted file mode 100644 index 81c0f0f..0000000 --- a/tests/jinja_adminlte/index3.html +++ /dev/null @@ -1,321 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Dashboard3 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Dashboard v3

    -
    - -
    - -
    - -
    - -
    - -
    - - -
    -
    -
    -
    -
    -
    -
    -

    Online Store Visitors

    - View Report -
    -
    -
    -
    -

    - 820 - Visitors Over Time -

    -

    - - - 12.5% - - Since last week -

    -
    - -
    - -
    -
    - - - This Week - - - - Last Week - -
    -
    -
    - -
    -
    -

    Products

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ProductPriceSalesMore
    - Product 1 - Some Product - $13 USD - - - 12% - - 12,000 Sold - - - - -
    - Product 1 - Another Product - $29 USD - - - 0.5% - - 123,234 Sold - - - - -
    - Product 1 - Amazing Product - $1,230 USD - - - 3% - - 198 Sold - - - - -
    - Product 1 - Perfect Item - NEW - $199 USD - - - 63% - - 87 Sold - - - - -
    -
    -
    - -
    - -
    -
    -
    -
    -

    Sales

    - View Report -
    -
    -
    -
    -

    - $18,230.00 - Sales Over Time -

    -

    - - - 33.1% - - Since last month -

    -
    - -
    - -
    -
    - - - This year - - - - Last year - -
    -
    -
    - -
    -
    -

    Online Store Overview

    - -
    -
    -
    -

    - -

    -

    - - - 12% - - CONVERSION RATE -

    -
    - -
    -

    - -

    -

    - - - 0.8% - - SALES RATE -

    -
    - -
    -

    - -

    -

    - - - 1% - - REGISTRATION RATE -

    -
    - -
    -
    -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-boxed.html b/tests/jinja_adminlte/layout-boxed.html deleted file mode 100644 index fd73668..0000000 --- a/tests/jinja_adminlte/layout-boxed.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Layout Boxed {% endblock %} - -{% block body_class %} - sidebar-mini layout-boxed -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Boxed Layout

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    -
    -
    -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-collapsed-sidebar.html b/tests/jinja_adminlte/layout-collapsed-sidebar.html deleted file mode 100644 index e4646ce..0000000 --- a/tests/jinja_adminlte/layout-collapsed-sidebar.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Collapsed Sidebar {% endblock %} - -{% block body_class %} - sidebar-mini sidebar-collapse -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Collapsed Sidebar

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    -
    -
    -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-fixed-footer.html b/tests/jinja_adminlte/layout-fixed-footer.html deleted file mode 100644 index 7611aba..0000000 --- a/tests/jinja_adminlte/layout-fixed-footer.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Fixed Footer Layout {% endblock %} - -{% block body_class %} - sidebar-mini layout-footer-fixed -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Fixed Footer Layout

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    -
    -
    -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-fixed-sidebar.html b/tests/jinja_adminlte/layout-fixed-sidebar.html deleted file mode 100644 index fd6ec53..0000000 --- a/tests/jinja_adminlte/layout-fixed-sidebar.html +++ /dev/null @@ -1,98 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Fixed Sidebar {% endblock %} - -{% block body_class %} - sidebar-mini layout-fixed -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Fixed Layout

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    -
    -
    -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-fixed-topnav.html b/tests/jinja_adminlte/layout-fixed-topnav.html deleted file mode 100644 index 52794b0..0000000 --- a/tests/jinja_adminlte/layout-fixed-topnav.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Fixed Navbar Layout {% endblock %} - -{% block body_class %} - sidebar-mini layout-navbar-fixed -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Fixed Navbar Layout

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    -
    -
    -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layout-top-nav-sidebar.html b/tests/jinja_adminlte/layout-top-nav-sidebar.html deleted file mode 100644 index 1a6ddf3..0000000 --- a/tests/jinja_adminlte/layout-top-nav-sidebar.html +++ /dev/null @@ -1,125 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Top Navigation + Sidebar {% endblock %} - -{% block body_class %} - sidebar-collapse layout-top-nav -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    - Top Navigation - - Example 3.0 - -

    -
    - -
    - -
    - -
    - -
    - -
    - - -
    -
    -
    -
    -
    -
    -
    Card title
    -

    - Some quick example text to build on the card title and make up the bulk of the card's - content. -

    - Card link - Another link -
    -
    -
    -
    -
    Card title
    -

    - Some quick example text to build on the card title and make up the bulk of the card's - content. -

    - Card link - Another link -
    -
    - -
    - -
    -
    -
    -
    Featured
    -
    -
    -
    Special title treatment
    -

    - With supporting text below as a natural lead-in to additional content. -

    - Go somewhere -
    -
    -
    -
    -
    Featured
    -
    -
    -
    Special title treatment
    -

    - With supporting text below as a natural lead-in to additional content. -

    - Go somewhere -
    -
    -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/layouts/base-fullscreen.html b/tests/jinja_adminlte/layouts/base-fullscreen.html deleted file mode 100644 index 0856c97..0000000 --- a/tests/jinja_adminlte/layouts/base-fullscreen.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - AdminLTE Jinja - - {% block title %}{% endblock %} - | AppSeed - - - {% block stylesheets %}{% endblock stylesheets %} - - - {% block content %}{% endblock content %} - - {% block javascripts %}{% endblock javascripts %} - - diff --git a/tests/jinja_adminlte/layouts/base.html b/tests/jinja_adminlte/layouts/base.html deleted file mode 100644 index 1569d21..0000000 --- a/tests/jinja_adminlte/layouts/base.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - AdminLTE Jinja - - {% block title %}{% endblock %} - | AppSeed - - {% block stylesheets %}{% endblock stylesheets %} - - -
    - {% include 'includes/navigation.html' %} - {% include 'includes/sidebar.html' %} - {% block content %}{% endblock content %} - {% include 'includes/footer.html' %} - - - -
    - - - {% block javascripts %}{% endblock javascripts %} - - diff --git a/tests/jinja_adminlte/login.html b/tests/jinja_adminlte/login.html deleted file mode 100644 index d50d914..0000000 --- a/tests/jinja_adminlte/login.html +++ /dev/null @@ -1,101 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Login {% endblock %} - -{% block body_class %} - login-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/mailbox-compose.html b/tests/jinja_adminlte/mailbox-compose.html deleted file mode 100644 index 3d4c691..0000000 --- a/tests/jinja_adminlte/mailbox-compose.html +++ /dev/null @@ -1,253 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Compose {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Compose

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - - Back to Inbox - -
    -
    -

    Folders

    -
    - -
    -
    - - -
    - -
    -
    -

    Labels

    -
    - -
    -
    - - - -
    - -
    - -
    -
    -
    -

    Compose New Message

    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    - - Attachment - -
    -

    - Max. 32MB -

    -
    -
    - - - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/mailbox-read-mail.html b/tests/jinja_adminlte/mailbox-read-mail.html deleted file mode 100644 index c4a9d70..0000000 --- a/tests/jinja_adminlte/mailbox-read-mail.html +++ /dev/null @@ -1,348 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Read Email {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Compose

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - - Back to Inbox - -
    -
    -

    Folders

    -
    - -
    -
    - - -
    - -
    -
    -

    Labels

    -
    - -
    -
    - - - -
    - -
    - -
    -
    -
    -

    Read Mail

    - -
    - -
    -
    -
    Message Subject Is Placed Here
    -
    - From: support@adminlte.io - 15 Feb. 2015 11:03 PM -
    -
    - -
    -
    - - - -
    - - -
    - -
    -

    - Hello John, -

    -

    - Keffiyeh blog actually fashion axe vegan, irony biodiesel. Cold-pressed hoodie chillwave put a bird - on it aesthetic, bitters brunch meggings vegan iPhone. Dreamcatcher vegan scenester mlkshk. Ethical - master cleanse Bushwick, occupy Thundercats banjo cliche ennui farm-to-table mlkshk fanny pack - gluten-free. Marfa butcher vegan quinoa, bicycle rights disrupt tofu scenester chillwave 3 wolf moon - asymmetrical taxidermy pour-over. Quinoa tote bag fashion axe, Godard disrupt migas church-key tofu - blog locavore. Thundercats cronut polaroid Neutra tousled, meh food truck selfies narwhal American - Apparel. -

    -

    - Raw denim McSweeney's bicycle rights, iPhone trust fund quinoa Neutra VHS kale chips vegan PBR&B - literally Thundercats +1. Forage tilde four dollar toast, banjo health goth paleo butcher. Four dollar - toast Brooklyn pour-over American Apparel sustainable, lumbersexual listicle gluten-free health goth - umami hoodie. Synth Echo Park bicycle rights DIY farm-to-table, retro kogi sriracha dreamcatcher PBR&B - flannel hashtag irony Wes Anderson. Lumbersexual Williamsburg Helvetica next level. Cold-pressed - slow-carb pop-up normcore Thundercats Portland, cardigan literally meditation lumbersexual crucifix. - Wayfarers raw denim paleo Bushwick, keytar Helvetica scenester keffiyeh 8-bit irony mumblecore - whatever viral Truffaut. -

    -

    - Post-ironic shabby chic VHS, Marfa keytar flannel lomo try-hard keffiyeh cray. Actually fap fanny - pack yr artisan trust fund. High Life dreamcatcher church-key gentrify. Tumblr stumptown four dollar - toast vinyl, cold-pressed try-hard blog authentic keffiyeh Helvetica lo-fi tilde Intelligentsia. Lomo - locavore salvia bespoke, twee fixie paleo cliche brunch Schlitz blog McSweeney's messenger bag swag - slow-carb. Odd Future photo booth pork belly, you probably haven't heard of them actually tofu ennui - keffiyeh lo-fi Truffaut health goth. Narwhal sustainable retro disrupt. -

    -

    - Skateboard artisan letterpress before they sold out High Life messenger bag. Bitters chambray - leggings listicle, drinking vinegar chillwave synth. Fanny pack hoodie American Apparel twee. American - Apparel PBR listicle, salvia aesthetic occupy sustainable Neutra kogi. Organic synth Tumblr viral - plaid, shabby chic single-origin coffee Etsy 3 wolf moon slow-carb Schlitz roof party tousled squid - vinyl. Readymade next level literally trust fund. Distillery master cleanse migas, Vice sriracha - flannel chambray chia cronut. -

    -

    - Thanks, -
    - Jane -

    -
    - -
    - - - - - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/mailbox.html b/tests/jinja_adminlte/mailbox.html deleted file mode 100644 index bac2190..0000000 --- a/tests/jinja_adminlte/mailbox.html +++ /dev/null @@ -1,700 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Mailbox {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Inbox

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    - - Compose - -
    -
    -

    Folders

    -
    - -
    -
    - - -
    - -
    -
    -

    Labels

    -
    - -
    -
    - - -
    - -
    - -
    -
    -
    -

    Inbox

    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - - -
    - - - -
    - - -
    - 1-50/200 -
    - - -
    - -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - 5 mins ago
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - 28 mins ago
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - 11 hours ago
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - 15 hours ago
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - Yesterday
    -
    - - -
    -
    - - - - - Alexander Pierce - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - 2 days ago
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - - 2 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - 2 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - 2 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - 2 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - - 4 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - 12 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - - 12 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - - 14 days ago -
    -
    - - -
    -
    - - - - - - Alexander Pierce - - - - AdminLTE 3.0 Issue - - - Trying to find a solution to this problem... - - - - 15 days ago -
    - -
    - -
    - - -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/page-403.html b/tests/jinja_adminlte/page-403.html deleted file mode 100644 index b5890ff..0000000 --- a/tests/jinja_adminlte/page-403.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Error 403 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    404 Error Page

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    404

    -
    -

    - - Oops! Page not found. -

    -

    - We could not find the page you were looking for. - Meanwhile, you may - return to dashboard - or try using the search form. -

    -
    -
    - -
    - -
    -
    - -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/page-404.html b/tests/jinja_adminlte/page-404.html deleted file mode 100644 index 1ac85ff..0000000 --- a/tests/jinja_adminlte/page-404.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Error 404 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    404 Error Page

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    404

    -
    -

    - - Oops! Page not found. -

    -

    - We could not find the page you were looking for. - Meanwhile, you may - return to dashboard - or try using the search form. -

    -
    -
    - -
    - -
    -
    - -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/page-500.html b/tests/jinja_adminlte/page-500.html deleted file mode 100644 index f4cf8d7..0000000 --- a/tests/jinja_adminlte/page-500.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Error 500 {% endblock %} - -{% block body_class %} - sidebar-mini -{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    500 Error Page

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -

    500

    -
    -

    - - Oops! Something went wrong. -

    -

    - We will work on fixing that right away. - Meanwhile, you may - return to dashboard - or try using the search form. -

    -
    -
    - -
    - -
    -
    - -
    -
    -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/page-blank.html b/tests/jinja_adminlte/page-blank.html deleted file mode 100644 index ee51f7c..0000000 --- a/tests/jinja_adminlte/page-blank.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Blank Page {% endblock %} - -{% block body_class %} - sidebar-mini pace-primary -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    -
    -
    -

    Blank Page

    -
    -
    - -
    -
    -
    - -
    - -
    - -
    -
    -

    Title

    -
    - - -
    -
    -
    - Start creating your amazing application! -
    - - - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/register.html b/tests/jinja_adminlte/register.html deleted file mode 100644 index d6f6c79..0000000 --- a/tests/jinja_adminlte/register.html +++ /dev/null @@ -1,114 +0,0 @@ -{% extends "layouts/base-fullscreen.html" %} -{% block title %}Register {% endblock %} - -{% block body_class %} - register-page -{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - - -
    -
    - -
    - -
    - -
    -
    - - - I already have a membership - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/tables-data.html b/tests/jinja_adminlte/tables-data.html deleted file mode 100644 index 3b5ff4a..0000000 --- a/tests/jinja_adminlte/tables-data.html +++ /dev/null @@ -1,2096 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Tables Data {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    DataTables

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    DataTable with minimal features & hover style

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Rendering engineBrowserPlatform(s)Engine versionCSS grade
    Trident - Internet - Explorer 4.0 - Win 95+4X
    Trident - Internet - Explorer 5.0 - Win 95+5C
    Trident - Internet - Explorer 5.5 - Win 95+5.5A
    Trident - Internet - Explorer 6 - Win 98+6A
    TridentInternet Explorer 7Win XP SP2+7 - A -
    - Trident - - AOL browser (AOL desktop) - - Win XP - - 6 - - A -
    - Gecko - - Firefox 1.0 - - Win 98+ / OSX.2+ - - 1.7 - - A -
    - Gecko - - Firefox 1.5 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Firefox 2.0 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Firefox 3.0 - - Win 2k+ / OSX.3+ - - 1.9 - - A -
    - Gecko - - Camino 1.0 - - OSX.2+ - - 1.8 - - A -
    - Gecko - - Camino 1.5 - - OSX.3+ - - 1.8 - - A -
    - Gecko - - Netscape 7.2 - - Win 95+ / Mac OS 8.6-9.2 - - 1.7 - - A -
    - Gecko - - Netscape Browser 8 - - Win 98SE+ - - 1.7 - - A -
    - Gecko - - Netscape Navigator 9 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Mozilla 1.0 - - Win 95+ / OSX.1+ - - 1 - - A -
    - Gecko - - Mozilla 1.1 - - Win 95+ / OSX.1+ - - 1.1 - - A -
    - Gecko - - Mozilla 1.2 - - Win 95+ / OSX.1+ - - 1.2 - - A -
    - Gecko - - Mozilla 1.3 - - Win 95+ / OSX.1+ - - 1.3 - - A -
    - Gecko - - Mozilla 1.4 - - Win 95+ / OSX.1+ - - 1.4 - - A -
    - Gecko - - Mozilla 1.5 - - Win 95+ / OSX.1+ - - 1.5 - - A -
    - Gecko - - Mozilla 1.6 - - Win 95+ / OSX.1+ - - 1.6 - - A -
    - Gecko - - Mozilla 1.7 - - Win 98+ / OSX.1+ - - 1.7 - - A -
    - Gecko - - Mozilla 1.8 - - Win 98+ / OSX.1+ - - 1.8 - - A -
    - Gecko - - Seamonkey 1.1 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Epiphany 2.20 - - Gnome - - 1.8 - - A -
    - Webkit - - Safari 1.2 - - OSX.3 - - 125.5 - - A -
    - Webkit - - Safari 1.3 - - OSX.3 - - 312.8 - - A -
    - Webkit - - Safari 2.0 - - OSX.4+ - - 419.3 - - A -
    - Webkit - - Safari 3.0 - - OSX.4+ - - 522.1 - - A -
    - Webkit - - OmniWeb 5.5 - - OSX.4+ - - 420 - - A -
    - Webkit - - iPod Touch / iPhone - - iPod - - 420.1 - - A -
    - Webkit - - S60 - - S60 - - 413 - - A -
    - Presto - - Opera 7.0 - - Win 95+ / OSX.1+ - - - - - A -
    - Presto - - Opera 7.5 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 8.0 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 8.5 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 9.0 - - Win 95+ / OSX.3+ - - - - - A -
    - Presto - - Opera 9.2 - - Win 88+ / OSX.3+ - - - - - A -
    - Presto - - Opera 9.5 - - Win 88+ / OSX.3+ - - - - - A -
    - Presto - - Opera for Wii - - Wii - - - - - A -
    - Presto - - Nokia N800 - - N800 - - - - - A -
    - Presto - - Nintendo DS browser - - Nintendo DS - - 8.5 - - C/A - - 1 - -
    - KHTML - - Konqureror 3.1 - - KDE 3.1 - - 3.1 - - C -
    - KHTML - - Konqureror 3.3 - - KDE 3.3 - - 3.3 - - A -
    - KHTML - - Konqureror 3.5 - - KDE 3.5 - - 3.5 - - A -
    - Tasman - - Internet Explorer 4.5 - - Mac OS 8-9 - - - - - X -
    - Tasman - - Internet Explorer 5.1 - - Mac OS 7.6-9 - - 1 - - C -
    - Tasman - - Internet Explorer 5.2 - - Mac OS 8-X - - 1 - - C -
    - Misc - - NetFront 3.1 - - Embedded devices - - - - - C -
    - Misc - - NetFront 3.4 - - Embedded devices - - - - - A -
    - Misc - - Dillo 0.8 - - Embedded devices - - - - - X -
    - Misc - - Links - - Text only - - - - - X -
    - Misc - - Lynx - - Text only - - - - - X -
    - Misc - - IE Mobile - - Windows Mobile 6 - - - - - C -
    - Misc - - PSP browser - - PSP - - - - - C -
    - Other browsers - - All others - - - - - - - - U -
    - Rendering engine - - Browser - - Platform(s) - - Engine version - - CSS grade -
    -
    - -
    - -
    -
    -

    DataTable with default features

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Rendering engine - - Browser - - Platform(s) - - Engine version - - CSS grade -
    - Trident - - Internet - Explorer 4.0 - - Win 95+ - - 4 - - X -
    - Trident - - Internet - Explorer 5.0 - - Win 95+ - - 5 - - C -
    - Trident - - Internet - Explorer 5.5 - - Win 95+ - - 5.5 - - A -
    - Trident - - Internet - Explorer 6 - - Win 98+ - - 6 - - A -
    - Trident - - Internet Explorer 7 - - Win XP SP2+ - - 7 - - A -
    - Trident - - AOL browser (AOL desktop) - - Win XP - - 6 - - A -
    - Gecko - - Firefox 1.0 - - Win 98+ / OSX.2+ - - 1.7 - - A -
    - Gecko - - Firefox 1.5 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Firefox 2.0 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Firefox 3.0 - - Win 2k+ / OSX.3+ - - 1.9 - - A -
    - Gecko - - Camino 1.0 - - OSX.2+ - - 1.8 - - A -
    - Gecko - - Camino 1.5 - - OSX.3+ - - 1.8 - - A -
    - Gecko - - Netscape 7.2 - - Win 95+ / Mac OS 8.6-9.2 - - 1.7 - - A -
    - Gecko - - Netscape Browser 8 - - Win 98SE+ - - 1.7 - - A -
    - Gecko - - Netscape Navigator 9 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Mozilla 1.0 - - Win 95+ / OSX.1+ - - 1 - - A -
    - Gecko - - Mozilla 1.1 - - Win 95+ / OSX.1+ - - 1.1 - - A -
    - Gecko - - Mozilla 1.2 - - Win 95+ / OSX.1+ - - 1.2 - - A -
    - Gecko - - Mozilla 1.3 - - Win 95+ / OSX.1+ - - 1.3 - - A -
    - Gecko - - Mozilla 1.4 - - Win 95+ / OSX.1+ - - 1.4 - - A -
    - Gecko - - Mozilla 1.5 - - Win 95+ / OSX.1+ - - 1.5 - - A -
    - Gecko - - Mozilla 1.6 - - Win 95+ / OSX.1+ - - 1.6 - - A -
    - Gecko - - Mozilla 1.7 - - Win 98+ / OSX.1+ - - 1.7 - - A -
    - Gecko - - Mozilla 1.8 - - Win 98+ / OSX.1+ - - 1.8 - - A -
    - Gecko - - Seamonkey 1.1 - - Win 98+ / OSX.2+ - - 1.8 - - A -
    - Gecko - - Epiphany 2.20 - - Gnome - - 1.8 - - A -
    - Webkit - - Safari 1.2 - - OSX.3 - - 125.5 - - A -
    - Webkit - - Safari 1.3 - - OSX.3 - - 312.8 - - A -
    - Webkit - - Safari 2.0 - - OSX.4+ - - 419.3 - - A -
    - Webkit - - Safari 3.0 - - OSX.4+ - - 522.1 - - A -
    - Webkit - - OmniWeb 5.5 - - OSX.4+ - - 420 - - A -
    - Webkit - - iPod Touch / iPhone - - iPod - - 420.1 - - A -
    - Webkit - - S60 - - S60 - - 413 - - A -
    - Presto - - Opera 7.0 - - Win 95+ / OSX.1+ - - - - - A -
    - Presto - - Opera 7.5 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 8.0 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 8.5 - - Win 95+ / OSX.2+ - - - - - A -
    - Presto - - Opera 9.0 - - Win 95+ / OSX.3+ - - - - - A -
    - Presto - - Opera 9.2 - - Win 88+ / OSX.3+ - - - - - A -
    - Presto - - Opera 9.5 - - Win 88+ / OSX.3+ - - - - - A -
    - Presto - - Opera for Wii - - Wii - - - - - A -
    - Presto - - Nokia N800 - - N800 - - - - - A -
    - Presto - - Nintendo DS browser - - Nintendo DS - - 8.5 - - C/A - - 1 - -
    - KHTML - - Konqureror 3.1 - - KDE 3.1 - - 3.1 - - C -
    - KHTML - - Konqureror 3.3 - - KDE 3.3 - - 3.3 - - A -
    - KHTML - - Konqureror 3.5 - - KDE 3.5 - - 3.5 - - A -
    - Tasman - - Internet Explorer 4.5 - - Mac OS 8-9 - - - - - X -
    - Tasman - - Internet Explorer 5.1 - - Mac OS 7.6-9 - - 1 - - C -
    - Tasman - - Internet Explorer 5.2 - - Mac OS 8-X - - 1 - - C -
    - Misc - - NetFront 3.1 - - Embedded devices - - - - - C -
    - Misc - - NetFront 3.4 - - Embedded devices - - - - - A -
    - Misc - - Dillo 0.8 - - Embedded devices - - - - - X -
    - Misc - - Links - - Text only - - - - - X -
    - Misc - - Lynx - - Text only - - - - - X -
    - Misc - - IE Mobile - - Windows Mobile 6 - - - - - C -
    - Misc - - PSP browser - - PSP - - - - - C -
    - Other browsers - - All others - - - - - - - - U -
    - Rendering engine - - Browser - - Platform(s) - - Engine version - - CSS grade -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/tables-jsgrid.html b/tests/jinja_adminlte/tables-jsgrid.html deleted file mode 100644 index 696ebdd..0000000 --- a/tests/jinja_adminlte/tables-jsgrid.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Tables JSGrid {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    jsGrid

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -

    jsGrid

    -
    - -
    -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/tables-simple.html b/tests/jinja_adminlte/tables-simple.html deleted file mode 100644 index 6f58166..0000000 --- a/tests/jinja_adminlte/tables-simple.html +++ /dev/null @@ -1,1011 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Tables {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Simple Tables

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    Bordered Table

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #TaskProgressLabel
    1.Update software -
    -
    -
    -
    - 55% -
    2.Clean database -
    -
    -
    -
    - 70% -
    3.Cron job running -
    -
    -
    -
    - 30% -
    4.Fix and squish bugs -
    -
    -
    -
    - 90% -
    -
    - - -
    - -
    -
    -

    Condensed Full Width Table

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #TaskProgressLabel
    1.Update software -
    -
    -
    -
    - 55% -
    2.Clean database -
    -
    -
    -
    - 70% -
    3.Cron job running -
    -
    -
    -
    - 30% -
    4.Fix and squish bugs -
    -
    -
    -
    - 90% -
    -
    - -
    - -
    - -
    -
    -
    -

    Simple Full Width Table

    -
    -
      -
    • - « -
    • -
    • - 1 -
    • -
    • - 2 -
    • -
    • - 3 -
    • -
    • - » -
    • -
    -
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - # - TaskProgress - Label -
    1.Update software -
    -
    -
    -
    - - 55% - -
    2. - Clean database - -
    -
    -
    -
    - - 70% - -
    - 3. - - Cron job running - -
    -
    -
    -
    - - 30% - -
    - 4. - - Fix and squish bugs - -
    -
    -
    -
    - - 90% - -
    -
    - -
    - -
    -
    -

    - Striped Full Width Table -

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - # - - Task - - Progress - - Label -
    - 1. - - Update software - -
    -
    -
    -
    - - 55% - -
    - 2. - - Clean database - -
    -
    -
    -
    - - 70% - -
    - 3. - - Cron job running - -
    -
    -
    -
    - - 30% - -
    - 4. - - Fix and squish bugs - -
    -
    -
    -
    - - 90% - -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Responsive Hover Table -

    -
    -
    - -
    - -
    -
    -
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ID - - User - - Date - - Status - - Reason -
    - 183 - - John Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 219 - - Alexander Pierce - - 11-7-2014 - - - Pending - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 657 - - Bob Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 175 - - Mike Doe - - 11-7-2014 - - - Denied - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -

    - Fixed Header Table -

    -
    -
    - -
    - -
    -
    -
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - ID - - User - - Date - - Status - - Reason -
    - 183 - - John Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 219 - - Alexander Pierce - - 11-7-2014 - - - Pending - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 657 - - Bob Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 175 - - Mike Doe - - 11-7-2014 - - - Denied - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 134 - - Jim Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 494 - - Victoria Doe - - 11-7-2014 - - - Pending - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 832 - - Michael Doe - - 11-7-2014 - - - Approved - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    - 982 - - Rocky Doe - - 11-7-2014 - - - Denied - - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -

    - Expandable Table -

    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - # - - User - - Date - - Status - - Reason -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    - 219 - - Alexander Pierce - - 11-7-2014 - - Pending - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    - 657 - - Alexander Pierce - - 11-7-2014 - - Approved - - Bacon ipsum dolor sit amet salami venison chicken flank fatback doner. -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -

    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. -

    -
    -
    - -
    - -
    -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-buttons.html b/tests/jinja_adminlte/ui-buttons.html deleted file mode 100644 index 3c86b17..0000000 --- a/tests/jinja_adminlte/ui-buttons.html +++ /dev/null @@ -1,2180 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Ui Buttons {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Buttons

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    - - Buttons -

    -
    -
    -

    - Various types of buttons. Using the base class - - .btn - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Normal - Large - - .btn-lg - - - Small - - .btn-sm - - - Extra Small - - .btn-xs - - - Flat - - .btn-flat - - - Disabled - - .disabled - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    -

    - - Outline Buttons -

    -
    -
    -

    - Various types of buttons. Using the base class - - .btn - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Normal - Large - - .btn-lg - - - Small - - .btn-sm - - - Extra Small - - .btn-xs - - - Flat - - .btn-flat - - - Disabled - - .disabled - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    -

    - - Gradient Buttons (bg-gradient-*) -

    -
    -
    -

    - Various types of buttons. Using the base class - - .btn - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Normal - Large - - .btn-lg - - - Small - - .btn-sm - - - Extra Small - - .btn-xs - - - Flat - - .btn-flat - - - Disabled - - .disabled - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    - - - - - - - - - - - -
    -
    - -
    -
    - -
    - -
    -
    - -
    -
    -

    Block Buttons

    -
    -
    - - - -
    -
    - - -
    -
    -

    Horizontal Button Group

    -
    -
    -

    - Horizontal button groups are easy to create with bootstrap. Just add your buttons - inside - - <div class="btn-group"></div> - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ButtonIconsFlatDropdown
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    -
    - -
    -
    -

    - Appended Buttons -

    -
    -
    - With dropdown - - - Normal -
    -
    - -
    - - -
    - - Flat -
    - - - - -
    - -
    - -
    - - -
    -
    -

    - Split buttons -

    -
    -
    - -

    - Normal split buttons: -

    -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - -

    - Flat split buttons: -

    -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - -

    - Hoverable split buttons: -

    -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    -
    - -
    - -
    - -
    - -
    -
    -

    - Application Buttons -

    -
    - - -
    - - -
    -
    -

    - Vertical Button Group -

    -
    -
    -

    - Vertical button groups are easy to create with bootstrap. Just add your buttons - inside - - <div class="btn-group-vertical"></div> - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ButtonIconsFlatDropdown
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - -
    - - -
    -
    -

    - Radio Button Group -

    -
    -
    -

    - Radio Button Group with - - .btn-secondary - -

    -
    - - - -
    -

    - Radio Button Group with - - .bg-olive - -

    -
    - - - -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-general.html b/tests/jinja_adminlte/ui-general.html deleted file mode 100644 index 58835f9..0000000 --- a/tests/jinja_adminlte/ui-general.html +++ /dev/null @@ -1,1490 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI General {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Inline Charts

    -
    -
    - -
    -
    -
    - -
    - -
    -
    - -
    -
    -

    - - Color Palette -

    -
    -
    -
    -
    Theme Colors
    -
    - -
    -
    -

    Primary

    -
    -
    - #007bff -
    -
    - Disabled -
    -
    -
    - -
    -

    Secondary

    -
    -
    - #6c757d -
    -
    - Disabled -
    -
    -
    - -
    -

    Info

    -
    -
    - #17a2b8 -
    -
    - Disabled -
    -
    -
    - -
    -

    Success

    -
    -
    - #28a745 -
    -
    - Disabled -
    -
    -
    - -
    -

    Warning

    -
    -
    - #ffc107 -
    -
    - Disabled -
    -
    -
    - -
    -

    Danger

    -
    -
    - #dc3545 -
    -
    - Disabled -
    -
    -
    - -
    - -
    -
    Black/White Nuances
    -
    - -
    -
    -

    Black

    -
    -
    - #000000 -
    -
    - Disabled -
    -
    -
    - -
    -

    Gray Dark

    -
    -
    - #343a40 -
    -
    - Disabled -
    -
    -
    - -
    -

    Gray

    -
    -
    - #adb5bd -
    -
    - Disabled -
    -
    -
    - -
    -

    Light

    -
    -
    - #1f2d3d -
    -
    - Disabled -
    -
    -
    - -
    - -
    -
    Colors
    -
    - -
    -
    -

    Indigo

    -
    -
    - #6610f2 -
    -
    - Disabled -
    -
    -
    - -
    -

    Lightblue

    -
    -
    - #3c8dbc -
    -
    - Disabled -
    -
    -
    - -
    -

    Navy

    -
    -
    - - #001f3f - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Purple

    -
    -
    - - #605ca8 - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Fuchsia

    -
    -
    - - #f012be - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Pink

    -
    -
    - - #e83e8c - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Maroon

    -
    -
    - - #d81b60 - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Orange

    -
    -
    - - #ff851b - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Lime

    -
    -
    - - #01ff70 - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Teal

    -
    -
    - - #39cccc - -
    -
    - - Disabled - -
    -
    -
    - -
    -

    Olive

    -
    -
    - - #3d9970 - -
    -
    - - Disabled - -
    -
    -
    - -
    - -
    - -
    - - -
    Alerts and Callouts
    -
    -
    -
    -
    -

    - - Alerts -

    -
    - -
    -
    - -
    - - Alert! -
    - Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my - entire - soul, like these sweet mornings of spring which I enjoy with my whole heart. -
    -
    - -
    - - Alert! -
    - Info alert preview. This alert is dismissable. -
    -
    - -
    - - Alert! -
    - Warning alert preview. This alert is dismissable. -
    -
    - -
    - - Alert! -
    - Success alert preview. This alert is dismissable. -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Callouts -

    -
    - -
    -
    -
    - I am a danger callout! -
    -

    - There is a problem that we need to fix. A wonderful serenity has taken possession of my entire - soul, - like these sweet mornings of spring which I enjoy with my whole heart. -

    -
    -
    -
    - I am an info callout! -
    -

    - Follow the steps to continue to payment. -

    -
    -
    -
    - I am a warning callout! -
    -

    - This is a yellow callout. -

    -
    -
    -
    - I am a success callout! -
    -

    - This is a green callout. -

    -
    -
    - -
    - -
    - -
    - - -
    Tabs in Cards
    -
    -
    - -
    - - -
    -
    -
    - A wonderful serenity has taken possession of my entire soul, - like these sweet mornings of spring which I enjoy with my whole heart. - I am alone, and feel the charm of existence in this spot, - which was created for the bliss of souls like mine. I am so happy, - my dear friend, so absorbed in the exquisite sense of mere tranquil existence, - that I neglect my talents. I should be incapable of drawing a single stroke - at the present moment; and yet I feel that I never was a greater artist than now. -
    - -
    - The European languages are members of the same family. Their separate existence is a myth. - For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ - in their grammar, their pronunciation and their most common words. Everyone realizes why a - new common language would be desirable: one could refuse to pay expensive translators. To - achieve this, it would be necessary to have uniform grammar, pronunciation and more common - words. If several languages coalesce, the grammar of the resulting language is more simple - and regular than that of the individual languages. -
    - -
    - Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, - when an unknown printer took a galley of type and scrambled it to make a type specimen book. - It has survived not only five centuries, but also the leap into electronic typesetting, - remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset - sheets containing Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. -
    - -
    - -
    - -
    - -
    - -
    - - - -
    - Progress Bars -
    -
    -
    -
    -
    -

    - Progress Bars Different Sizes -

    -
    - -
    -

    - - .progress - -

    -
    -
    - - 40% Complete (success) - -
    -
    -

    - - .progress-sm - -

    -
    -
    - - 20% Complete - -
    -
    -

    - - .progress-xs - -

    -
    -
    - - 60% Complete (warning) - -
    -
    -

    - - .progress-xxs - -

    -
    -
    - - 60% Complete (warning) - -
    -
    -
    - -
    - -
    - -
    -
    -
    -

    - Progress bars -

    -
    - -
    -
    -
    - - 40% Complete (success) - -
    -
    -
    -
    - - 20% Complete - -
    -
    -
    -
    - - 60% Complete (warning) - -
    -
    -
    -
    - - 80% Complete - -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Vertical Progress Bars Different Sizes -

    -
    - -
    -

    - By adding the class - - .vertical - - and - - .progress-sm - - , - - .progress-xs - - or - - .progress-xxs - - we achieve: -

    -
    -
    - - 40% - -
    -
    -
    -
    - - 100% - -
    -
    -
    -
    - - 60% - -
    -
    -
    -
    - - 60% - -
    -
    -
    - -
    - -
    - -
    -
    -
    -

    - Vertical Progress bars -

    -
    - -
    -

    - By adding the class - - .vertical - - we achieve: -

    -
    -
    - - 40% - -
    -
    -
    -
    - - 20% - -
    -
    -
    -
    - - 60% - -
    -
    -
    -
    - - 80% - -
    -
    -
    - -
    - -
    - -
    - - - -
    - Bootstrap Accordion & Carousel -
    -
    -
    -
    -
    -

    - Collapsible Accordion -

    -
    - -
    - -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. - 3 - wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt - laborum - eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee - nulla - assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred - nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft - beer - farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus - labore sustainable VHS. -
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. - 3 - wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt - laborum - eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee - nulla - assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred - nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft - beer - farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus - labore sustainable VHS. -
    -
    -
    -
    - -
    -
    - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. - 3 - wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt - laborum - eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee - nulla - assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred - nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft - beer - farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus - labore sustainable VHS. -
    -
    -
    -
    -
    - -
    - -
    - -
    -
    -
    -

    - Carousel -

    -
    - -
    - -
    - -
    - -
    - -
    - - - -
    - Typography -
    -
    -
    -
    -
    -

    - - Headlines -

    -
    - -
    -

    - h1. Bootstrap heading -

    -

    - h2. Bootstrap heading -

    -

    - h3. Bootstrap heading -

    -

    - h4. Bootstrap heading -

    -
    - h5. Bootstrap heading -
    -
    - h6. Bootstrap heading -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Text Emphasis -

    -
    - -
    -

    - Lead to emphasize importance -

    -

    - Text green to emphasize success -

    -

    - Text aqua to emphasize info -

    -

    - Text light blue to emphasize info (2) -

    -

    - Text red to emphasize danger -

    -

    - Text yellow to emphasize warning -

    -

    - Text muted to emphasize general -

    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - - Primary Block Quotes -

    -
    - -
    -
    -

    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. -

    - - Someone famous in - - Source Title - - -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Secondary Block Quotes -

    -
    - -
    -
    -

    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. -

    - - Someone famous in - - Source Title - - -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - - Unordered List -

    -
    - -
    -
      -
    • - Lorem ipsum dolor sit amet -
    • -
    • - Consectetur adipiscing elit -
    • -
    • - Integer molestie lorem at massa -
    • -
    • - Facilisis in pretium nisl aliquet -
    • -
    • - Nulla volutpat aliquam velit -
        -
      • - Phasellus iaculis neque -
      • -
      • - Purus sodales ultricies -
      • -
      • - Vestibulum laoreet porttitor sem -
      • -
      • - Ac tristique libero volutpat at -
      • -
      -
    • -
    • - Faucibus porta lacus fringilla vel -
    • -
    • - Aenean sit amet erat nunc -
    • -
    • - Eget porttitor lorem -
    • -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Ordered Lists -

    -
    - -
    -
      -
    1. - Lorem ipsum dolor sit amet -
    2. -
    3. - Consectetur adipiscing elit -
    4. -
    5. - Integer molestie lorem at massa -
    6. -
    7. - Facilisis in pretium nisl aliquet -
    8. -
    9. - Nulla volutpat aliquam velit -
        -
      1. - Phasellus iaculis neque -
      2. -
      3. - Purus sodales ultricies -
      4. -
      5. - Vestibulum laoreet porttitor sem -
      6. -
      7. - Ac tristique libero volutpat at -
      8. -
      -
    10. -
    11. - Faucibus porta lacus fringilla vel -
    12. -
    13. - Aenean sit amet erat nunc -
    14. -
    15. - Eget porttitor lorem -
    16. -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Unstyled List -

    -
    - -
    -
      -
    • - Lorem ipsum dolor sit amet -
    • -
    • - Consectetur adipiscing elit -
    • -
    • - Integer molestie lorem at massa -
    • -
    • - Facilisis in pretium nisl aliquet -
    • -
    • - Nulla volutpat aliquam velit -
        -
      • - Phasellus iaculis neque -
      • -
      • - Purus sodales ultricies -
      • -
      • - Vestibulum laoreet porttitor sem -
      • -
      • - Ac tristique libero volutpat at -
      • -
      -
    • -
    • - Faucibus porta lacus fringilla vel -
    • -
    • - Aenean sit amet erat nunc -
    • -
    • - Eget porttitor lorem -
    • -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - - Description -

    -
    - -
    -
    -
    - Description lists -
    -
    - A description list is perfect for defining terms. -
    -
    - Euismod -
    -
    - Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit. -
    -
    - Donec id elit non mi porta gravida at eget metus. -
    -
    - Malesuada porta -
    -
    - Etiam porta sem malesuada magna mollis euismod. -
    -
    -
    - -
    - -
    - -
    -
    -
    -

    - - Description Horizontal -

    -
    - -
    -
    -
    - Description lists -
    -
    - A description list is perfect for defining terms. -
    -
    - Euismod -
    -
    - Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit. -
    -
    - Donec id elit non mi porta gravida at eget metus. -
    -
    - Malesuada porta -
    -
    - Etiam porta sem malesuada magna mollis euismod. -
    -
    - Felis euismod semper eget lacinia -
    -
    - Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo - sit amet risus. -
    -
    -
    - -
    - -
    - -
    - - -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-icons.html b/tests/jinja_adminlte/ui-icons.html deleted file mode 100644 index 077a9f8..0000000 --- a/tests/jinja_adminlte/ui-icons.html +++ /dev/null @@ -1,79 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Icons {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Icons

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -

    Icons

    -
    - -
    -

    - You can use any font library you like with AdminLTE 3. -

    - Recommendations - -
    - -
    -
    - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-modals.html b/tests/jinja_adminlte/ui-modals.html deleted file mode 100644 index 526f8c7..0000000 --- a/tests/jinja_adminlte/ui-modals.html +++ /dev/null @@ -1,742 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Modals {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    - Modals & Alerts - - new - -

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    - - Modal Examples -

    -
    -
    - - - - - - - -
    -
    - - - -
    -
    - -
    - Instructions for how to use modals are available on the - - Bootstrap documentation - -
    -
    - -
    -
    -
    -

    - - Toasts Examples - - built in AdminLTE - -

    -
    -
    - - - - - -
    -
    - - - -
    -
    - - - - - -
    -
    -
    -
    -
    -

    - - SweetAlert2 Examples -

    -
    -
    - - - - - -
    - For more examples look at - https://sweetalert2.github.io/ -
    -
    - -
    -
    -
    -

    - - Toastr Examples -

    -
    -
    - - - - -
    - For more examples look at - - https://codeseven.github.io/toastr/ - -
    -
    - -
    -
    - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-navbar.html b/tests/jinja_adminlte/ui-navbar.html deleted file mode 100644 index ba73086..0000000 --- a/tests/jinja_adminlte/ui-navbar.html +++ /dev/null @@ -1,1088 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Navbar {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    - Navbar & Tabs - - new - -

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    - - Navbar Examples -

    -
    -
    -
    -
    -

    - Default Navbar - - (navbar-light) - -

    - -
    -
    -

    - Default Navbar - - (navbar-white navbar-light) - -

    - -
    -
    -
    -
    -

    - Primary Navbar - - - recommended - - (navbar-primary navbar-dark) - -

    - -
    -
    -

    - Primary Navbar - - (navbar-primary navbar-light) - -

    - -
    -
    -
    -
    -

    - Orange Navbar - - - recommended - - (navbar-orange navbar-light) - -

    - -
    -
    -

    - Orange Navbar - - (navbar-orange navbar-dark) - -

    - -
    -
    -
    - -
    -
    - -
    - -
    -
    -

    - Nav Tabs inside Card Header - - card-tabs / card-outline-tabs - -

    -
    -
    - -
    -
    -
    - -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    -
    -
    -
    -
    -

    Nav Tabs Overlay for loading

    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    - Loading... -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    -
    -
    -
    - -
    - Loading... -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    -
    - -
    -
    -
    - -
    -
    -

    - - Vertical Tabs Examples -

    -
    -
    -

    Left Sided

    -
    - -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    -
    -

    - Right Sided - - (nav-tabs-right) - -

    -
    -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    -
    - -
    - -
    -
    -

    - - Tabs Custom Content Examples -

    -
    -
    -

    Custom Content Below

    - -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    -

    - Custom Content goes here -

    -
    -

    Custom Content Above

    - -
    -

    - Custom Content goes here -

    -
    -
    -
    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin malesuada lacus ullamcorper dui molestie, sit amet congue quam finibus. Etiam ultricies nunc non magna feugiat commodo. Etiam odio magna, mollis auctor felis vitae, ullamcorper ornare ligula. Proin pellentesque tincidunt nisi, vitae ullamcorper felis aliquam id. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin id orci eu lectus blandit suscipit. Phasellus porta, ante et varius ornare, sem enim sollicitudin eros, at commodo leo est vitae lacus. Etiam ut porta sem. Proin porttitor porta nisl, id tempor risus rhoncus quis. In in quam a nibh cursus pulvinar non consequat neque. Mauris lacus elit, condimentum ac condimentum at, semper vitae lectus. Cras lacinia erat eget sapien porta consectetur. -
    -
    - Mauris tincidunt mi at erat gravida, eget tristique urna bibendum. Mauris pharetra purus ut ligula tempor, et vulputate metus facilisis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas sollicitudin, nisi a luctus interdum, nisl ligula placerat mi, quis posuere purus ligula eu lectus. Donec nunc tellus, elementum sit amet ultricies at, posuere nec nunc. Nunc euismod pellentesque diam. -
    -
    - Morbi turpis dolor, vulputate vitae felis non, tincidunt congue mauris. Phasellus volutpat augue id mi placerat mollis. Vivamus faucibus eu massa eget condimentum. Fusce nec hendrerit sem, ac tristique nulla. Integer vestibulum orci odio. Cras nec augue ipsum. Suspendisse ut velit condimentum, mattis urna a, malesuada nunc. Curabitur eleifend facilisis velit finibus tristique. Nam vulputate, eros non luctus efficitur, ipsum odio volutpat massa, sit amet sollicitudin est libero sed ipsum. Nulla lacinia, ex vitae gravida fermentum, lectus ipsum gravida arcu, id fermentum metus arcu vel metus. Curabitur eget sem eu risus tincidunt eleifend ac ornare magna. -
    -
    - Pellentesque vestibulum commodo nibh nec blandit. Maecenas neque magna, iaculis tempus turpis ac, ornare sodales tellus. Mauris eget blandit dolor. Quisque tincidunt venenatis vulputate. Morbi euismod molestie tristique. Vestibulum consectetur dolor a vestibulum pharetra. Donec interdum placerat urna nec pharetra. Etiam eget dapibus orci, eget aliquet urna. Nunc at consequat diam. Nunc et felis ut nisl commodo dignissim. In hac habitasse platea dictumst. Praesent imperdiet accumsan ex sit amet facilisis. -
    -
    -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-ribbons.html b/tests/jinja_adminlte/ui-ribbons.html deleted file mode 100644 index c8ff433..0000000 --- a/tests/jinja_adminlte/ui-ribbons.html +++ /dev/null @@ -1,271 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Ribbons {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Ribbons

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    Ribbons

    -
    - -
    -
    -
    -
    -
    -
    - Ribbon -
    -
    - Ribbon Default -
    - - .ribbon-wrapper.ribbon-lg .ribbon - -
    -
    -
    -
    -
    -
    - Ribbon Large -
    -
    - Ribbon Large -
    - - .ribbon-wrapper.ribbon-lg .ribbon - -
    -
    -
    -
    -
    -
    - Ribbon Extra Large -
    -
    - Ribbon Extra Large -
    - - .ribbon-wrapper.ribbon-xl .ribbon - -
    -
    -
    -
    -
    -
    -
    -
    - Ribbon -
    -
    - Ribbon Large -
    - with Large Text -
    - - .ribbon-wrapper.ribbon-lg .ribbon.text-lg - -
    -
    -
    -
    -
    -
    - Ribbon -
    -
    - Ribbon Extra Large -
    - with Large Text -
    - - .ribbon-wrapper.ribbon-xl .ribbon.text-lg - -
    -
    -
    -
    -
    -
    - Ribbon -
    -
    - Ribbon Extra Large -
    - with Extra Large Text -
    - - .ribbon-wrapper.ribbon-xl .ribbon.text-xl - -
    -
    -
    -
    -
    -
    - Photo 1 -
    -
    - Ribbon -
    -
    -
    -
    -
    -
    - Photo 2 -
    -
    - Ribbon -
    -
    -
    -
    -
    -
    - Photo 3 -
    -
    - Ribbon -
    -
    -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-sliders.html b/tests/jinja_adminlte/ui-sliders.html deleted file mode 100644 index 8475f89..0000000 --- a/tests/jinja_adminlte/ui-sliders.html +++ /dev/null @@ -1,363 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Sliders {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Sliders

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -

    Ion Slider

    -
    - -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    Bootstrap Slider

    -
    - -
    -
    -
    -
    - -
    -

    - .slider-red input.slider -

    -
    - -
    -

    - .slider-blue input.slider -

    -
    - -
    -

    - .slider-green input.slider -

    -
    - -
    -

    - .slider-yellow input.slider -

    -
    - -
    -

    - .slider-teal input.slider -

    -
    - -
    -

    - .slider-purple input.slider -

    -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/ui-timeline.html b/tests/jinja_adminlte/ui-timeline.html deleted file mode 100644 index 84a021b..0000000 --- a/tests/jinja_adminlte/ui-timeline.html +++ /dev/null @@ -1,190 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}UI Timeline {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Timeline

    -
    -
    - -
    -
    -
    - -
    - -
    -
    - -
    -
    - -
    - -
    - 10 Feb. 2014 -
    - - -
    - -
    - - - 12:05 - -

    - Support Team - sent you an email -

    -
    - Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, - weebly ning heekya handango imeem plugg dopplr jibjab, movity - jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle - quora plaxo ideeli hulu weebly balihoo... -
    - -
    -
    - - -
    - -
    - - - 5 mins ago - -

    - Sarah Young - accepted your friend request -

    -
    -
    - - -
    - -
    - - - 27 mins ago - -

    - Jay White - commented on your post -

    -
    - Take me to your leader! - Switzerland is small and neutral! - We are more like Germany, ambitious and misunderstood! -
    - -
    -
    - - -
    - 3 Jan. 2014 -
    - - -
    - -
    - - - 2 days ago - -

    - Mina Lee - uploaded new photos -

    -
    - ... - ... - ... - ... - ... -
    -
    -
    - - -
    - -
    - - - 5 days ago - -

    - Mr. Doe - shared a video -

    -
    -
    - -
    -
    - -
    -
    - -
    - -
    -
    -
    - -
    -
    - -
    - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/jinja_adminlte/widgets.html b/tests/jinja_adminlte/widgets.html deleted file mode 100644 index 2bb593e..0000000 --- a/tests/jinja_adminlte/widgets.html +++ /dev/null @@ -1,2811 +0,0 @@ -{% extends "layouts/base.html" %} -{% block title %}Widgets {% endblock %} - -{% block body_class %}{% endblock body_class %} - -{% block stylesheets %} - - - - - - - - -{% endblock stylesheets %} -{% block content %} - -
    - -
    -
    -
    -
    -

    Widgets

    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    Info Box
    -
    -
    -
    - - - -
    - Messages - 1,410 -
    - -
    - -
    - -
    -
    - - - -
    - Bookmarks - 410 -
    - -
    - -
    - -
    -
    - - - -
    - Uploads - 13,648 -
    - -
    - -
    - -
    -
    - - - -
    - Likes - 93,139 -
    - -
    - -
    - -
    - - -
    - Info Box With Custom Shadows - - - Using Bootstrap's Shadow Utility - - -
    -
    -
    -
    - - - -
    - Custom Shadows - None - -
    - -
    - -
    - -
    -
    - - - -
    - Custom Shadows - Small - -
    - -
    - -
    - -
    -
    - - - -
    - Custom Shadows - Regular - -
    - -
    - -
    - -
    -
    - - - -
    - Custom Shadows - Large - -
    - -
    - -
    - -
    - - -
    - Info Box With - - bg-* - -
    -
    -
    -
    - - - -
    - Bookmarks - 41,410 -
    -
    -
    - 70% Increase in 30 Days -
    - -
    - -
    - -
    -
    - - - -
    - Likes - 41,410 -
    -
    -
    - 70% Increase in 30 Days -
    - -
    - -
    - -
    -
    - - - -
    - Events - 41,410 -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    -
    - - - -
    - - Comments - - - 41,410 - -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    - - -
    - Info Box With - - bg-gradient-* - -
    -
    -
    -
    - - - -
    - - Bookmarks - - - 41,410 - -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    -
    - - - -
    - - Likes - - - 41,410 - -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    -
    - - - -
    - - Events - - - 41,410 - -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    -
    - - - -
    - - Comments - - - 41,410 - -
    -
    -
    - - 70% Increase in 30 Days - -
    - -
    - -
    - -
    - - - -
    - Small Box -
    -
    -
    - -
    -
    -

    150

    -

    - New Orders -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    - 53 - - % - -

    -

    - Bounce Rate -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    44

    -

    - User Registrations -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    -
    -

    65

    -

    - Unique Visitors -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - - -
    -
    - -
    - -
    - -
    - -
    -

    150

    -

    - New Orders -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - -
    - -
    - -
    - -
    -

    - 53 - - % - -

    -

    - Bounce Rate -

    -
    -
    - -
    - - More info - - -
    -
    - -
    - - -

    - Cards -

    -
    - Abilities -
    -
    -
    -
    -
    -

    - Expandable -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Collapsable -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Removable -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Maximizable -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Card Refresh -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - The body of the card after card refresh -
    -
    - -
    -
    -
    -

    - All together -

    -
    - - - - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Loading state -

    -
    -
    - The body of the card -
    - - -
    - -
    - -
    - -
    - -
    -
    -
    -

    - Loading state (dark) -

    -
    -
    - The body of the card -
    - - -
    - -
    - -
    - -
    - -
    - - -
    - Custom Shadows Variations - - - Using Bootstrap's Shadow Utility - - -
    -
    -
    -
    -
    -

    - Shadow - None -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Shadow - Small -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Shadow - Regular -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Shadow - Large -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    - - -
    - Colors Variations -
    -
    -
    -
    -
    -

    - Primary -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Success -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Warning -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Danger -

    -
    -
    - The body of the card -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Primary Outline -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Success Outline -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Warning Outline -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Danger Outline -

    -
    -
    - The body of the card -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Primary -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Success -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Warning -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Danger -

    -
    -
    - The body of the card -
    - -
    - -
    - -
    - -
    -
    -
    -
    -

    - Primary Gradient -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Success Gradient -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Warning Gradient -

    -
    - -
    - -
    - -
    - The body of the card -
    - -
    - -
    - -
    -
    -
    -

    - Danger Gradient -

    -
    -
    - The body of the card -
    - -
    - -
    - -
    - - - -

    - Direct Chat -

    -
    -
    - -
    -
    -

    - Direct Chat -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Direct Chat -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Direct Chat -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Direct Chat -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - - -
    - Custom Shadows Variations - - - Using Bootstrap's Shadow Utility - - -
    -
    -
    - -
    -
    -

    - Shadow - None -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Shadow - Small -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Shadow - Regular -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -
    -
    -

    - Shadow - Large -

    -
    - - 3 - - - - -
    -
    - -
    - -
    - -
    -
    - - Alexander Pierce - - - 23 Jan 2:00 pm - -
    - - Message User Image - -
    - Is this template really for free? That's unbelievable! -
    - -
    - - -
    -
    - - Sarah Bullock - - - 23 Jan 2:05 pm - -
    - - Message User Image - -
    - You better believe it! -
    - -
    - -
    - - - - -
    - - - -
    - -
    - -
    - -

    - Social Widgets -

    -
    -
    - -
    - -
    -
    - User Avatar -
    - -

    - Nadia Carmichael -

    -
    - Lead Developer -
    -
    - -
    - -
    - -
    - -
    - -
    -

    - Alexander Pierce -

    -
    - Founder & CEO -
    -
    -
    - User Avatar -
    - -
    - -
    - -
    - -
    - -
    -

    - Elizabeth Pierce -

    -
    - Web Designer -
    -
    -
    - User Avatar -
    - -
    - -
    - -
    - -
    -
    - -
    -
    -
    - User Image - - - Jonathan Burke Jr. - - - - Shared publicly - 7:30 PM Today - -
    - -
    - - - -
    - -
    - -
    - Photo -

    - I took this photo this morning. What do you guys think? -

    - - - - 127 likes - 3 comments - -
    - - - - - -
    - -
    - -
    - -
    -
    -
    - User Image - - - Jonathan Burke Jr. - - - - Shared publicly - 7:30 PM Today - -
    - -
    - - - -
    - -
    - -
    - -

    - Far far away, behind the word mountains, far from the - countries Vokalia and Consonantia, there live the blind - texts. Separated they live in Bookmarksgrove right at -

    -

    - the coast of the Semantics, a large language ocean. - A small river named Duden flows by their place and supplies - it with the necessary regelialia. It is a paradisematic - country, in which roasted parts of sentences fly into - your mouth. -

    - -
    - Attachment Image -
    -

    - - Lorem ipsum text generator - -

    -
    - Description about the attachment can be placed here. - Lorem Ipsum is simply dummy text of the printing and typesetting industry... - - more - -
    - -
    - -
    - - - - - - 45 likes - 2 comments - -
    - - - - - -
    - -
    - -
    - - -
    - Custom Shadows Variations - - - Using Bootstrap's Shadow Utility - - -
    -
    -
    - -
    - -
    -
    - User Avatar -
    - -

    - Nadia Carmichael -

    -
    - Lead Developer -
    -
    - -
    - -
    - -
    - -
    - -
    -

    - Alexander Pierce -

    -
    - Founder & CEO -
    -
    -
    - User Avatar -
    - -
    - -
    - -
    - -
    - -
    -

    - Elizabeth Pierce -

    -
    - Web Designer -
    -
    -
    - User Avatar -
    - -
    - -
    - -
    - -
    - -
    - - - - -
    - -{% endblock content %} - -{% block javascripts %} - - - - - - - - -{% endblock javascripts %} diff --git a/tests/test_config.py b/tests/test_config.py new file mode 100644 index 0000000..b635214 --- /dev/null +++ b/tests/test_config.py @@ -0,0 +1,65 @@ +"""Djlint tests specific to pyproject.toml configuration. + +run:: + + pytest tests/test_config.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing + +for a single test, run:: + + pytest tests/test_config.py::test_custom_tags --cov=src/djlint \ + --cov-branch --cov-report xml:coverage.xml --cov-report term-missing + +""" +# pylint: disable=C0116 + +from click.testing import CliRunner + +from src.djlint import main as djlint + + +def test_custom_tags(runner: CliRunner) -> None: + result = runner.invoke(djlint, ["tests/config_custom_tags/html.html", "--check"]) + + assert ( + """-{% example stuff %}

    this is a long paragraph

    {% endexample %} ++{% example stuff %} ++

    ++ this is a long paragraph ++

    ++{% endexample %} +""" + in result.output + ) + assert result.exit_code == 1 + + +def test_extension(runner: CliRunner) -> None: + result = runner.invoke(djlint, ["tests/config_extension", "--check"]) + assert """Checking""" in result.output + assert """1/1""" in result.output + assert """0 files would be updated.""" in result.output + assert result.exit_code == 0 + + +def test_ignores(runner: CliRunner) -> None: + result = runner.invoke(djlint, ["tests/config_ignores"]) + assert """Linted 1 file, found 0 errors.""" in result.output + assert result.exit_code == 0 + + +def test_indent(runner: CliRunner) -> None: + result = runner.invoke(djlint, ["tests/config_indent", "--check"]) + + assert ( + """-

    ++
    ++

    ++

    ++ ++
    ++

    ++
    """ + in result.output + ) + assert result.exit_code == 1 diff --git a/tests/test_django.py b/tests/test_django.py new file mode 100644 index 0000000..5a5e1eb --- /dev/null +++ b/tests/test_django.py @@ -0,0 +1,259 @@ +"""Djlint tests specific to django. + +run:: + + pytest tests/test_django.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing + +for a single test, run:: + + pytest tests/test_django.py::test_single_line_tag --cov=src/djlint \ + --cov-branch --cov-report xml:coverage.xml --cov-report term-missing + +""" +# pylint: disable=C0116 + +from typing import TextIO + +from click.testing import CliRunner + +from .conftest import reformat + + +def test_dj_comments_tag(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, runner, b"{# comment #}\n{% if this %}
    {% endif %}" + ) + assert output["text"] == """{# comment #}\n{% if this %}
    {% endif %}\n""" + # no change was required + assert output["exit_code"] == 0 + + +def test_reformat_asset_tag(runner: CliRunner, tmp_file: TextIO) -> None: + # pylint: disable=C0301 + output = reformat( + tmp_file, + runner, + b"""{% block css %}{% assets "css_error" %}{% endassets %}{% endblock css %}""", + ) # noqa: E501 + assert ( + output["text"] + == """{% block css %} + {% assets "css_error" %} + + {% endassets %} +{% endblock css %} +""" + ) + assert output["exit_code"] == 1 + + +def test_autoescape(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, runner, b"{% autoescape on %}{{ body }}{% endautoescape %}" + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% autoescape on %} + {{ body }} +{% endautoescape %} +""" + ) + + +def test_comment(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, runner, b"""{% comment "Optional note" %}{{ body }}{% endcomment %}""" + ) + assert output["exit_code"] == 0 + # too short to put on multiple lines + assert ( + output["text"] + == r"""{% comment "Optional note" %}{{ body }}{% endcomment %} +""" + ) + + +def test_for_loop(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""
      {% for athlete in athlete_list %}
    • {{ athlete.name }}
    • {% empty %}
    • Sorry, no athletes in this list.
    • {% endfor %}
    """, + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""
      + {% for athlete in athlete_list %} +
    • {{ athlete.name }}
    • + {% empty %} +
    • Sorry, no athletes in this list.
    • + {% endfor %} +
    +""" + ) + + +def test_filter(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% filter force_escape|lower %}This text will be HTML-escaped, and will appear in all lowercase.{% endfilter %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% filter force_escape|lower %} + This text will be HTML-escaped, and will appear in all lowercase. +{% endfilter %} +""" + ) + + +def test_if(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% if athlete_list %}Number of athletes: {{ athlete_list|length }}{% elif athlete_in_locker_room_list %}Athletes should be out of the locker room soon!{% else %}No athletes.{% endif %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% if athlete_list %} + Number of athletes: {{ athlete_list|length }} +{% elif athlete_in_locker_room_list %} + Athletes should be out of the locker room soon! +{% else %} + No athletes. +{% endif %} +""" + ) + + +def test_ifchanged(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% for match in matches %}
    {% ifchanged match.ballot_id %}{% cycle "red" "blue" %}{% else %}gray{% endifchanged %}{{ match }}
    {% endfor %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% for match in matches %} +
    + {% ifchanged match.ballot_id %} + {% cycle "red" "blue" %} + {% else %} + gray + {% endifchanged %} + {{ match }} +
    +{% endfor %} +""" + ) + + +def test_include(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat(tmp_file, runner, b"""{% include "this" %}{% include "that"%}""") + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% include "this" %} +{% include "that" %} +""" + ) + + +def test_spaceless(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% spaceless %}

    Foo

    {% endspaceless %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% spaceless %} +

    + Foo +

    +{% endspaceless %} +""" + ) + + +def test_templatetag(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% templatetag openblock %} url 'entry_list' {% templatetag closeblock %}""", + ) + assert output["exit_code"] == 0 + assert ( + output["text"] + == r"""{% templatetag openblock %} url 'entry_list' {% templatetag closeblock %} +""" + ) + + +def test_verbatim(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, runner, b"""{% verbatim %}Still alive.{% endverbatim %}""" + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% verbatim %} + Still alive. +{% endverbatim %} +""" + ) + + +def test_blocktranslate(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% blocktranslate %}The width is: {{ width }}{% endblocktranslate %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% blocktranslate %} + The width is: {{ width }} +{% endblocktranslate %} +""" + ) + + +def test_with(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% with total=business.employees.count %}{{ total }} employee{{ total|pluralize }}{% endwith %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% with total=business.employees.count %} + {{ total }} employee{{ total|pluralize }} +{% endwith %} +""" + ) + + +def test_single_line_tag(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{% if messages|length %}{% for message in messages %}{{ message }}{% endfor %}{% endif %}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{% if messages|length %} + {% for message in messages %}{{ message }}{% endfor %} +{% endif %} +""" + ) diff --git a/tests/test_djlint.py b/tests/test_djlint.py index 9389fbd..7c70d85 100644 --- a/tests/test_djlint.py +++ b/tests/test_djlint.py @@ -1,5 +1,5 @@ """ -Djlint Tests. +Djlint base tests. run:: @@ -15,24 +15,24 @@ or:: tox """ - +# pylint: disable=C0116 from pathlib import Path +from typing import TextIO + +from click.testing import CliRunner from src.djlint import main as djlint - -def write_to_file(the_file, the_text): - with open(the_file, mode="w+b") as open_file: - open_file.write(the_text) +from .conftest import write_to_file -def test_help(runner): +def test_help(runner: CliRunner) -> None: result = runner.invoke(djlint, ["-h"]) assert result.exit_code == 0 assert "Djlint django template files." in result.output -def test_bad_args(runner): +def test_bad_args(runner: CliRunner) -> None: result = runner.invoke(djlint, ["-a"]) assert result.exit_code == 2 assert "Error: No such option: -a" in result.output @@ -42,363 +42,92 @@ def test_bad_args(runner): assert "Error: No such option: --aasdf" in result.output -def test_nonexisting_file(runner): +def test_nonexisting_file(runner: CliRunner) -> None: result = runner.invoke(djlint, ["not_a_file.html"]) assert result.exit_code == 2 assert "Path 'not_a_file.html' does not exist." in result.output -def test_existing_file(runner): +def test_existing_file(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/bad.html"]) assert result.exit_code == 1 assert str(Path("tests/bad.html")) in result.output -def test_bad_path(runner): +def test_bad_path(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/nowhere"]) assert result.exit_code == 2 assert "does not exist." in result.output -def test_good_path_with_ext(runner): +def test_good_path_with_e(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/", "-e", "html"]) assert result.exit_code == 1 assert str(Path("tests/bad.html")) in result.output + +def test_good_path_with_extension(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/", "--extension", "html*"]) assert result.exit_code == 1 assert str(Path("tests/bad.html")) in result.output assert str(Path("tests/bad.html.dj")) in result.output -def test_good_path_with_bad_ext(runner): +def test_good_path_with_bad_ext(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/", "-e", "html.alphabet"]) assert result.exit_code == 0 assert "No files to check!" in result.output -def test_empty_file(runner, tmp_file): +def test_empty_file(runner: CliRunner, tmp_file: TextIO) -> None: write_to_file(tmp_file.name, b"") result = runner.invoke(djlint, [tmp_file.name]) assert result.exit_code == 0 -def test_E001(runner, tmp_file): - write_to_file(tmp_file.name, b"{{test }}\n{% test%}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "E001 1:" in result.output - assert "E001 2:" in result.output - - write_to_file(tmp_file.name, b"{%- test-%}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "E001 1:" in result.output - - write_to_file(tmp_file.name, b"{%-test -%}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "E001 1:" in result.output - - write_to_file(tmp_file.name, b"{%- test -%}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 0 - - -def test_E002(runner, tmp_file): - write_to_file(tmp_file.name, b"{% extends 'this' %}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "E002 1:" in result.output - - -def test_W003(runner, tmp_file): - write_to_file(tmp_file.name, b"{% endblock %}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W003 1:" in result.output - - -def test_W004(runner, tmp_file): - write_to_file(tmp_file.name, b'') - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W004 1:" in result.output - - -def test_W005(runner, tmp_file): - write_to_file(tmp_file.name, b"\n") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W005 2:" in result.output - - -def test_W006(runner, tmp_file): - write_to_file(tmp_file.name, b"") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W006 1:" in result.output - assert "found 1 error" in result.output - - -def test_W007(runner, tmp_file): - write_to_file(tmp_file.name, b'') - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W007 1:" in result.output - - -def test_W008(runner, tmp_file): - write_to_file(tmp_file.name, b"
    ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W008 1:" in result.output - - -def test_W009(runner, tmp_file): - write_to_file(tmp_file.name, b"

    ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W009 1:" in result.output - - -def test_W010(runner, tmp_file): - write_to_file(tmp_file.name, b'') - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W010 1:" in result.output - - write_to_file(tmp_file.name, b"
  • ID=username
  • ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 0 - - -def test_W011(runner, tmp_file): - write_to_file(tmp_file.name, b"
    ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W011 1:" in result.output - - -def test_W012(runner, tmp_file): - write_to_file(tmp_file.name, b'
    ') - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W012 1:" in result.output - - -def test_W013(runner, tmp_file): - open(tmp_file.name, mode="wb").write( - b"this is a very long line of random long text that is very long and should not be so long, hopefully it thows an error somwhere" - ) - tmp_file.seek(0) - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W013 1:" in result.output - - -def test_W014(runner, tmp_file): - write_to_file(tmp_file.name, b"
    \n\n\n

    ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W014 1:" in result.output - - -def test_W015(runner, tmp_file): - write_to_file(tmp_file.name, b"

    ") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W015 1:" in result.output - - -def test_W016(runner, tmp_file): - write_to_file(tmp_file.name, b"\nstuff\n") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W016 1:" in result.output - - -def test_W017(runner, tmp_file): - write_to_file(tmp_file.name, b"") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W017 1:" in result.output - - -def test_W018(runner, tmp_file): - write_to_file( - tmp_file.name, - b'', - ) - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 1 - assert "W018 1:" in result.output - - -def test_handlebars_else(runner, tmp_file): - write_to_file(tmp_file.name, b"{{^}}") - result = runner.invoke(djlint, [tmp_file.name]) - assert result.exit_code == 0 - assert "Linted 1 file, found 0 errors." in result.output - - -# assert "asdf" in result.output - - -def test_check(runner, tmp_file): +def test_check(runner: CliRunner, tmp_file: TextIO) -> None: write_to_file(tmp_file.name, b"

    ") result = runner.invoke(djlint, [tmp_file.name, "--check"]) assert result.exit_code == 0 - # assert "Linting 1 file!" in result.output - # assert "Linted 1 file, found 0 errors" in result.output -def test_check_non_existing_file(runner, tmp_file): +def test_check_non_existing_file(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/nothing.html", "--check"]) assert result.exit_code == 2 -def test_check_non_existing_folder(runner, tmp_file): +def test_check_non_existing_folder(runner: CliRunner) -> None: result = runner.invoke(djlint, ["tests/nothing", "--check"]) assert result.exit_code == 2 -def test_check_django_ledger(runner, tmp_file): - # source from https://github.com/arrobalytics/django-ledger - runner.invoke(djlint, ["tests/django_ledger", "--check"]) - # assert result.exit_code == 1 - # assert "Linting 120 files!" in result.output - # assert "0 files were updated." in result.output - - -def test_check_reformatter_simple_error(runner, tmp_file): +def test_check_reformatter_simple_error(runner: CliRunner, tmp_file: TextIO) -> None: write_to_file(tmp_file.name, b"

    nice stuff here

    ") result = runner.invoke(djlint, [tmp_file.name, "--check"]) assert result.exit_code == 1 assert "1 file would be updated." in result.output -def test_reformatter_simple_error(runner, tmp_file): +def test_reformatter_simple_error(runner: CliRunner, tmp_file: TextIO) -> None: write_to_file(tmp_file.name, b"

    nice stuff here

    ") result = runner.invoke(djlint, [tmp_file.name, "--reformat"]) assert result.exit_code == 1 assert "1 file was updated." in result.output -def test_check_reformatter_simple_error_quiet(runner, tmp_file): +def test_check_reformatter_simple_error_quiet( + runner: CliRunner, tmp_file: TextIO +) -> None: write_to_file(tmp_file.name, b"

    nice stuff here

    ") result = runner.invoke(djlint, [tmp_file.name, "--check", "--quiet"]) assert result.exit_code == 1 assert "1 file would be updated." in result.output -def test_check_reformatter_no_error(runner, tmp_file): +def test_check_reformatter_no_error(runner: CliRunner, tmp_file: TextIO) -> None: write_to_file( tmp_file.name, b"
    \n

    \n nice stuff here\n

    \n
    " ) result = runner.invoke(djlint, [tmp_file.name, "--check"]) assert result.exit_code == 0 assert "0 files would be updated." in result.output - - -def test_reformat_asset_tag(runner, tmp_file): - write_to_file( - tmp_file.name, - b"""{% block css %}{% assets "css_error" %}{% endassets %}{% endblock css %}""", - ) - result = runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """{% block css %} - {% assets "css_error" %} - - {% endassets %} -{% endblock css %} -""" - ) - assert result.exit_code == 1 - - -def test_textarea_tag(runner, tmp_file): - write_to_file(tmp_file.name, b"""
    """) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """
    - -
    -""" - ) - - -def test_script_tag(runner, tmp_file): - write_to_file( - tmp_file.name, - b"""
    \n \n
    """, - ) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """
    - -
    -""" - ) - - -def test_html_comments_tag(runner, tmp_file): - write_to_file( - tmp_file.name, - b"""
    \n \n\n
    """, - ) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """
    - - -
    -""" - ) - - -def test_dj_comments_tag(runner, tmp_file): - write_to_file( - tmp_file.name, - b"""{# comment #}\n{% if this %}
    {% endif %}""", - ) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """{# comment #}\n{% if this %}
    {% endif %}\n""" - ) - - -def test_template_tags(runner, tmp_file): - # njk tag - write_to_file( - tmp_file.name, - b"""{%- set posts = collections.docs -%}""", - ) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert open(tmp_file.name).read() == """{%- set posts = collections.docs -%}\n""" - - # ensure spaces are added - write_to_file( - tmp_file.name, - b"""{%-set posts = collections.docs-%}\n{%asdf%}""", - ) - runner.invoke(djlint, [tmp_file.name, "--reformat"]) - assert ( - open(tmp_file.name).read() - == """{%- set posts = collections.docs -%}\n{% asdf %}\n""" - ) diff --git a/tests/test_handlebars.py b/tests/test_handlebars.py new file mode 100644 index 0000000..3449188 --- /dev/null +++ b/tests/test_handlebars.py @@ -0,0 +1,56 @@ +"""Djlint tests specific to Handlebars.js. + +run:: + + pytest tests/test_handlebars.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing +""" +# pylint: disable=C0116 + +from typing import TextIO + +from click.testing import CliRunner + +from .conftest import reformat + + +def test_handlebars_else(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat(tmp_file, runner, b"{{^}}") + assert output["exit_code"] == 0 + + +def test_each(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{{#each people}}{{print_person}}

    and more long stuff

    {{/each}}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{{#each people }} + {{ print_person }} +

    + and more long stuff +

    +{{/each }} +""" + ) + + +def test_with(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""{{#with person}}

    {{firstname}} {{lastname}}

    {{/with}}""", + ) + assert output["exit_code"] == 1 + assert ( + output["text"] + == r"""{{#with person }} +

    + {{ firstname }} {{ lastname }} +

    +{{/with }} +""" + ) diff --git a/tests/test_html.py b/tests/test_html.py new file mode 100644 index 0000000..ac97cfe --- /dev/null +++ b/tests/test_html.py @@ -0,0 +1,92 @@ +"""Djlint tests specific to html. + +run:: + + pytest tests/test_html.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing + +""" +# pylint: disable=C0116 +from pathlib import Path +from typing import TextIO + +from click.testing import CliRunner + +from src.djlint import main as djlint + +from .conftest import reformat, write_to_file + + +def test_textarea_tag(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"""
    """) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() + == """
    + +
    +""" + ) + + +def test_script_tag(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file( + tmp_file.name, + b"""
    \n \n
    """, + ) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() + == """
    + +
    +""" + ) + + +def test_html_comments_tag(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file( + tmp_file.name, + b"""
    \n \n\n
    """, + ) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() + == """
    + + +
    +""" + ) + + +def test_long_attributes(runner: CliRunner, tmp_file: TextIO) -> None: + output = reformat( + tmp_file, + runner, + b"""""", + ) + + assert output["exit_code"] == 1 + + assert ( + output["text"] + == """ +""" + ) diff --git a/tests/test_linter.py b/tests/test_linter.py new file mode 100644 index 0000000..948bfdf --- /dev/null +++ b/tests/test_linter.py @@ -0,0 +1,180 @@ +"""Djlint linter rule tests. + +run:: + + pytest tests/test_linter.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing + +""" +# pylint: disable=C0116,C0103 + +from typing import TextIO + +from click.testing import CliRunner + +from src.djlint import main as djlint + +from .conftest import write_to_file + + +def test_E001(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"{{test }}\n{% test%}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "E001 1:" in result.output + assert "E001 2:" in result.output + + write_to_file(tmp_file.name, b"{%- test-%}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "E001 1:" in result.output + + write_to_file(tmp_file.name, b"{%-test -%}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "E001 1:" in result.output + + write_to_file(tmp_file.name, b"{%- test -%}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 0 + + +def test_E002(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"{% extends 'this' %}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "E002 1:" in result.output + + +def test_W003(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"{% endblock %}") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W003 1:" in result.output + + +def test_W004(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b'') + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W004 1:" in result.output + + +def test_W005(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"\n") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W005 2:" in result.output + + +def test_W006(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W006 1:" in result.output + assert "found 1 error" in result.output + + +def test_W007(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b'') + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W007 1:" in result.output + + +def test_W008(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"
    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W008 1:" in result.output + + +def test_W009(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"

    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W009 1:" in result.output + + +def test_W010(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b'') + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W010 1:" in result.output + + write_to_file(tmp_file.name, b"
  • ID=username
  • ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 0 + + +def test_W011(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"
    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W011 1:" in result.output + + +def test_W012(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b'
    ') + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W012 1:" in result.output + + +def test_W013(runner: CliRunner, tmp_file: TextIO) -> None: + # pylint: disable=C0301 + write_to_file( + tmp_file.name, + b"this is a very long line of random long text that is very long and should not be so long, hopefully it thows an error somewhere", + ) # noqa: E501 + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W013 1:" in result.output + + +def test_W014(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"
    \n\n\n

    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W014 1:" in result.output + + +def test_W015(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"

    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W015 1:" in result.output + + +def test_W016(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"\nstuff\n") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W016 1:" in result.output + + +def test_W017(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file(tmp_file.name, b"") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W017 1:" in result.output + + write_to_file(tmp_file.name, b"
    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W017 1:" in result.output + + write_to_file(tmp_file.name, b"
    ") + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W017 1:" in result.output + + +def test_W018(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file( + tmp_file.name, + b'
    ', + ) + result = runner.invoke(djlint, [tmp_file.name]) + assert result.exit_code == 1 + assert "W018 1:" in result.output diff --git a/tests/test_nunjucks.py b/tests/test_nunjucks.py new file mode 100644 index 0000000..fb1bea0 --- /dev/null +++ b/tests/test_nunjucks.py @@ -0,0 +1,39 @@ +"""Djlint tests specific to nunjucks. + +run:: + + pytest tests/test_nunjucks.py --cov=src/djlint --cov-branch \ + --cov-report xml:coverage.xml --cov-report term-missing + +""" +# pylint: disable=C0116 +from pathlib import Path +from typing import TextIO + +from click.testing import CliRunner + +from src.djlint import main as djlint + +from .conftest import write_to_file + + +def test_template_tags(runner: CliRunner, tmp_file: TextIO) -> None: + write_to_file( + tmp_file.name, + b"""{%- set posts = collections.docs -%}""", + ) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() == """{%- set posts = collections.docs -%}\n""" + ) + + # ensure spaces are added + write_to_file( + tmp_file.name, + b"""{%-set posts = collections.docs-%}\n{%asdf%}""", + ) + runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + Path(tmp_file.name).read_text() + == """{%- set posts = collections.docs -%}\n{% asdf %}\n""" + ) diff --git a/tox.ini b/tox.ini index bb3b2e0..e002149 100644 --- a/tox.ini +++ b/tox.ini @@ -47,8 +47,9 @@ commands = ; check-manifest -v skip_install: true -[testenv] -deps = .[test] +[testenv:test] +extras = test commands = pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing skip_install: true +allowlist_externals = pytest