Subversion Repositories regexpline_backup

[/] [stable/] [2.0/] [design/] [standard/] [templates/] [class/] [datatype/] [view/] [hmregexpline.tpl] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 xrow
{def $content=$class_attribute.content
2
     $presets=ezini( 'GeneralSettings', 'RegularExpressions', 'regexpline.ini' )}
3
 
4
<div class="block">
5
    <div class="element">
6
        <label>{'Regular expression'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
7
        {if count($content.preset)|gt(0)}
8
            <ul>
9
                {foreach $content.preset as $preset}
10
                    <li>{$presets[$preset]|wash}</li>
11
                {/foreach}
12
            </ul>
13
        {else}
14
            <ul>
15
                {foreach $content.regexp as $regexp}
16
                <li>{$regexp|wash}</li>
17
                {/foreach}
18
            </ul>
19
        {/if}
20
    </div>    
21
</div>
22
 
23
<div class="block">
24
    <div class="element">
25
        <label>{'Help text'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
26
        <p>{$content.help_text|wash|nl2br}</p>
27
    </div>
28
 
29
    <div class="element">
30
        <label>{'Object name pattern'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
31
        {if $content.naming_pattern|ne('')}
32
            <p>{$content.naming_pattern|wash}</p>
33
        {else}
34
            <p>{'No pattern supplied. Using the complete expression.'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</p>
35
        {/if}
36
    </div>    
37
</div>
38
 
39
<div class="block">
40
    <label>{'Display type'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
41
    <p>
42
    {switch match=$content.display_type}
43
    {case match="area"}
44
        {'Text area (Text block)'|i18n( 'extension/regexpline/design/standard/class/datatype/edit' )}
45
    {/case}
46
    {case}
47
        {'Single text line'|i18n( 'extension/regexpline/design/standard/class/datatype/edit' )}
48
    {/case}
49
    {/switch}
50
    </p>
51
</div>
52
 
53
{undef $content $presets}