Subversion Repositories regexpline_backup

[/] [stable/] [2.3/] [design/] [standard/] [templates/] [content/] [datatype/] [collect/] [hmregexpline.tpl] - Rev 3

Compare with Previous | Blame | View Log

{default $size=70
         $cols=80
         $rows=10}

{def $data_text=cond( is_set( $#collection_attributes[$attribute.id] ),
                      $#collection_attributes[$attribute.id].data_text,
                      $attribute.content )
     $class_content=$attribute.class_content}

{switch match=$class_content.display_type}
{case match="area"}
    <textarea cols="{$cols|wash}" rows="{$rows|wash}" name="ContentObjectAttribute_hmregexpline_data_text_{$attribute.id}">{$data_text|wash}</textarea>
{/case}
{case}
    <input type="text" size="{$size|wash}" name="ContentObjectAttribute_hmregexpline_data_text_{$attribute.id}" value="{$data_text|wash}" />
{/case}
{/switch}

{undef $data_text}

{/default}

Compare with Previous | Blame | View Log