1 | {footer_script} |
---|
2 | {literal} |
---|
3 | $(document).ready(function(){ |
---|
4 | if ($("#ecard_selected_cats").attr('checked') == "checked") { |
---|
5 | $("#ecard_selected_cats_options").css("display","block"); |
---|
6 | } else { |
---|
7 | $("#ecard_selected_cats_options").css("display","none"); |
---|
8 | } |
---|
9 | |
---|
10 | $("#ECardAdminManage").click(function(){ |
---|
11 | if ($("#ecard_selected_cats").attr('checked') == "checked") { |
---|
12 | $("#ecard_selected_cats_options").show("fast"); |
---|
13 | } else { |
---|
14 | $("#ecard_selected_cats_options").hide("fast"); |
---|
15 | } |
---|
16 | }); |
---|
17 | }); |
---|
18 | {/literal} |
---|
19 | {/footer_script} |
---|
20 | |
---|
21 | <div class="titrePage"> |
---|
22 | <h2>{'ecard'|@translate}</h2> |
---|
23 | </div> |
---|
24 | <form method="post" action="" class="properties"> |
---|
25 | <div id="ECardAdminManage"> |
---|
26 | <fieldset> |
---|
27 | <legend>{'ecard_manage'|@translate}</legend> |
---|
28 | <div class="ecard_radio"> |
---|
29 | <input type="radio" name="ecard_authorizations" id="ecard_all_cats" value="all_cats" {$ecard.all_cats_checked} /><label for="ecard_all_cats"> {'ecard_active_all_cats'|@translate}</label> |
---|
30 | </div> |
---|
31 | <div class="ecard_radio"> |
---|
32 | <input type="radio" name="ecard_authorizations" id="ecard_selected_cats" value="selected_cats" {$ecard.selected_cats_checked}><label for="ecard_selected_cats"> {'ecard_active_spec_cats'|@translate}</label> |
---|
33 | <div id="ecard_selected_cats_options"> |
---|
34 | <input type="checkbox" name="ecard_selected_cats_recursive" id="ecard_selected_cats_recursive" value="1" {$ecard.selected_cats_recursive_checked} /><label for="ecard_selected_cats_recursive"> {'ecard_recursive'|@translate}</label><br /> |
---|
35 | <div id="ecard_cat_select"> |
---|
36 | {$DOUBLE_SELECT} |
---|
37 | </div> |
---|
38 | </div> |
---|
39 | </div> |
---|
40 | <div class="ecard_radio"> |
---|
41 | <input type="radio" name="ecard_authorizations" id="ecard_user_cats" value="user_cats" {$ecard.user_cats_checked} /><label for="ecard_user_cats"> {'ecard_active_user_cat'|@translate}</label> |
---|
42 | </div> |
---|
43 | </fieldset> |
---|
44 | <div id="ecard_submit"> |
---|
45 | <input type="submit" name="submit" value="{'Submit'|@translate}" /> |
---|
46 | </div> |
---|
47 | </div> |
---|
48 | </form> |
---|