{% extends "preview_api/base.html" %}
{% load static %}

{% block headmain %}EKB{% endblock %}

{% block style%}
<link rel="stylesheet" href="{% static 'loginedtest/style.css' %}">
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}





{% block history_dropdown %}
    {% if random_history %}
        {% for ran in random_history %}
            <a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
        {% endfor %}
    {% else %}
        <a href="">ошибка....</a>
    {% endif %}
{% endblock %}


{% block places_dropdown %}
    {% if random_places %}
        {% for ran in random_places %}
            <a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
        {% endfor %}
    {% else %}
        <a href="">ошибка....</a>
    {% endif %}
{% endblock %}


{% block celebrity_dropdown %}
    {% if random_celebrity %}
        {% for ran in random_celebrity %}
            <a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
        {% endfor %}
    {% else %}
        <a href="">ошибка....</a>
    {% endif %}
{% endblock %}


{% block theaters_and_music_dropdown %}
    {% if random_theaters_and_music %}
        {% for ran in random_theaters_and_music %}
            <a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
        {% endfor %}
    {% else %}
        <a href="">ошибка....</a>
    {% endif %}
{% endblock %}





{% block maincontent %}

<div class="n_bar">

    <a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word; padding-top: 10px;" class="button2">{{title}}</a>

</div>

<div class="in_content" style="padding-top: 25px;">
    <label style="font-size: 40px; width: 40px;">{{namee}}<hr style="max-width: 400px; margin-left:0;"></label>





    <label style="font-size: 30px; margin-top: 20px;">{{title}}<hr style="max-width: 90px; margin-left:0;"></label>

<label style="font-size: 20px; ">{{desc}}</label>
<br>

<!-- <img src="{% static 'places/img/p1.jpg' %}" class="img_content"> -->
{% if img_preview %}
    <img src="{% static img_preview %}" class="img_content">
{% endif %}
<button class="more_butt">Подробнее</button>



                    <br>
                    <br>
                    <form method="post" action="{% url 'blog_preview2' %}">
                        {% csrf_token %}
                        <textarea style="display: none;" name="papka">{{papka}}</textarea>
                        <textarea style="display: none;" name="title">{{title}}</textarea>
                        <textarea style="display: none;" name="authtor">{{authtor}}</textarea>
                        <textarea style="display: none;" name="testthing">{{testthing}}</textarea>
                        <textarea style="display: none;" name="desc">{{desc}}</textarea>
                        <textarea style="display: none;" name="img_preview">{{img_preview}}</textarea>
                        <button style="width: 200px;height: 40px; border: none; ">Далее</button>
                    </form>
                    <br>
                    <br>


{% endblock %}


{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}