index.tpl
4.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{include file="tpl/header.tpl"}
<div id="wrapper">
{include file="tpl/user_sidebar_wrapper.tpl"}
{include file="tpl/menu_tray.tpl"}
<div id="container2">
<h1 id="container2-header">Slimspots Wiki
<div class="btn-group pull-right" role="group" aria-label="...">
<button id="delete_page" type="button" class="btn btn-danger" onclick="$('#delete_form').toggle(0);"><i class="fa fa-times fa-lg"></i></button>
<button id="add_page" type="button" class="btn btn-success" onclick="$('#add_form').toggle(0);"><i class="fa fa-plus fa-lg"></i></button>
</div>
</h1>
</div>
<div id="add_form" style="display:none; margin-bottom:20px; padding:0px;">
<form action="" method="post">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Create</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-4 control-label">Create a new:</label>
<div class="col-sm-8 margin-bottom-15">
<select id="select_option_add" class="form-control" name="select_option" data-tags="true" data-placeholder="Choose what you want to create">
<option value="page" selected>Page</option>
<option value="section">Section</option>
</select>
</div>
</div>
<div class="methode_remove display-none" id="section">
<div class="form-group">
<label class="col-sm-4 control-label">Page to add the section to:</label>
<div class="col-sm-8 margin-bottom-15">
<select class="form-control" name="page_to_add_section_to" id="page_to_add_section_to">
{foreach from=$db_page_title item=title}
<option value='{$title}'>{$title}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">Title:</label>
<div class="col-sm-8 margin-bottom-15">
<input type="text" class="form-control" name="title" />
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-4">
<button class="btn dark-blue" type="submit" name="create_btn_submit">Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div id="delete_form" style="display:none; margin-bottom:20px; padding:0px;">
<form class="form-horizontal" method="post" action="">
<div class="panel panel-default">
<div class="panel-heading">Remove</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-4 control-label">Remove:</label>
<div class="col-sm-8">
<select id="select_option_remove" class="form-control" name="select_option" data-tags="true" data-placeholder="Choose what you want to remove">
<option></option>
<option value="page">Page</option>
<option value="section">Section</option>
</select>
</div>
</div>
<div class="methode_remove display-none" id="page_remove">
<div class="form-group">
<label class="col-sm-4 control-label">Page to remove:</label>
<div class="col-sm-8">
<select class="form-control" name="page_to_remove" id="page_to_remove">
{foreach from=$db_page_title item=title}
<option value='{$title}'>{$title}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="methode_remove display-none" id="section_remove">
<div class="form-group">
<label class="col-sm-4 control-label">Section to remove:</label>
<div class="col-sm-8">
<select class="form-control" name="section_to_remove" id="section_to_remove">
{foreach from=$page_section item=title}
<option value='{$title}'>{$title}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-4">
<button class="btn dark-blue" type="submit" name="remove_btn_submit">Submit</button>
</div>
</div>
</div>
</div>
</form>
</div>
{if isset($error) }
<div class="alert alert-danger" role="alert">{$error}</div>
{/if}
{include file="tpl/content.tpl"}
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
{include file="tpl/footer.tpl"}