#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>