text.tpl 636 B

12345678910
  1. {if $enableLabel}
  2. <label for="{$formName}_{$name}" class="col-sm-3 control-label">{$MGLANG->T('label')}</label>
  3. {/if}
  4. <div class="col-sm-{$colWidth}">
  5. <input name="{$nameAttr}" type="text" value="{$value}" class="form-control" {if $addIDs}id="{$addIDs}_{$name}"{/if} placeholder="{if $enablePlaceholder}{$MGLANG->T('placeholder')}{/if}" {foreach from=$dataAttr key=dataKey item=dataValue}data-{$dataKey}="{$dataValue}"{/foreach}>
  6. {if $enableDescription}
  7. <span class="help-block">{$MGLANG->T('description')}</span>
  8. {/if}
  9. <span class="help-block error-block"{if !$error}style="display:none;"{/if}>{$error}</span>
  10. </div>