This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro CustomInput(label) %} | |
<div class="form-group"> | |
<label class="abc-c-form__label" for="">{{ label }}</label> | |
<input class="abc-c-form__controller form-control" type="input"> | |
</div> | |
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro CustomInput(label, additional_classes) %} | |
<div class="form-group"> | |
<label class="abc-c-form__label" for="">{{ label }}</label> | |
<input class="abc-c-form__controller form-control {{ additional_classes|join(" ") }}" type="input"> | |
</div> | |
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro CustomInput(label, additional_classes, attrs) %} | |
<div class="form-group"> | |
{% set attributes = '' %} | |
{% for key, attr in attrs %} | |
{% set attributes = attributes ~ key ~ '=' ~ attr ~ ' ' %} | |
{% endfor %} | |
<label class="abc-c-form__label" for="">{{ label }}</label> | |
<input class="abc-c-form__controller form-control {{ additional_classes|join(" ") }}" type="input" {{attributes}} > | |
</div> | |
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ CustomInput("Custom Label") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ CustomInput("Custom Label", ["datepicker", "d-block"]) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set attrs = | |
{ | |
"placeholder" : "Custom Input Goes Here", | |
"id" : "12", | |
"style" : "padding-top:10px;" | |
} | |
%} | |
{{ CustomInput("Custom Label", ["datepicker", "d-block"], attrs) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment