commit | author | age
|
825dd6
|
1 |
<div class='page-header'> |
MC |
2 |
<h1><tmpl_var name="list_head_txt"></h1> |
|
3 |
</div> |
ef55b5
|
4 |
<p><tmpl_var name="list_desc_txt"></p> |
F |
5 |
|
825dd6
|
6 |
|
MC |
7 |
|
|
8 |
<div class="form-group"> |
|
9 |
<label for="name" class="col-sm-3 control-label">{tmpl_var name='name_txt'}</label> |
dec3e3
|
10 |
<div class="col-sm-9"><input type="text" name="name" id="name" value="{tmpl_var name='name'}" class="form-control" /></div></div> |
825dd6
|
11 |
<div class="form-group"> |
MC |
12 |
<label for="type" class="col-sm-3 control-label">{tmpl_var name='type_txt'}</label> |
|
13 |
<div class="col-sm-9"><select name="type" id="type" class="form-control"> |
ef55b5
|
14 |
{tmpl_var name='type'} |
e645fa
|
15 |
</select></div> |
MC |
16 |
</div> |
825dd6
|
17 |
<div class="form-group"> |
MC |
18 |
<label for="snippet" class="col-sm-3 control-label">{tmpl_var name='snippet_txt'}</label> |
72f804
|
19 |
<div class="col-sm-9"><textarea class="form-control" name="snippet" id="snippet" rows='10' cols='50'>{tmpl_var name='snippet'}</textarea></div><span class="nginx"> {tmpl_var name='variables_txt'}: </span><a href="javascript:void(0);" class="addPlaceholder nginx">{DOCROOT}</a><span class="nginx">, </span><a href="javascript:void(0);" class="addPlaceholder nginx">{FASTCGIPASS}</a> |
ef55b5
|
20 |
</div> |
b41803
|
21 |
<div class="form-group php"> |
MC |
22 |
<label class="col-sm-3 control-label">{tmpl_var name='required_php_snippets_txt'}</label> |
|
23 |
<div class="col-sm-9"> |
|
24 |
{tmpl_var name='required_php_snippets'} |
|
25 |
</div> |
|
26 |
</div> |
825dd6
|
27 |
<div class="form-group"> |
MC |
28 |
<label class="col-sm-3 control-label">{tmpl_var name='customer_viewable_txt'}</label> |
|
29 |
<div class="col-sm-9"> |
1fa8f4
|
30 |
{tmpl_var name='customer_viewable'} |
FT |
31 |
</div> |
|
32 |
</div> |
825dd6
|
33 |
<div class="form-group"> |
MC |
34 |
<label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label> |
|
35 |
<div class="col-sm-9"> |
ef55b5
|
36 |
{tmpl_var name='active'} |
F |
37 |
</div> |
|
38 |
</div> |
825dd6
|
39 |
|
ef55b5
|
40 |
|
F |
41 |
<input type="hidden" name="id" value="{tmpl_var name='id'}"> |
|
42 |
|
825dd6
|
43 |
<div class="clear"><div class="right"> |
2d0eba
|
44 |
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="admin/directive_snippets_edit.php">{tmpl_var name='btn_save_txt'}</button> |
ba7316
|
45 |
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="admin/directive_snippets_list.php">{tmpl_var name='btn_cancel_txt'}</button> |
825dd6
|
46 |
</div></div> |
c02d3f
|
47 |
<script language="JavaScript" type="text/javascript"> |
FT |
48 |
|
|
49 |
if(jQuery('#type').val() == 'nginx'){ |
|
50 |
jQuery('.nginx:hidden').show(); |
|
51 |
} else { |
|
52 |
jQuery('.nginx:visible').hide(); |
|
53 |
} |
1fa8f4
|
54 |
|
FT |
55 |
if (jQuery('#type').val() != 'nginx' && jQuery('#type').val() != 'apache') { |
|
56 |
jQuery('#customer_viewable').closest('div.ctrlHolder:visible').hide(); |
b41803
|
57 |
jQuery('.php:visible').hide(); |
MC |
58 |
} else { |
1fa8f4
|
59 |
jQuery('#customer_viewable').closest('div.ctrlHolder:hidden').show(); |
b41803
|
60 |
jQuery('.php:hidden').show(); |
1fa8f4
|
61 |
} |
c02d3f
|
62 |
|
FT |
63 |
jQuery('#type').change(function(){ |
1fa8f4
|
64 |
if (jQuery(this).val() != 'nginx' && jQuery(this).val() != 'apache') { |
FT |
65 |
jQuery('#customer_viewable').closest('div.ctrlHolder:visible').hide(); |
b41803
|
66 |
jQuery('.php:visible').hide(); |
1fa8f4
|
67 |
} else { |
FT |
68 |
jQuery('#customer_viewable').closest('div.ctrlHolder:hidden').show(); |
b41803
|
69 |
jQuery('.php:hidden').show(); |
1fa8f4
|
70 |
} |
c02d3f
|
71 |
if(jQuery(this).val() == 'nginx'){ |
FT |
72 |
jQuery('.nginx:hidden').show(); |
|
73 |
} else { |
|
74 |
jQuery('.nginx:visible').hide(); |
|
75 |
} |
|
76 |
}); |
|
77 |
|
|
78 |
</script> |