<span tal:define="name name|field.name;
                  css_class css_class|field.widget.css_class;
                  oid oid|field.oid;
                  mask mask|field.widget.mask;
                  mask_placeholder mask_placeholder|field.widget.mask_placeholder;
                  style style|field.widget.style;
                  use_buefy use_buefy|0;"
      tal:omit-tag="">

  <input tal:condition="not use_buefy"
         type="password" 
         name="${name}" 
         value="${field.widget.redisplay and cstruct or ''}"
         tal:attributes="style style;
                         class string: form-control ${css_class or ''};
                         attributes|field.widget.attributes|{};"
         id="${oid}" />

  <div tal:condition="use_buefy"
       tal:define="vmodel vmodel|'field_model_' + name;"
       tal:omit-tag="">
    <b-input name="${name}"
             v-model="${vmodel}"
             type="password">
    </b-input>
  </div>
</span>
