8000 Also allow registration of templates using the #id (preferred over registration by type) · Issue #53 · sweh/ajja · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Also allow registration of templates using the #id (preferred over registration by type) #53
Open
@florianpilz

Description

@florianpilz

Say I have a multiple forms which also require the user to input a credit card. Thus I made a template for credit cards, which consists of 4 Input fields side-by-side (since a credit card has 4 groups with 4 numbers each).

The type of the input field is a string, so the default template is just a single input field. To use my special template for credit cards, I currently have to explicitly declare the usage for every form. But since it is the same concept in all forms, I made sure the field is always named credit_card. Thus in all forms the credit card field has the id field-credit_card.

It would be great if I could register the template in a way, that it is automatically used for every field that is named field-credit_card, no matter which type this field has. (Of course, declaring another template in the form options will override the global registration by field name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0