FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BlogEngineWithDevLess/templates/admin.html at master · johnotu/BlogEngineWithDevLess · GitHub
johnotu
/
BlogEngineWithDevLess
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BlogEngineWithDevLess
/
templates
/
admin.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (58 loc) · 1.62 KB
Breadcrumbs
BlogEngineWithDevLess
/
templates
/
admin.html
Copy path
File metadata and controls
62 lines (58 loc) · 1.62 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
{% extends "base.html" %}
{% block head %}Admin{% endblock %}
{% block title %}
<
h1
>
Admin Panel
</
h1
>
<
hr
class
="
small
"
>
{% endblock %}
{% block content %}
{% if posts %}
<
h2
>
Published blog posts
</
h2
>
<
br
>
<
div
class
="
table-responsive
"
>
<
table
class
="
table table-condensed table-bordered
"
>
<
thead
class
="
active
"
>
<
tr
>
<
th
>
Title
</
th
>
<
th
>
Published
</
th
>
<
th
>
</
th
>
<
th
>
</
th
>
</
tr
>
</
thead
>
<
tbody
>
{% for post in posts %}
<
tr
>
<
td
>
{{ post.title }}
</
td
>
<
td
>
{{ post.pubdate }}
</
td
>
<
td
>
<
a
href
="
{{ url_for('show_update_post', id=post.id) }}
"
>
<
span
class
="
glyphicon glyphicon-edit
"
>
</
span
>
</
a
>
</
td
>
<
td
>
<
a
href
="
{{ url_for('delete', id=post.id`) }}
"
>
<
span
class
="
glyphicon glyphicon-trash
"
>
</
span
>
</
a
>
</
td
>
</
tr
>
{% endfor %}
</
tbody
>
</
table
>
</
div
>
{% else %}
<
h3
>
No blog posts are available yet
</
h3
>
{% endif %}
<
hr
>
<
h2
>
Add new blog post
</
h2
>
<
br
>
<
form
action
="
{{ url_for('add_post') }}
"
method
=
post
>
<
div
class
="
form-group
"
>
<
label
for
="
title
"
>
Title:
</
label
>
<
input
type
="
text
"
class
="
form-control
"
name
="
title
"
>
</
div
>
<
div
class
="
form-group
"
>
<
label
for
="
sub-title
"
>
Sub Title:
</
label
>
<
input
type
="
text
"
class
="
form-control
"
name
="
subtitle
"
>
</
div
>
<
div
class
="
form-group
"
>
<
label
for
="
author
"
>
Author:
</
label
>
<
input
type
="
text
"
class
="
form-control
"
name
="
author
"
>
</
div
>
<
div
class
="
form-group
"
>
<
label
for
="
text
"
>
Text:
</
label
>
<
textarea
rows
="
30
"
class
="
form-control
"
name
="
text
"
>
</
textarea
>
</
div
>
<
button
type
="
submit
"
class
="
btn btn-primary
"
>
Add Post
</
button
>
</
form
>
{% endblock %}
Back
|
FazBrowse Home
|
New Git URL