Subversion Repositories regexpline_backup

[/] [stable/] [2.1/] [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
        {if count($content.preset)|gt(0)}
7
            <table class="list">
8
            <tr>
9
                <th>{'Identifier'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
10
                <th>{'Regular expression'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
11
                <th>{'Negated'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
12
            </tr>
13
                {foreach $content.preset as $preset}
14
                <tr>
15
                    <td>{$preset|wash}</td>
16
                    <td>{$presets[$preset]|wash}</td>
17
                    <td>{cond( first_set( $content.negates[$preset|wash], 0 ), 'Yes', 'No' )}</td>
18
                </tr>
19
                {/foreach}
20
            </table>
21
        {else}
22
            <table class="list">
23
            <tr>
24
                <th>{'Regular expression'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
25
                <th>{'Error message'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
26
                <th>{'Negated'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</th>
27
            </tr>
28
                {foreach $content.regexp as $index => $regexp}
29
                <tr>
30
                    <td>{$regexp|wash}</td>
31
                    <td>{first_set( $content.error_messages[$index]|wash, '&nbsp;' )}</td>
32
                    <td>{cond( first_set( $content.negates[$index], 0 ), 'Yes', 'No' )}</td>
33
                </tr>
34
                {/foreach}
35
            </table>
36
        {/if}
37
    </div>    
38
</div>
39
 
40
<div class="block">
41
    <div class="element">
42
        <label>{'Help text'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
43
        <p>{$content.help_text|wash|nl2br}</p>
44
    </div>
45
 
46
    <div class="element">
47
        <label>{'Object name pattern'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
48
        {if $content.naming_pattern|ne('')}
49
            <p>{$content.naming_pattern|wash}</p>
50
        {else}
51
            <p>{'No pattern supplied. Using the complete expression.'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}</p>
52
        {/if}
53
    </div>    
54
</div>
55
 
56
<div class="block">
57
    <label>{'Display type'|i18n( 'extension/regexpline/design/standard/class/datatype/view' )}:</label>
58
    <p>
59
    {switch match=$content.display_type}
60
    {case match="area"}
61
        {'Text area (Text block)'|i18n( 'extension/regexpline/design/standard/class/datatype/edit' )}
62
    {/case}
63
    {case}
64
        {'Single text line'|i18n( 'extension/regexpline/design/standard/class/datatype/edit' )}
65
    {/case}
66
    {/switch}
67
    </p>
68
</div>
69
 
70
{undef $content $presets}