0e957dd41a
This patch adds Angular Schema Form[1] and its requirements to Horizon. There are a number of advantages to this over the current methods of defining forms and workflows: - All fields have an individual template, making theming improvements, bug fixes, and bootstrap conformity easier. - The file and line count, especially for workflows, is dramatically reduced. The Create Net workflow, for example, goes from 12+ files to 2, with a big reduction in boilerplate HTML. - All field validation messages are standardised, so we can match them across Horizon and plugins What this patch contains: - Many common form fields, including things like the themable checkboxes and selects. - A basic modal template that can be passed with ui-bootstraps $modal service to take advantage of schema-form Next steps: - Remove the other modal templates so we can standardise. A single template opened from the $modal service is fine, and we shouldn't need several directives. In this case, we should deprecate them, as the modal forms will be used elsewhere. - Map commonly used form items, like transfer tables, to a schema form type like array (they serve similar purposes, so maybe thats what should be replaced) - Use themable selects instead of regular ones 1. http://schemaform.io/ Co-Authored-By: Tyr Johanson <tyr@hpe.com> Implements: blueprint angular-schema-form Change-Id: Ib22b2d0db2c4d4775fdef62a180cc994e8ae6280 |
||
---|---|---|
.. | ||
api | ||
conf | ||
contrib | ||
dashboards | ||
django_pyscss_fix | ||
enabled | ||
local | ||
locale | ||
management | ||
static | ||
templates | ||
templatetags | ||
test | ||
themes | ||
usage | ||
utils | ||
wsgi | ||
__init__.py | ||
.eslintrc | ||
context_processors.py | ||
exceptions.py | ||
hooks.py | ||
karma.conf.js | ||
policy.py | ||
settings.py | ||
static_settings.py | ||
theme_settings.py | ||
urls.py | ||
views.py |