Initial commit
This commit is contained in:
32
idescriptor/templates/idescriptor/base_generic.html
Normal file
32
idescriptor/templates/idescriptor/base_generic.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% block title %}{% endblock %}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="{% translate 'Describe images' %}">
|
||||
<!-- Add additional CSS in static file -->
|
||||
<link rel="stylesheet" href="{% static 'idescriptor/css/styles.css' %}">
|
||||
<link href="{% static 'fontawesomefree/css/fontawesome.css' %}" rel="stylesheet" type="text/css">
|
||||
<link href="{% static 'fontawesomefree/css/brands.css' %}" rel="stylesheet" type="text/css">
|
||||
<link href="{% static 'fontawesomefree/css/solid.css' %}" rel="stylesheet" type="text/css">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'idescriptor/favicon/apple-touch-icon.png' %}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'idescriptor/favicon/favicon-32x32.png' %}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'idescriptor/favicon/favicon-16x16.png' %}">
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}
|
||||
{% include "idescriptor/header.html" %}
|
||||
{% endblock %}
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-10 content-box">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
12
idescriptor/templates/idescriptor/header.html
Normal file
12
idescriptor/templates/idescriptor/header.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
<div class="header">
|
||||
<nav id="nav" class="nav justify-content-center">
|
||||
<a class="nav-link " href=""><i class="fas fa-search"></i> {% translate 'Suchen' %}</a>
|
||||
<a class="nav-link " href=""><i
|
||||
class="fas fa-feather"></i> {% translate 'Vermittlung hinzufügen' %}</a>
|
||||
<a class="nav-link " href="}"><i class="fas fa-info"></i> {% translate 'Über uns' %}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
16
idescriptor/templates/idescriptor/image-form.html
Normal file
16
idescriptor/templates/idescriptor/image-form.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "idescriptor/base_generic.html" %}
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block title %}<title>{% translate "Organize images for a bot" %}</title>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card">
|
||||
<h1>{{ image.title }}</h1>
|
||||
<img src="{{ image.image.url }}" alt="{{ image.alt_text }}">
|
||||
<div class="container">
|
||||
{% crispy form %}
|
||||
<a class="btn" href="{% url 'index' %}">{% trans 'Continue' %}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
28
idescriptor/templates/idescriptor/index.html
Normal file
28
idescriptor/templates/idescriptor/index.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% extends "idescriptor/base_generic.html" %}
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block title %}<title>{% translate "Organize images for a bot" %}</title>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card">
|
||||
{% if image_to_describe %}
|
||||
<img src="{{ image_to_describe.image.url }}" alt="{{ image_to_describe.alt_text }}">
|
||||
<div class="container-form">
|
||||
{% crispy form %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p>All done</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="card">
|
||||
<h1>{% trans "Controls" %}</h1>
|
||||
<form class="" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="action" value="consume">
|
||||
<button class="btn" type="submit" id="submit">
|
||||
<i class="fa-solid fa-broom"></i> {% translate "Consume" %}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user