Menu

[r8]: / py_top_web_client_01 / PSTermDetailsView.tmpl  Maximize  Restore  History

Download this file

184 lines (173 with data), 7.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#defmacro includeFileAtCompileTime: @open(src).read()
<div id="term_details_div">
<h3>Properties</h3>
<div id="error_div2" class="errmsg">$err_msg</div>
<div id="status_div2" class="statmsg">$status_msg</div>
<p>
The Tag '$tname' has the following properties:
</p>
<form>
<table border="0" class="ps_properties">
<tr>
<td>
<label class="right" for="stp_name">Tag's name:</label>
</td>
<td>
<input class="left" type="text" size="50" maxlength="125" onclick="enable_button('stp_button')" name="name" id="stp_name" value="$node_index.get_name()"/>
</td>
</tr>
<tr>
<td>
#if $node_index.is_skip_pattern_activation()
<input class="right" type="checkbox" onclick="enable_button('stp_button')" checked="y" name="isskip" id="stp_isskip"/>
#else
<input class="right" type="checkbox" onclick="enable_button('stp_button')" name="isskip" id="stp_isskip"/>
#end if
</td>
<td>
<label class="left" for="stp_isskip">Do not activate related rules, use as a filter.
Check this option only if the Tag is related to a large number of rules (> 50% of all
rules)</label>
</td>
</tr>
<tr>
<td></td>
<td class="right">
<input type="hidden" name="tname" id="stp_tname" value="$tname"/>
<input id="stp_button" type="button" value="Save Properties" disabled="y" onclick="get_stp()"/>
</td>
</tr>
</table>
</form>
<h3>Usage in Rules</h3>
#if $patterns_index_itor.is_end()
<p>
No rules has this Tag in it's IF criteria.
</p>
#end if
<p>
This Tag is member of the neccessairy and sufficient criteria (IF criteria) of the following rules:
</p>
<table border="0">
<tr>
<td>
<div id="patterns_table_div" class="datatable">
<table>
<thead>
<tr>
<th>Rule Name</th>
<th>Salience</th>
</tr>
</thead>
<tbody>
<tr><td/><td/></tr>
#for $pattern_index in $patterns_index_itor
<tr>
<td>$pattern_index.get_name()</td>
<td>$pattern_index.get_weight()</td>
</tr>
#end for
</tbody>
</table>
</div>
</td>
<td>
<form>
<input type="hidden" name="tname" id="rtfr_tname" value="$tname"/>
<input type="hidden" name="rname" id="rtfr_rname" value=""/>
<input class="dt_button" id="rtfr_button" type="button" value="Remove Tag from Rule" disabled="y" onclick="get_rtfr()"/>
</form>
</td>
</tr>
</table>
<h3>Associated Categories</h3>
#if $node_categories_itor.is_end()
<p>
The Tag as no associated Category, you can add one below.
</p>
#else
<p>
The Tag is associated to the Categories in the following table.
</p>
#end if
<table border="0">
<tr>
<td>
<div id="rctt_table_div" class="datatable">
<table>
<thead>
<tr>
<th>Category Name</th>
</tr>
</thead>
<tbody>
<tr><td/></tr>
#for $category in $node_categories_itor
<tr>
<td>$category.get_name()</td>
</tr>
#end for
</tbody>
</table>
</div>
</td>
<td>
<form>
<input type="hidden" name="tname" id="rctt_tname" value="$tname"/>
<input type="hidden" name="cname" id="rctt_cname" value=""/>
<input class="dt_button" id="rctt_button" type="button" value="Remove Category" disabled="y" onclick="get_rctt()"/>
</form>
</td>
</tr>
</table>
<p>
To add a Category to the current Tag, select a Category from the following table and click 'Add':
</p>
#if $all_categories_itor.is_end()
<p>
No Categories exist yet, you can add one below.
</p>
#end if
<table border="0">
<tr>
<td>
<div id="actt_table_div" class="datatable">
<table>
<thead>
<tr>
<th>Category Name</th>
</tr>
</thead>
<tbody>
<tr><td/></tr>
#for $category in $all_categories_itor
<tr>
<td>$category.get_name()</td>
</tr>
#end for
</tbody>
</table>
</div>
</td>
<td>
<form>
<input type="hidden" name="tname" id="actt_tname" value="$tname"/>
<input type="hidden" name="cname" id="actt_cname" value=""/>
<input class="dt_button" id="actt_button" type="button" value="Add to Tag" disabled="y" onclick="get_actt()"/>
</form>
</td>
</tr>
<tr>
<td colspan="2">
<div class="add_datatable">
<form>
<input type="hidden" name="tname" id="ac_tname" value="$tname"/>
<label class="reqlabel" for="ac_cname">Add Category:</label>
<input class="text_input" type="text" name="cname" id="ac_cname" value=""/>
<input type="button" value="Add" onclick="get_addcat()"/>
</form>
</div>
</td>
</tr>
</table>
</div>