diff --git a/templates/components/date_input.html b/templates/components/date_input.html deleted file mode 100644 index fcf73739..00000000 --- a/templates/components/date_input.html +++ /dev/null @@ -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 %} diff --git a/templates/fragments/edit_user_form.html b/templates/fragments/edit_user_form.html index b04b1077..56f61b80 100644 --- a/templates/fragments/edit_user_form.html +++ b/templates/fragments/edit_user_form.html @@ -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 %}