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.
652 lines
36 KiB
652 lines
36 KiB
<div class="modal fade" id="image-workshop" tabindex="-1" role="dialog" aria-labelledby="image-workshop" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="close_workshop()"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
|
|
<div class="validateTips" style=" text-align: center;
|
|
padding: 10px;
|
|
background-color: #f1f1f1;
|
|
margin-top: 10px;
|
|
margin-bottom: 0;">
|
|
Обрежте изображение, если это необходимо.
|
|
</div>
|
|
<div style=" width: 100%;
|
|
background-color: #ffc;
|
|
padding: 10px;
|
|
margin-top: 0px;
|
|
text-align: center;">
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="save_workshop()">Сохранить</button>
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="close_workshop()">Назад</button>
|
|
</div>
|
|
<div class="image_change_workshop">
|
|
<div class="image_change_workshop_place" id="id" style="text-align: center;">
|
|
<img name="image_change_workshop" src="/static/img/ui-anim_basic_16x16.gif">
|
|
</div>
|
|
</div>
|
|
<div style=" width: 100%;
|
|
background-color: #ffc;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
text-align: center;">
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="save_workshop()">Сохранить</button>
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="close_workshop()">Назад</button>
|
|
</div>
|
|
|
|
<p style="text-align: center; padding-top: 10px; display: none;" name='file_load_error'>
|
|
Ошибка загрузки файла
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="img-load" tabindex="-1" role="dialog" aria-labelledby="img-load" aria-hidden="true" style="z-index: 2000;">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="$('#form_image_load_file_input').replaceWith($('#form_image_load_file_input').clone())"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<p style="text-align: center;">
|
|
Вы можете загрузить изображение в формате JPG, GIF или PNG.
|
|
<br> <b style="text-align: center;color: red;">Минимальный размер изображения 256x256</b></p>
|
|
<div class="progress_img_load" style="display: none;">
|
|
<p style="text-align: center;"><img src="/static/img/ui-anim_basic_16x16.gif" style="margin: 20px auto;"></p>
|
|
|
|
</div>
|
|
<div class="form_img_load">
|
|
|
|
<form enctype='multipart/form-data'
|
|
action='/storage/upload_file/'
|
|
method='post'
|
|
name='load_img'
|
|
id="form_image_load_form"
|
|
target='hidden_frame'
|
|
class="load_file" style=" margin-bottom: 20px;">
|
|
<input type='hidden' name='MAX_FILE_SIZE' value='64000'>
|
|
<input id="form_image_load_file_input" name='file' type='file' accept="image/x-png, image/gif, image/jpeg" data-icon="false" data-classbutton="btn btn-default" data-classinput="form-control inline v-middle input-s" tabindex="-1"
|
|
style="outline: 0;background: #ffc; padding: 5px 10px;border-radius: 5px;margin: auto;position: absolute; clip: rect(0px, 0px, 0px, 0px);">
|
|
|
|
<div class="bootstrap-filestyle input-group">
|
|
<span tabindex="0" class="group-span-filestyle input-group-btn" style="text-align: center;">
|
|
<label for="form_image_load_file_input" class="btn btn-default ">
|
|
<span class="glyphicon glyphicon-save-file"></span> Загрузить изображение
|
|
</label>
|
|
</span>
|
|
</div>
|
|
<input type="text" name="clip_file_id" readonly value="0" style="display: none;">
|
|
</form>
|
|
<input name="load_img" id="form_image_load_hidden_input" value="0" readonly style="display: none">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal Смена пароля-->
|
|
<div class="modal fade" id="changePassword" tabindex="-1" role="dialog" aria-labelledby="changePassword" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('change_password_form', 'error_change_password')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1439239821_key.png" alt="">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel">Смена пароля</p>
|
|
<form action="" name="change_password_form" onsubmit="return false;">
|
|
<p class="error" id="error_change_password" style="display: none"></p>
|
|
<input type="password" placeholder="Введите текущий пароль" name="old_password"><br>
|
|
<input type="password" placeholder="Введите новый пароль" name="password1"><br>
|
|
<input type="password" placeholder="Повторите новый пароль" name="password2"><br>
|
|
<button class="btn btn-warning btn-lg" onclick="change_password_func()">Сменить</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Подтверждение действия-->
|
|
<div class="modal fade" id="acceptModal" tabindex="-1" role="dialog" aria-labelledby="acceptModal" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" name="cancel_action_button"
|
|
onclick="$('#acceptModal').modal('hide')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1441241426_sign-warning.png" alt="">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel">Подтверждение действия</p>
|
|
<form action="" name="change_password" onsubmit="return false;">
|
|
<p style="font-size: 15px;">Вы уверены, что хотите <span name="accept_action_message"></span></p>
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="" name="accept_action_button">Подтвердить</button>
|
|
<button type="button" class="btn btn-warning btn-lg" onclick="$('#acceptModal').modal('hide')">Отмена</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Поток не доступен-->
|
|
<div class="modal fade" id="flowAccess" tabindex="-1" role="dialog" aria-labelledby="flowAccess" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #ffe474;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/journal_access.png" alt="" style="max-width: 256px;">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ" style=" padding-bottom: 40px;">
|
|
<p class="modal-title" id="myModalLabel">Материал не доступен</p>
|
|
<p style="margin-top: 30px; font-size: 19px;">Материалы курса будут доступны в день старта вашего потока к 20:00 (по Московскому времени).
|
|
Если у вас возникли вопросы по курсу, напишите нашей службе заботы о клиентах на hello@skillbox.ru</p>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Журнал не доступен-->
|
|
<div class="modal fade" id="journalAccess" tabindex="-1" role="dialog" aria-labelledby="journalAccess" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #ffe474;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/journal_access.png" alt="" style="max-width: 256px;">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ" style=" padding-bottom: 40px;">
|
|
<p class="modal-title" id="myModalLabel">Материал не доступен</p>
|
|
<p style=" margin-top: 30px;
|
|
font-size: 19px;">Материал вам еще не доступен. Выполните все задания до и доступ откроется вам автоматически</p>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Журнал не доступен-->
|
|
<div class="modal fade" id="journalProgressAccess" tabindex="-1" role="dialog" aria-labelledby="journalProgressAccess">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #339933;color:#fff;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/new_material.png" alt="" style="max-width: 256px;">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel" style="color: #fff;">Добавлен новый материал</p>
|
|
<p style=" font-size: 15px;
|
|
padding-top: 0;
|
|
color: #fff;
|
|
text-align: justify;">Материал вам еще недоступен. Для получения доступа, необходимо просмотреть уроки/выполнить задания указанные ниже:</p>
|
|
<ul class="inside_list">
|
|
{% for i in waiting_materials %}
|
|
{% if forloop.first %}
|
|
<a href="/courses/{{ i.type }}/{{ i.obj.id }}"><li class="active" style="">{{ i.obj }}<span style="float: right;font-size: 13px;color:#fff;">Перейти</span></li></a>
|
|
{% else %}
|
|
<li>{{ i.lesson }}</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
<p style=" font-size: 13px;
|
|
color: #f1f1f1;
|
|
padding: 0;
|
|
text-align: right;">*Новый материал необходимо пройти по порядку предоставления</p>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% if waiting_materials %}
|
|
{% if waiting_materials.0.type not in request.path or waiting_materials.0.obj.id not in request.path %}
|
|
<script>
|
|
$('#journalProgressAccess').modal('show');
|
|
</script>
|
|
{% endif %}
|
|
{% endif %}
|
|
<!-- Modal Журнал не доступен-->
|
|
<div class="modal fade" id="BlockMaterial" tabindex="-1" role="dialog" aria-labelledby="BlockMaterial">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #333;color:#fff;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/denied.png" alt="" style="max-width: 256px;">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel" style="color: #fff;">Доcтуп заблокирован</p>
|
|
<p style="color: #ccc;">Данный материал находится в обработке. Если в течении 48 часов у вас не появился доступ к материалам, обратитесь на почту info@bedev.ru</p>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Modal Настройки-->
|
|
<div class="modal fade" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="settingsModal" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('user_settings', 'error_user_settings')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<div class="panel-heading no-border wrapper-md" style="text-align: right;margin-top: 30px;">
|
|
<button class="btn btn-sm btn-icon btn-rounded btn-info m-l" style="margin-left: 0;position: relative;"
|
|
onclick="load_image('user_settings_avatar', 'big')" ><i class="fa fa-camera"></i></button>
|
|
|
|
<button class="btn btn-sm btn-icon btn-rounded btn-danger m-l" style="display: none;position: relative;margin-left:0;"
|
|
onclick="remove_image(this, 'user_settings_avatar', '/static/img/a8.jpg');$('[name=avatar_code]').val('')"
|
|
name="user_settings_avatar_remove">
|
|
<i class="glyphicon glyphicon-trash"></i>
|
|
</button>
|
|
</div>
|
|
<div class="text-center clearfix " style="border-radius: 0 0 5px 5px;padding-bottom: 10px;margin-top: -40px;">
|
|
<img src="" alt="..." class="img-circle" name="user_settings_avatar" style="max-width: 180px;">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel">Настройки пользователя</p>
|
|
<form action="" name="user_settings" onsubmit="return false;">
|
|
<p class="error" id="error_user_settings" style="display: none"></p>
|
|
<input readonly style="display: none;" name="avatar_code">
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Фамилия</p>
|
|
<input class="padd_bottom" type="text" placeholder="Фамилия" name="user_settings_fname"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Имя</p>
|
|
<input class="padd_bottom" type="text" placeholder="Имя" name="user_settings_name"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Отчество</p>
|
|
<input class="padd_bottom" type="text" placeholder="Отчество" name="user_settings_oname"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Телефон</p>
|
|
<input class="padd_bottom" type="text" placeholder="Телефон" name="user_settings_phone"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Email</p>
|
|
<input class="padd_bottom" type="email" placeholder="E-mail" name="user_settings_email"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Город</p>
|
|
<input class="padd_bottom" type="text" placeholder="Город" name="user_settings_city"><br>
|
|
<p style="padding-bottom: 0;text-align: left;font-size: 15px;margin-bottom: 5px;padding-left: 5px;padding-top: 0;">Дата рождения</p>
|
|
<div class="input-group date">
|
|
<input type="text" class="form-control" placeholder="Дата рождения" name="user_settings_bday" ><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
|
|
</div><br>
|
|
<button class="btn btn-warning btn-lg" onclick="change_settings()">Сохранить</button>
|
|
</form>
|
|
<a href="#" data-toggle="modal" data-target="#changePassword" data-dismiss="modal" aria-label="Close" class="wht js-open-modal">Сменить пароль</a>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal подписки-->
|
|
<div class="modal fade" id="subscriptionModal" tabindex="-1" role="dialog" aria-labelledby="subscriptionModal" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('subscription_form', 'error_subscription')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1439433911_new_seo2-28.png" alt="">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel">Ваши подписки</p>
|
|
<form name="subscription_form" onsubmit="return false;">
|
|
<p class="error" id="error_subscription" style="display: none"></p>
|
|
<div class="input_field">
|
|
<p style="text-align: left; border-bottom: 1px dotted #ccc;">
|
|
<b>Новости:</b>
|
|
<input type="checkbox" name="subscription_news" style="float: right; height: 20px; width: 20px;">
|
|
</p>
|
|
<p style="text-align: left; border-bottom: 1px dotted #ccc;">
|
|
<b>Новые курсы:</b>
|
|
<input type="checkbox" name="subscription_courses" style="float: right; height: 20px; width: 20px;">
|
|
</p>
|
|
<p style="text-align: left; border-bottom: 1px dotted #ccc;">
|
|
<b>Комментарии преподавателей:</b>
|
|
<input type="checkbox" name="subscription_teacher" style="float: right; height: 20px; width: 20px;">
|
|
</p>
|
|
<p style="text-align: left; border-bottom: 1px dotted #ccc;">
|
|
<b>Ответы на ваши комментарии:</b>
|
|
<input type="checkbox" name="subscription_new_comments" style="float: right; height: 20px; width: 20px;">
|
|
</p>
|
|
<p style="text-align: left; border-bottom: 1px dotted #ccc;">
|
|
<b>Отправлять СМС:</b>
|
|
<input type="checkbox" name="subscription_send_sms" style="float: right; height: 20px; width: 20px;">
|
|
</p>
|
|
</div>
|
|
<button class="btn btn-warning btn-lg" onclick="change_subscription()">Сохранить</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal fade" id="needByNoneClose" tabindex="-1" role="dialog" aria-labelledby="needByNoneClose" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
</div>
|
|
<div>
|
|
<div class="col-md-5 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1442791218_certificate.png" alt="" name="needByNoneCloseImage" style="width: 100%; height: auto;">
|
|
</div>
|
|
<div class="col-md-7 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel">Получения полного доступа к курсу</p>
|
|
<p class="error" style="background: #ffc;border-radius: 5px;">Проверка домашних заданий, общение с преподавателем онлайн и полный доступ ко всем урокам курса<br>
|
|
<b> — доступны в полной версии курса.</b></p>
|
|
<p style="text-align: center;color:#ccc;">в полной версии курса «<span name="needByNoneCloseCourseName"></span>»</p>
|
|
<div class="col-lg-12" style=" padding-bottom: 20px;">
|
|
<div class="col-lg-3 col-md-6 col-sm-6 col-xs-6" style="border-right: 1px solid #ccc;text-align: center;padding: 0;
|
|
">
|
|
<h2 style="font-weight: bold;" name="needByNoneCloseBasicLessonsLength">16</h2>
|
|
<small>основных модулей</small>
|
|
</div>
|
|
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-6" style="border-right: 1px solid #ccc;text-align: center;padding: 0;
|
|
">
|
|
<h2 style="font-weight: bold;" name="needByNoneCloseAdditionLessonsLength">16</h2>
|
|
<small>
|
|
дополнительных модулей
|
|
</small>
|
|
</div>
|
|
<ul class="col-lg-5 check_list">
|
|
<li style=" padding-top: 10px; clear: both;"><i class="glyphicon glyphicon-ok-sign" style="color: green;"></i> проверка домашних заданий</li>
|
|
<li><i class="glyphicon glyphicon-ok-sign" style="color: green;"></i> стажировка</li>
|
|
<li><i class="glyphicon glyphicon-ok-sign" style="color: green;"></i> трудоустройство</li>
|
|
<li><i class="glyphicon glyphicon-ok-sign" style="color: green;"></i> общение с преподавателем</li>
|
|
<li><i class="glyphicon glyphicon-ok-sign" style="color: green;"></i> работа над реальными проектами</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="col-lg-5" style="text-align: center;
|
|
font-size: 17px;
|
|
padding-left: 0;">
|
|
<b>стоимость курса:</b><br>
|
|
<p style=" color: #999;
|
|
font-size: 16px;">от <span name="needByNoneCloseMinPrice">6 777</span> руб. в месяц</p>
|
|
</div>
|
|
<div class="col-lg-7" style=" padding: 0;">
|
|
<button type="button" class="btn btn-success btn-lg" name="by_course_from_modal_button" onclick="" style="margin: 0;">Оставить заявку на курс</button><br>
|
|
<p style=" text-align: center;padding-bottom: 0;
|
|
font-size: 12px;
|
|
color: #999;">
|
|
Заявка на курс вас ни к чему не обязывает.
|
|
После регистрации с вами свяжется менеджер,
|
|
чтобы рассказать детали курса.
|
|
</p>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% if request.user.is_admin and request.user.is_staff %}
|
|
<div class="modal fade" id="super_myModal1" tabindex="-1" role="dialog" aria-labelledby="super_myModal1" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: green;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('auth_form')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-5 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1455736671_eye.png" alt="">
|
|
</div>
|
|
<div class="col-md-7 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel" style="color: #fff;">Супер авторизация</p>
|
|
<form action="" name="super_auth_form" onsubmit="return false;">
|
|
<p class="error" id="error_super_auth" style="background: #ffc;border-radius: 5px;display: none;"></p>
|
|
<input class="padd_bottom" type="text" placeholder="E-mail авторизуемого" name="email"><br>
|
|
<input type="password" placeholder="Введите свой админский пароль" name="password" style="margin-bottom: 5px;"><br>
|
|
<input type="password" style="display: none;" readonly placeholder="Введите свой админский токен" value="{{ request.user.token }}" name="token"><br>
|
|
<button class="btn btn-warning btn-lg" onclick="super_auth_go(false);">Войти</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="delete_comment_modal" tabindex="-1" role="dialog" aria-labelledby="delete_comment_modal" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: green;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('delete_comment')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-5 col-sm-5 col-xs-12 center_img">
|
|
<img src="/static/img/1455736671_eye.png" alt="">
|
|
</div>
|
|
<div class="col-md-7 col-sm-7 col-xs-12">
|
|
<div class="activ">
|
|
<p class="modal-title" id="myModalLabel" style="color: #fff;">Супер авторизация</p>
|
|
<form action="" name="delete_comment" onsubmit="return false;">
|
|
<p class="error" id="error_delete_comment" style="background: #ffc;border-radius: 5px;display: none;"></p>
|
|
<textarea>
|
|
|
|
</textarea>
|
|
<button class="btn btn-warning btn-lg" onclick="super_auth_go(false);">Войти</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<!---->
|
|
{% if request.user.is_authenticated and request.user.email == '!!wies@1312s.ru' %}
|
|
<div class="modal fade" id="newYear" tabindex="-1" role="dialog" aria-labelledby="newYear" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #00bdff;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img style="max-width: 180px;" src="/static/img/magazine.png" alt="">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ" style="color: #fff;">
|
|
|
|
<span style="font-size: 120px;">Пошел нахуй!</span>
|
|
|
|
<button class="btn btn-warning btn-lg" style="margin-bottom: 0;">Поити</button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Modal Смена пароля-->
|
|
<div class="modal fade" id="FreeWeekDone" tabindex="-1" role="dialog" aria-labelledby="FreeWeekDone" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #009e72;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('change_password_form', 'error_change_password')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<img src="/static/img/green-Kolya.png" alt="" style="float: left;">
|
|
<div class="activ" style="float: left;">
|
|
<p class="modal-title" id="myModalLabel">Смена пароля</p>
|
|
<form action="" name="change_password_form" onsubmit="return false;">
|
|
<p class="error" id="error_change_password" style="display: none"></p>
|
|
<input type="password" placeholder="Введите текущий пароль" name="old_password"><br>
|
|
<input type="password" placeholder="Введите новый пароль" name="password1"><br>
|
|
<input type="password" placeholder="Повторите новый пароль" name="password2"><br>
|
|
<button class="btn btn-warning btn-lg" onclick="change_password_func()">Приобрести полный курс</button>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Смена пароля-->
|
|
<div class="modal fade" id="FreeWeekFail" tabindex="-1" role="dialog" aria-labelledby="FreeWeekFail" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #345374;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('change_password_form', 'error_change_password')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<img src="/static/img/blue-Kolya.png" alt="" style="float: left;">
|
|
<div class="activ" style="float: left;">
|
|
<p class="modal-title" id="myModalLabel">Смена пароля</p>
|
|
<form action="" name="change_password_form" onsubmit="return false;">
|
|
<p class="error" id="error_change_password" style="display: none"></p>
|
|
<input type="password" placeholder="Введите текущий пароль" name="old_password"><br>
|
|
<input type="password" placeholder="Введите новый пароль" name="password1"><br>
|
|
<input type="password" placeholder="Повторите новый пароль" name="password2"><br>
|
|
<button class="btn btn-warning btn-lg" onclick="change_password_func()">Приобрести полный курс</button>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal Смена пароля-->
|
|
<div class="modal fade" id="WeekReport" tabindex="-1" role="dialog" aria-labelledby="WeekReport" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="clear_form('change_password_form', 'error_change_password')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<p class="modal-title" id="myModalLabel">Смена пароля</p>
|
|
<form action="" name="change_password_form" onsubmit="return false;">
|
|
<p class="error" id="error_change_password" style="display: none"></p>
|
|
<input type="password" placeholder="Введите текущий пароль" name="old_password"><br>
|
|
<input type="password" placeholder="Введите новый пароль" name="password1"><br>
|
|
<input type="password" placeholder="Повторите новый пароль" name="password2"><br>
|
|
<button class="btn btn-warning btn-lg" onclick="change_password_func()">Приобрести полный курс</button>
|
|
</form>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modal Окно пользователя в НГ
|
|
<div class="modal fade" id="newYear" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content" style="background: #00bdff;">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="$.ajax({type: 'GET',url: '/management/hide_modal/?name=new_year'});$('#newYear').modal('hide')"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div>
|
|
<div class="col-md-4 col-sm-5 col-xs-12 center_img">
|
|
<img style="max-width: 180px;" src="/static/img/magazine.png" alt="">
|
|
</div>
|
|
<div class="col-md-8 col-sm-7 col-xs-12">
|
|
<div class="activ" style="color: #fff;">
|
|
<span style="font-size: 30px;">Привет,</span><br><br>
|
|
|
|
Приближаются майские праздники и у преподавателей тоже будут каникулы.<br>
|
|
Расписание проверки работ:<br>
|
|
с 1 по 3 - каникулы<br>
|
|
с 4 по 6 в штатном режиме<br>
|
|
с 7 по 9 - каникулы<br><br>
|
|
|
|
При большом количестве работ выполненных за выходные дни возможна небольшая задержка в проверке работ 4 мая.<br>
|
|
Надеемся на ваше понимание.<br><br>
|
|
|
|
Хороших выходных!
|
|
|
|
|
|
<button class="btn btn-warning btn-lg" style="margin-bottom: 0;" onclick="$.ajax({type: 'GET',url: '/management/hide_modal/?name=new_year'});$('#newYear').modal('hide')">Приятного обучения</button>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-->
|
|
|
|
|