Skip to content
Snippets Groups Projects
Commit e525fb7f authored by PavelBegunkov's avatar PavelBegunkov
Browse files

Merge branch 'master' into refactoring_js

parents c09ae944 52c2b12e
Branches
Tags
No related merge requests found
......@@ -26,6 +26,10 @@ class Controller_Handler_ErrMessages extends Controller_Handler {
$title = $_POST['title'];
$text = $_POST['text'];
$to = "it.lab.mmcs@gmail.com";
//$headers = "From: it.lab.mmcs@gmail.com";
mail($to, $title, $text);// $headers);
$data = $this->model->newRequest($this->user['AccID'], $title, $text);
$this->response->body(json_encode($data[0]));
}
......
......@@ -2,8 +2,8 @@
{% block title %}Дисциплины{% endblock %} {# head -> title #}
{% block media %} {# head -> css, js #}
{{ HTML.style('media/css/courses_teacher.css')|raw }}
{{ HTML.style('media/css/actionButton.css')|raw }}
{{ HTML.style('media/css/courses_teacher.css')|raw }}
{{ HTML.style('media/css/actionButton.css')|raw }}
{% endblock %}
{% macro outputSubject(Subject, HTML) %}
......@@ -55,9 +55,12 @@
"Редактирование",
{'title': 'Просмотр и редактирование дисциплины', 'class': 'disc_button active'})|raw }}
{% else %}
{{ HTML.anchor('discipline/show/'~Discipline.ID,
<div class="disc_button inactive" alt="В разработке">
Просмотр
</div>
{# {{ HTML.anchor('discipline/show/'~Discipline.ID,
"Просмотр",
{'title': 'Просмотр дисциплины', 'class': 'disc_button active'})|raw }}
{'title': 'Просмотр дисциплины', 'class': 'disc_button active'})|raw }} #}
{% endif %}
</td>
</tr>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment