'Custom widget for label input, providing a clear-button
(for ease of use on mobile devices where no ESC exists)
@param field: the Field
@param value: the current value
@param attributes: HTML attributes
NB: expects Foundation theme'

@staticmethod
def label_input(field, value, **attributes):

    from gluon.sqlhtml import StringWidget
    default = {'value': (((value is not None) and str(value)) or '')}
    attr = StringWidget._attributes(field, default, **attributes)
    placeholder = current.T('Enter    or    scan    ID')
    attr['_placeholder'] = placeholder
    postfix = ICON('fa    fa-close')
    widget = DIV(DIV(INPUT(**attr), _class='small-11    columns'), DIV(SPAN(postfix, _class='postfix    clear-btn'), _class='small-1    columns'), _class='row    collapse')
    return widget
