Перенесено из репозитария SpecialistOff.NET
This commit is contained in:
26
myapp/templates/edit.html
Normal file
26
myapp/templates/edit.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block body %}
|
||||
|
||||
<script type="text/javascript" src="/static/ckeditor/ckeditor.js"></script>
|
||||
|
||||
<form method="post" action="/edit">
|
||||
|
||||
<div class="form-group">
|
||||
{{ pagedata['form'].title.label }}
|
||||
{{ pagedata['form'].title(class="form-control") }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ pagedata['form'].text.label }}
|
||||
{{ pagedata['form'].text(class="form-control") }}
|
||||
<script>
|
||||
CKEDITOR.replace( 'text', {
|
||||
customConfig: '/static/js/ckeditor-conf.js'
|
||||
} );
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-outline-success float-right"><i class="fa fa-save-o"></i> Сохранить</button>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
12
myapp/templates/header.html
Normal file
12
myapp/templates/header.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Ремизов Александр" />
|
||||
<meta name="copyright" lang="ru" content="RemiZOffAlex" />
|
||||
<link rel="shortcut icon" href="/static/favicon.ico">
|
||||
<link rel="stylesheet" href="/static/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="/static/css/font-awesome.css" />
|
||||
<script type="text/javascript" src="/static/js/jquery-3.2.1.js"></script>
|
||||
<script type="text/javascript" src="/static/js/popper.js"></script>
|
||||
<script type="text/javascript" src="/static/js/bootstrap.js"></script>
|
||||
<title>{{ pagedata['title'] }}</title>
|
||||
</head>
|
||||
12
myapp/templates/index.html
Normal file
12
myapp/templates/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block body %}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h3>{{ pagedata['info'] }}</h3>
|
||||
<hr />
|
||||
<p>Самурай без меча подобен самураю с мечом, но только без меча, однако как-будто с мечом, которого у него нет, но и без него он как с ним...</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
31
myapp/templates/login.html
Normal file
31
myapp/templates/login.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block body %}
|
||||
|
||||
<div class="col-md-6 ml-auto mr-auto">
|
||||
<div class="card">
|
||||
<div class="card-header">Логин</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form class="form-horizontal" action="/login" method="post" autocomplete="on">
|
||||
|
||||
<div style="margin-bottom: 25px" class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-user"></i></span>
|
||||
</div>
|
||||
{{ pagedata['form'].username(class="form-control", placeholder="Логин") }}
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 25px" class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-lock"></i></span>
|
||||
</div>
|
||||
{{ pagedata['form'].password(class="form-control", placeholder="Пароль") }}
|
||||
</div>
|
||||
<input class="btn btn-success float-right" type="submit" value="Вход" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
8
myapp/templates/page.html
Normal file
8
myapp/templates/page.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block body %}
|
||||
|
||||
<h3>{{ pagedata['title'] }}</h3>
|
||||
|
||||
{{ pagedata['text']|safe }}
|
||||
|
||||
{% endblock %}
|
||||
14
myapp/templates/skeleton.html
Normal file
14
myapp/templates/skeleton.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
{% include 'header.html' %}
|
||||
<body>
|
||||
|
||||
{% include 'topbar.html' %}
|
||||
|
||||
<div class="container">
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
5
myapp/templates/topbar.html
Normal file
5
myapp/templates/topbar.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="container-fluid py-2">
|
||||
<a class="btn btn-outline-success float-right" href="/login"><i class="fa fa-sign-in"></i></a>
|
||||
<a class="btn btn-outline-secondary" href="/"><i class="fa fa-home"></i></a>
|
||||
<a class="btn btn-outline-secondary" href="/edit"><i class="fa fa-edit"></i></a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user