-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.html
216 lines (167 loc) · 10.3 KB
/
edit.html
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<title>Admin Area | Dashboard</title>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400,800">
<link rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/styles.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!--navbar-expand-md to make it appear wheneve it cross the medium breakpoint-->
<nav class="navbar navbar-dark fixed-top py-0 navbar-expand-md position-relative" style="background-color:brown;">
<div class="container"><!--to push every thing in the middle-->
<!--navbar-brand to be headline in the navbar-->
<div class="navbar-brand font-weight-bold text-white mr-3">Admin Strap</div>
<!--navbar-nav to slide down like a menu bar, collapse to disapear, navbar-collapse to disappear when cross the breakpoint-->
<ul class="mr-auto navbar-nav collapse navbar-collapse" id="navbardropdownmenucontent">
<li ><a href="index.html" class="nav-link text-light px-2" style="font-size: 14px;">Dashboard</a></li>
<li class="bg-secondary"><a href="#" class="nav-link text-light px-2" style="font-size: 14px;"> Pages</a></li>
<li ><a href="posts.html" class="nav-link text-light px-2" style="font-size: 14px;"> Posts</a></li>
<li ><a href="users.html" class="nav-link text-light px-2" style="font-size: 14px;"> Users</a></li>
</ul>
<ul class="nav navbar-right"> <!--nav is style for the whole navbar, nav-link style for word and nav-item style for item box-->
<li class="nav-item"><div class="text-light px-3" style="font-size: 14px;">Welcome, Tarek</div></li>
<li class="nav-item"><a href="login.html" class="text-light pl-3 pr-0 align-top" style="font-size: 14px;">Log Out</a></li>
</ul>
<!--position of the button according to its position in the html file-->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbardropdownmenucontent">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
<!--header-->
<div class="bg-dark position-relative" style="height: 80px;">
<div class="container">
<h1 class="d-inline text-white"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Pages</h1>
<p class="d-inline text-capitalize text-secondary" style="font-size:x-large;">manage site pages</p>
<div class="d-inline float-right mt-3">
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown">Create Content </button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a href="#" class="dropdown-item">Add Post</a>
<a href="#" class="dropdown-item">Add User</a>
<a class="dropdown-item" data-toggle="modal" data-target="#addPage">Add Page</a>
</div>
</div>
</div>
</div>
<!--breadcrumb-->
<div class="container">
<div class="breadcrumb my-3 py-1 text-secondary">
<li class="active">Dashboard <Small class="text-muted">Pages</Small></li>
</div>
</div>
<!--MAIN-->
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-12">
<div class="card">
<div class="card-header" style="background-color:brown;">
<h5 class="text-white">Dashboard</h3>
</div>
<div class="list-group list-unstyled p-2">
<a href="pages.html" class="list-group-item"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> Pages <span class="badge badge-primary">12</span></a>
<a href="posts.html" class="list-group-item"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Posts <span class="badge badge-primary">33</span></a>
<a href="users.html" class="list-group-item"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> Users <span class="badge badge-primary">203</span></a>
</div>
</div>
<div class="card mt-4 p-3 border border-danger">
<h5>Disk Space Used</h5>
<div class="progress mb-4">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
60%
</div>
</div>
<h5>Bandwidth Used </h5>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%;">
40%
</div>
</div>
</div>
</div>
<div class="col-md-9 col-sm-12 border border-secondary p-0 mb-5">
<div class="panel-heading mb-3 p-2" style="background-color:brown;">
<p class="pl-3 text-white font-weight-bold"> Edit Page</p>
</div>
<div class="container">
<form class="form-group">
<label > Page Title</label>
<input type="text" value="About" class="form-control">
</form>
<div class="form-group">
<label>Page Body</label>
<textarea name="editor1" class="form-control" placeholder="Page Body"></textarea>
</div>
<div class="checkbox">
<label>
<input type="checkbox" checked> Published
</label>
</div>
<div class="form-group">
<label>Meta Tags</label>
<input type="text" class="form-control" placeholder="Add Some Tags..." value="tag1, tag2">
</div>
<div class="form-group">
<label>Meta Description</label>
<input type="text" class="form-control" placeholder="Add Meta Description..." value=" Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et ">
</div>
<input type="submit" class="btn btn-default btn-primary mb-5" value="Submit">
</div>
</div>
</div>
</div>
<!--Footer-->
<footer class="text-light bg-dark py-3 font-weight-bold" style="text-align: center;">
<p>Copyright Tarek, © 2020</p>
</footer>
<!-- Modals -->
<!-- Add Page -->
<div class="modal fade" id="addPage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<form>
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Add Page</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<div class="form-group">
<label>Page Title</label>
<input type="text" class="form-control" placeholder="Page Title">
</div>
<div class="form-group">
<label>Page Body</label>
<textarea name="editor1" class="form-control" placeholder="Page Body"></textarea>
</div>
<div class="checkbox">
<label><input type="checkbox"> Published</label>
</div>
<div class="form-group">
<label>Meta Tags</label>
<input type="text" class="form-control" placeholder="Add Some Tags...">
</div>
<div class="form-group">
<label>Meta Description</label>
<input type="text" class="form-control" placeholder="Add Meta Description...">
</div>
</div>
<div class="modal-footer"> <!--data-dismiss to tell him which item will be closed-->
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
<script>
CKEDITOR.replace( 'editor1' );
</script>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>