Skip to content
Snippets Groups Projects
Commit 22ea1428 authored by ElenaMetelitsa's avatar ElenaMetelitsa
Browse files

New request style

parent 2db7a524
Branches
Tags
No related merge requests found
.errTitle{
font-size: large;
cursor: pointer;
}
.repBlock{
border: solid;
border-width: 1px ;
border-color: #8ba7f6;
padding: 7px;
margin-bottom: 10px;
}
.reqImg{
float:left;
width: 100px;
}
.repInfo{
display: none;
}
\ No newline at end of file
p{
color: #0000cc;
}
\ No newline at end of file
$(function(){
$(".errTitle").click(function(e){
var id_click = e.target.id;
console.log(id_click + " 11111");
var id_id = id_click.replace('errTitle','#repInfo');
console.log(id_id);
$(id_id).toggle(400);
})
})
\ No newline at end of file
......@@ -36,7 +36,7 @@
{{ HTML.style('static/css/admin/macro.css')|raw }}
{#{{ HTML.style('static/css/actionButton.css')|raw }}#}
{{ HTML.style('static/css/common/buttons.css')|raw }}
{{ HTML.style('static/css/common/buttons.css')|raw }}
{{ HTML.script('static/js/libs/jquery-1.11.1.min.js')|raw }}
{{ HTML.script('static/js/config.js')|raw }}
......
......@@ -2,22 +2,32 @@
{% block title %}Поддержка{% endblock %}
{% block media %}{{ HTML.style('/static/css/reports.css')|raw }}
{{ HTML.script('/static/js/reports.js')|raw }}
{% endblock %}
{% block main_top_title %}Сообщения в службу поддержки{% endblock %}
{% block main_content %}
<table border="1">
{% for ind, req in Requests %}
<tr>
<td>{{ ind }} </td>
<td>{{ req.ID }}</td>
<td>{{ req.Title }}</td>
<td>{{ req.Status }}</td>
<td>
{% if req.IsImage == '1' %}
<img src="{{ [URL.site("support/image/preview"), req.ID]|join('/') }}">
{% endif %}
</td>
</tr>
<div></div>
<div class="listPage1">
{% for req in Requests %}
<div class="repBlock" >
<div>
<div class="errTitle" id="{{ "errTitle"~req.ID }}" style="float: left">{{ req.Title }}</div>
<div style="float: right">{{ req.Status }}</div></div>
{#<div style="float: left">{{ ind }} </div>
<div style="float: left">{{ req.ID }}</div>#}
<div id="{{ "repInfo"~req.ID }}" class="repInfo">
<div class ="reqImg">
{% if req.IsImage == '1' %}
<img src="{{ [URL.site("support/image/preview"), req.ID]|join('/') }}">
{% endif %}
</div>
<div><p>{{ req.Description}}</p></div>
</div>
</div>
{% endfor %}
</table>
</div>
{% endblock %}
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