You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
1.4 KiB

{% extends "templates/lilcity/edit_index.html" %}
{% load static %}
{% block title %}
{% if object %}
Редактирование {% if live == 'true' %}стрима{% else %}курса{% endif %} {{ object.title }}
{% else %}
Создание {% if live == 'true' %}стрима{% else %}курса{% endif %}
{% endif %}
{% endblock title%}
{% block header_buttons %}
{% if live == 'true' %}
<button id="course-redactor__publish-button" class="header__btn btn" disabled>Сохранить</button>
{% else %}
<button id="course-redactor__publish-button" class="header__btn btn" disabled>На модерацию</button>
{% endif %}
{% endblock header_buttons %}
{% block content %}
<course-redactor name="course-redactor" :live="{{ live }}" :camp="{{ is_camp|default:'false' }}"
author-picture="{% if request.user.photo %}{{ request.user.photo.url }}{% else %}{% static 'img/user_default.jpg' %}{% endif %}"
author-name="{{ request.user.first_name }} {{ request.user.last_name }}"
access-token="{{ request.user.auth_token }}"
{% if object and object.id %}:course-id="{{ object.id }}"{% endif %}></course-redactor>
{% endblock content %}
{% block pre_app_js %}
<script type="text/javascript" src="{% static 'courseEdit.js' %}"></script>
<link rel="stylesheet" href="{% static 'courseEdit.css' %}" />
{% endblock pre_app_js %}