Commit 86c9c4f6821f16a824bba454c44faf95b38ec600

Authored by bshuttle
1 parent 2c4cbe57

remove old file.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5899 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/edit_lookuptrees.smarty deleted
1   -{$context->oPage->requireCSSResource('resources/css/kt-treewidget.css')}
2   -{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')}
3   -{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/Iter.js")}
4   -{$context->oPage->requireJSResource("thirdpartyjs/MochiKit/DOM.js")}
5   -
6   -<h2>{i18n}Edit Lookup Tree{/i18n}: {$field->getName()}</h2>
7   -
8   -<p class="descriptiveText">{i18n}Many "lookup" fields make sense in a hierachy:
9   -countries are part of continents and sub-continents, school classes are part of grades
10   -and programs, Powerbooks are Apple Macs, while Thinkpads are made by Lenovo. This
11   -page will allow you to arrange the lookups in the field in a hierachy. All changes
12   -are immediately stored, so when you are done simply navigate back to the field menu.{/i18n}</p>
13   -
14   -
15   -<form action="{$smarty.server.PHP_SELF}" method="POST">
16   -<fieldset>
17   - <legend>{i18n arg_category="$category_name"}Add New Subcategory to <strong>#category#</strong>{/i18n}</legend>
18   -
19   - <p class="descriptiveText">{i18n}In order to organise the options into a "tree", you
20   - need to add subcategories at each level. The "top" level is called the root, and
21   - holds all the toplevel items. "Root" will not be shown to the final user, but
22   - provides a single "parent" to the toplevel items.{/i18n}</p>
23   -
24   - <p class="descriptiveText">{i18n}As an example, if you are creating a tree of the
25   - countries in the world, the actual countries would be <strong>keywords</strong>
26   - (e.g. South Africa, England, Pakistan, India). The highest group of categories
27   - would be continents &mdash; e.g. Africa, Europe, Asia, The Americas &mdash; followed by
28   - subcategories that contain actual countries &mdash; e.g. Western Europe, Sub-saharan Africa,
29   - Austalasia.{/i18n}</p>
30   -
31   -
32   -
33   - <input type="hidden" name="field_id" value="{$field->getId()}" />
34   - <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" />
35   - <input type="hidden" name="action" value="editTree" />
36   - <input type="hidden" name="subaction" value="addCategory" />
37   - <input type="hidden" name="current_node" value="{$currentNode}" />
38   -
39   -<input type="text" name="category_name"/>
40   -
41   -<div class="form_actions">
42   - <input type="submit" name="submit" value="{i18n}add new subcategory{/i18n}" />
43   -</div>
44   -</fieldset>
45   -</form>
46   -
47   -{if ($currentNode != 0)}
48   -{if (empty($freechildren))}
49   -<p class="descriptiveText">{i18n}Keywords which are directly below the
50   - <strong>Root</strong> are considered "free" &mdash; they are not attached to
51   - a subcategory. Only free keywords can be associated with a subcategory. To
52   - free a keyword, click on the "unlink" command next to it in the preview tree below.
53   - Deleting a subcategory will automatically unlink all keywords below it (including
54   - those in subcategories of the subcategory).
55   - {/i18n}</p>
56   -
57   -<div class="ktInfo"><p>{i18n}No free keywords. Use the "unlink" action on a keyword to
58   -make it available.{/i18n}</p></div>
59   -{else}
60   -<form action="{$smarty.server.PHP_SELF}" method="POST">
61   -<fieldset>
62   - <legend>{i18n arg_category=$category_name}Attach keywords to <strong>#category#</strong>{/i18n}</legend>
63   -
64   - <p class="descriptiveText">{i18n}Keywords which are directly below the
65   - <strong>Root</strong> are considered "free" &mdash; they are not attached to
66   - a subcategory. Only free keywords can be associated with a subcategory. To
67   - free a keyword, click on the "unlink" command next to it in the preview tree below.
68   - {/i18n}</p>
69   -
70   - <input type="hidden" name="field_id" value="{$field->getId()}" />
71   - <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" />
72   - <input type="hidden" name="action" value="editTree" />
73   - <input type="hidden" name="subaction" value="linkKeywords" />
74   - <input type="hidden" name="current_node" value="{$currentNode}" />
75   -
76   -
77   -
78   -<select multiple="1" name="keywordsToAdd[]">
79   - {foreach item=oKeyword from=$freechildren name=kc}
80   - <option value="{$oKeyword->getId()}" {if $smarty.foreach.kc.total == 1} SELECTED="true"{/if}>{$oKeyword->getName()}</option>
81   - {/foreach}
82   -</select>
83   -
84   -<div class="form_actions">
85   - <input type="submit" name="submit" value="{i18n}Add to category{/i18n}" />
86   -</div>
87   -</fieldset>
88   -</form>
89   -{/if}
90   -{/if}
91   -
92   -
93   -<h2>{i18n}Preview{/i18n}</h2>
94   -<div><p class="descriptiveText">
95   - {i18n}Use the +/- arrows to open or close the tree. Bold items are metadata keywords.
96   - To edit a category (including adding or removing keywords) click on the "attach keywords" link next to it.{/i18n}
97   - </p>
98   -</div>
99   -
100   -{$renderedTree}