]> git.mxchange.org Git - friendica.git/blob - view/templates/admin_site.tpl
fix preloading
[friendica.git] / view / templates / admin_site.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6 <script>
7         $(function(){
8                 
9                 $("#cnftheme").click(function(){
10                         $.colorbox({
11                                 width: 800,
12                                 height: '90%',
13                                 /*onOpen: function(){
14                                         var theme = $("#id_theme :selected").val();
15                                         $("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
16                                 },*/
17                                 href: "{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val(),
18                                 onComplete: function(){
19                                         $("div#fancybox-content form").submit(function(e){
20                                                 var url = $(this).attr('action');
21                                                 // can't get .serialize() to work...
22                                                 var data={};
23                                                 $(this).find("input").each(function(){
24                                                         data[$(this).attr('name')] = $(this).val();
25                                                 });
26                                                 $(this).find("select").each(function(){
27                                                         data[$(this).attr('name')] = $(this).children(":selected").val();
28                                                 });
29                                                 console.log(":)", url, data);
30                                         
31                                                 $.post(url, data, function(data) {
32                                                         if(timer) clearTimeout(timer);
33                                                         NavUpdate();
34                                                         $.colorbox.close();
35                                                 })
36                                         
37                                                 return false;
38                                         });
39                                 
40                                 }
41                         });
42                         return false;
43                 });
44         });
45 </script>
46 <div id='adminpage'>
47         <h1>{{$title}} - {{$page}}</h1>
48         
49         <form action="{{$baseurl}}/admin/site" method="post">
50     <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
51
52         {{include file="field_input.tpl" field=$sitename}}
53         {{include file="field_textarea.tpl" field=$banner}}
54         {{include file="field_select.tpl" field=$language}}
55         {{include file="field_select.tpl" field=$theme}}
56         {{include file="field_select.tpl" field=$theme_mobile}}
57         {{include file="field_select.tpl" field=$ssl_policy}}
58         {{include file="field_checkbox.tpl" field=$new_share}}
59         {{include file="field_checkbox.tpl" field=$hide_help}}
60         {{include file="field_select.tpl" field=$singleuser}}
61
62         
63         <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
64         
65         <h3>{{$registration}}</h3>
66         {{include file="field_input.tpl" field=$register_text}}
67         {{include file="field_select.tpl" field=$register_policy}}
68         {{include file="field_input.tpl" field=$daily_registrations}}
69         {{include file="field_checkbox.tpl" field=$no_multi_reg}}
70         {{include file="field_checkbox.tpl" field=$no_openid}}
71         {{include file="field_checkbox.tpl" field=$no_regfullname}}
72         
73         <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
74
75         <h3>{{$upload}}</h3>
76         {{include file="field_input.tpl" field=$maximagesize}}
77         {{include file="field_input.tpl" field=$maximagelength}}
78         {{include file="field_input.tpl" field=$jpegimagequality}}
79         
80         <h3>{{$corporate}}</h3>
81         {{include file="field_input.tpl" field=$allowed_sites}}
82         {{include file="field_input.tpl" field=$allowed_email}}
83         {{include file="field_checkbox.tpl" field=$block_public}}
84         {{include file="field_checkbox.tpl" field=$force_publish}}
85         {{include file="field_checkbox.tpl" field=$no_community_page}}
86         {{include file="field_checkbox.tpl" field=$ostatus_disabled}}
87         {{include file="field_select.tpl" field=$ostatus_poll_interval}}
88         {{include file="field_checkbox.tpl" field=$diaspora_enabled}}
89         {{include file="field_checkbox.tpl" field=$dfrn_only}}
90         {{include file="field_input.tpl" field=$global_directory}}
91         {{include file="field_checkbox.tpl" field=$thread_allow}}
92         {{include file="field_checkbox.tpl" field=$newuser_private}}
93         {{include file="field_checkbox.tpl" field=$enotify_no_content}}
94         {{include file="field_checkbox.tpl" field=$private_addons}}     
95         {{include file="field_checkbox.tpl" field=$disable_embedded}}
96         <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
97         
98         <h3>{{$advanced}}</h3>
99         {{include file="field_checkbox.tpl" field=$no_utf}}
100         {{include file="field_checkbox.tpl" field=$verifyssl}}
101         {{include file="field_input.tpl" field=$proxy}}
102         {{include file="field_input.tpl" field=$proxyuser}}
103         {{include file="field_input.tpl" field=$timeout}}
104         {{include file="field_input.tpl" field=$delivery_interval}}
105         {{include file="field_input.tpl" field=$poll_interval}}
106         {{include file="field_input.tpl" field=$maxloadavg}}
107         {{include file="field_input.tpl" field=$abandon_days}}
108         {{include file="field_input.tpl" field=$lockpath}}
109         {{include file="field_input.tpl" field=$temppath}}
110         {{include file="field_input.tpl" field=$basepath}}
111
112         <h3>{{$performance}}</h3>
113         {{include file="field_checkbox.tpl" field=$use_fulltext_engine}}
114         {{include file="field_input.tpl" field=$itemcache}}
115         {{include file="field_input.tpl" field=$itemcache_duration}}
116
117         
118         <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
119         
120         </form>
121 </div>