Skip to main content

Generic METAL macros for input fields

Project description

Generic METAL macros for input fields

This package uses the TAL / METAL XML-based template language introduced by Zope to provide simple input fields from Python dictionaries, without any connection to schema data whatsoever.

The fields (or, more precisely: field sets) are created with classes for the Bootstrap grid layout system.

Features

Examples

This add-on is currently under development and not yet used on public internet sites.

Documentation

After installing, you may try the view

in your Zope instance; the macros are “self-documenting”.

Note: Currently it helps to understand German; this view is not (yet?) internationalized.

The macros, however, are language-agnostic; the don’t provide any texts by themselves but use what you throw at them.

Installation

If you use the macros in your own Plone add-on, add it to the dependencies, e.g. in the setup.py file:

setup(...,
    install_requires=[
        ...,
        'visaplan.zope.inputmacros',
        ],
    ...)

Or install visaplan.zope.inputmacros by adding it to your buildout:

[buildout]
...
eggs =
    visaplan.zope.inputmacros

and then running bin/buildout

Requirements

  • You’ll need a language interpreter as well; this will be given in default Zope / Plone installations. We don’t specify this here to allow you to choose your own.

    Starting with Plone 5, Chameleon with the z3c.pt compatiblily layer is used; this should work as well.

  • To make use of the classes applied to the HTML elements, you’ll need Bootstrap 3; you may use

    Bootstrap 4 might work as well, but we didn’t try (yet).

  • The use of Bootstrap 3 implies the need for jQuery 1.11.2; with Plone 4, you’d probably use plone.app.jquery 1.11.2+.

Contribute

Support

If you are having issues, please let us know; please use the issue tracker mentioned above.

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.3.0 (unreleased)

  • Bootstrap 3 version [tobiasherp]

1.0.0 (unreleased)

  • Bootstrap 2 version

    When developed in the first place (and not yet released as a distributable package), the macros had been used with Bootstrap 2. Thus, it would be possible to create a Bootstrap-2-based release; but it is not very likely this to be done.

    [tobiasherp]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visaplan.zope.inputmacros-1.3.0.dev2.tar.gz (26.1 kB view details)

Uploaded Source

File details

Details for the file visaplan.zope.inputmacros-1.3.0.dev2.tar.gz.

File metadata

  • Download URL: visaplan.zope.inputmacros-1.3.0.dev2.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.5

File hashes

Hashes for visaplan.zope.inputmacros-1.3.0.dev2.tar.gz
Algorithm Hash digest
SHA256 52381c7c1d3e60a3ef94b06ac1fdc502949f2d66c8526e160eb7fbfd1774b89d
MD5 a9e89a9307b464b76121e605d19cb35e
BLAKE2b-256 1d1bd9f3c01025031ef4314ea032f39cb71f74e849563dc04ce97853c7089ead

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page