{#
/**
 * Preparse Field plugin for Craft CMS 3.x
 *
 *  Field Input
 *
 * @author    Steadfast Design Firm
 * @copyright Copyright (c) Steadfast Design Firm
 * @link      https://www.steadfastdesignfirm.com/
 * @package   PreparseField
 * @since     1.0.0
 */
#}

{% import "_includes/forms" as forms %}

{% set displayType = displayType ?? 'hidden' %}

{% if displayType == 'hidden' %}
    <style>
        #{{ namespacedId }}-field {
            display: none;
        }
    </style>
{% else %}
    {# Setup our field #}
    {% if displayType == 'date' %}
        {{ forms.date({
            value: value,
            disabled: true
        }) }}
        {{ forms.time({
            value: value,
            disabled: true
        }) }}
    {% elseif displayType == 'textarea' %}
        {{ forms.textarea( {
            value: value,
            disabled: not field['allowSelect'],
            readonly: field['allowSelect'],
            rows: field['textareaRows']
        }) }}
    {% else %}
        {{ forms.text({
            value: value,
            disabled: not field['allowSelect'],
            readonly: field['allowSelect']
        }) }}
    {% endif %}
{% endif %}

{#
/**
 * Preparse Field plugin for Craft CMS 3.x
 *
 *  Field Input
 *
 * @author    Steadfast Design Firm
 * @copyright Copyright (c) Steadfast Design Firm
 * @link      https://www.steadfastdesignfirm.com/
 * @package   PreparseField
 * @since     1.0.0
 */
#}

{% import "_includes/forms" as forms %}

{% set displayType = displayType ?? 'hidden' %}

{% if displayType == 'hidden' %}
    <style>
        #{{ namespacedId }}-field {
            display: none;
        }
    </style>
{% else %}
    {# Setup our field #}
    {% if displayType == 'date' %}
        {{ forms.dateTimeField({
            value: value,
            disabled: true,
        }) }}
        <style>
            #{{ namespacedId }}-field .clear-btn {
                display: none;
            }
        </style>
    {% elseif displayType == 'textarea' %}
        {{ forms.textarea({
            value: value,
            disabled: not field['allowSelect'],
            readonly: field['allowSelect'],
            rows: field['textareaRows']
        }) }}
    {% else %}
        {{ forms.text({
            value: value,
            disabled: not field['allowSelect'],
            readonly: field['allowSelect']
        }) }}
    {% endif %}
{% endif %}

Update input template to improve field layout
Update input template to improve field layout
