<?php

namespace GriffinForms\Admin\Html\Elements\Submission;

class InputPassword extends Format
{
    protected $input_class = '';

    public function getHtml()
    {
        echo '<div class="' . esc_attr(trim($this->input_class . ' w-100 d-flex flex-column gap-1 griffinforms-submission-password')) . '">';
        echo '<div class="input-group griffinforms-password-group w-100">';
        echo '<input type="password" class="form-control griffinforms-password-mask rounded-0 bg-light p-2" value="******" readonly aria-label="' . esc_attr__('Encrypted password', 'griffinforms-form-builder') . '">';
        echo '</div>';
        echo '<div class="text-secondary small mt-1">' . esc_html__('Password values are hidden in submission view for security.', 'griffinforms-form-builder') . '</div>';
        echo '</div>';
    }
}
