Ignore:
Timestamp:
Mar 19, 2010, 1:50:19 PM (14 years ago)
Author:
plg
Message:

feature 724: FCBKcomplete propagated to element_set_global and
element_set_unit to manage tags.

Note: multiple instances of FCBKcomplete on the same page does not work as
good as a single instance.

Location:
trunk/admin/themes/default/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/element_set_global.tpl

    r5123 r5188  
    55<script type="text/javascript">
    66  pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set");
     7</script>
     8{/literal}
     9
     10{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
     11{literal}
     12<script type="text/javascript">
     13  $(document).ready(function() {
     14    $("#tags").fcbkcomplete({
     15      json_url: "admin.php?fckb_tags=1",
     16      cache: false,
     17      filter_case: true,
     18      filter_hide: true,
     19      firstselected: true,
     20      filter_selected: true,
     21      maxitems: 10,
     22      newel: true
     23    });
     24  });
    725</script>
    826{/literal}
     
    109127      <tr>
    110128        <td>{'add tags'|@translate}</td>
    111         <td>{if !empty($ADD_TAG_SELECTION)}{$ADD_TAG_SELECTION}{else}<p>{'No tag defined. Use Administration>Pictures>Tags'|@translate}</p>{/if}</td>
     129        <td>
     130<select id="tags" name="add_tags">
     131{foreach from=$tags item=tag}
     132  <option value="{$tag.value}" class="selected">{$tag.caption}</option>
     133{/foreach}
     134</select>
     135        </td>
    112136      </tr>
    113137
  • trunk/admin/themes/default/template/element_set_unit.tpl

    r5123 r5188  
    22{include file='include/autosize.inc.tpl'}
    33{include file='include/datepicker.inc.tpl'}
     4
     5{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
     6{literal}
     7<script type="text/javascript">
     8  $(document).ready(function() {
     9    $(".tags").fcbkcomplete({
     10      json_url: "admin.php?fckb_tags=1",
     11      cache: false,
     12      filter_case: true,
     13      filter_hide: true,
     14      firstselected: true,
     15      filter_selected: true,
     16      maxitems: 10,
     17      newel: true
     18    });
     19  });
     20</script>
     21{/literal}
     22
    423
    524<h2>{'Batch management'|@translate}</h2>
     
    7695    <tr>
    7796      <td><strong>{'Tags'|@translate}</strong></td>
    78       <td>{$element.TAG_SELECTION}</td>
     97      <td>
     98
     99<select class="tags" name="tags-{$element.ID}">
     100{foreach from=$element.TAGS item=tag}
     101  <option value="{$tag.value}" class="selected">{$tag.caption}</option>
     102{/foreach}
     103</select>
     104
     105      </td>
    79106    </tr>
    80107
Note: See TracChangeset for help on using the changeset viewer.