Fixed W12
This commit is contained in:
parent
ee0715c3b2
commit
8680f03b91
19 changed files with 444 additions and 253 deletions
|
|
@ -1,26 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<b>{{user.login}}</b> осматривает картинку... <a href="/">На главную</a>
|
||||
<hr>
|
||||
<img src="/images?type=full&filename={{image.filename}}" alt="{{image.filename}}" style="max-width: 100%">
|
||||
<hr>
|
||||
<a href="/images?type=thumb&filename={{image.filename}}">Миниатюра</a>
|
||||
<hr>
|
||||
<form action="/image/{{image.id}}" method="post">
|
||||
<input type="text" name="description" value="{{image.description}}">
|
||||
<br>
|
||||
Опубликовано?
|
||||
<input type="checkbox" name="published" value="1" {{image.published ? 'checked' : ''}}>
|
||||
<br>
|
||||
<input type="submit" value="Сохранить">
|
||||
</form>
|
||||
<a href="/image/{{image.id}}/delete">Удалить</a>
|
||||
</body>
|
||||
</html>
|
||||
{% extends "template.twig" %}
|
||||
|
||||
{% block title %}Просмотр изображения{% endblock %}
|
||||
{% block head %}
|
||||
{{ parent() }}
|
||||
<style type="text/css">
|
||||
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<b>{{user.login}}</b> осматривает картинку... <a href="/">На главную</a>
|
||||
<hr>
|
||||
<img src="/images?type=full&filename={{image.filename}}" alt="{{image.filename}}" style="max-width: 100%">
|
||||
<hr>
|
||||
<a href="/images?type=thumb&filename={{image.filename}}">Миниатюра</a>
|
||||
<hr>
|
||||
<form action="/image/{{image.id}}" method="post">
|
||||
<input type="text" name="description" value="{{image.description}}">
|
||||
<br>
|
||||
Опубликовано?
|
||||
<input type="checkbox" name="published" value="1" {{image.published ? 'checked' : ''}}>
|
||||
<br>
|
||||
<input type="submit" value="Сохранить">
|
||||
</form>
|
||||
<a href="/image/{{image.id}}/delete">Удалить</a>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue