DateInput component is no longer being used
This commit is contained in:
parent
aac02e8889
commit
49cd3830f6
@ -1,10 +0,0 @@
|
||||
{% from "components/text_input.html" import TextInput %}
|
||||
|
||||
{% macro DateInput(field, tooltip='', placeholder='', validation='anything', paragraph=False) -%}
|
||||
{% if field.data %}
|
||||
{% set input_value=field.data.strftime("%m/%d/%Y") %}
|
||||
{% else %}
|
||||
{% set input_value=None %}
|
||||
{% endif %}
|
||||
{{ TextInput(field, initial_value=input_value, tooltip=tooltip, placeholder=placeholder, validation=validation, paragraph=paragraph) }}
|
||||
{% endmacro %}
|
@ -1,6 +1,5 @@
|
||||
{% from "components/text_input.html" import TextInput %}
|
||||
{% from "components/options_input.html" import OptionsInput %}
|
||||
{% from "components/date_input.html" import DateInput %}
|
||||
{% from "components/phone_input.html" import PhoneInput %}
|
||||
{% from "components/date_picker.html" import DatePicker %}
|
||||
{% from 'components/save_button.html' import SaveButton %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user