#set( $labelValue = $i18n.getText($parameters.label) )
#if( !$labelValue )
    #set( $labelValue = $parameters.label )
#end

#if (!$parameters.id)
    #set( $parameters.id = $parameters.name)
#end

<div>
<label id="${parameters.id}-label" for="$parameters.id">
${labelValue}:
</label>
#if ($editMode == false)
    <span class="field-value">$!webwork.htmlEncode($parameters.nameValue)</span>
#else
    <input type="password" name="$!webwork.htmlEncode($parameters.name)" id="$!webwork.htmlEncode($parameters.id)" ##
    #if ($parameters.size)size="$!webwork.htmlEncode($parameters.size)"#end ##
    #if ($parameters.maxlength)maxlength="$!webwork.htmlEncode($parameters.maxlength)"#end ##
    #if ($parameters.nameValue)value="$!webwork.htmlEncode($parameters.nameValue)"#end ##
    #if ($parameters.disabled && $parameters.disabled == true) disabled="disabled#end ##
    #if ($parameters.readonly)readonly="readonly"#end ##
    #if ($parameters.tabindex)tabindex="$!webwork.htmlEncode($parameters.tabindex)"#end ##
    class="password #if ($parameters.cssClass) $!webwork.htmlEncode($parameters.cssClass)#end" ##
    #if ($parameters.cssStyle)style="$!webwork.htmlEncode($parameters.cssStyle)"#end
    #if ($parameters.autocomplete)autocomplete="$!webwork.htmlEncode($parameters.autocomplete)"#end ##
    />
    #fielderror ($parameters.name)
#end
#if ($parameters.description)
    <span class="description">$parameters.description</span>
#end
</div>
