Skip to content
Snippets Groups Projects
Commit 9266c948 authored by ViolettaShevchenko's avatar ViolettaShevchenko
Browse files

Change requests style

parent eaffc39a
Branches
Tags
No related merge requests found
......@@ -14,8 +14,8 @@ return array
* boolean persistent use persistent connections?
*/
'dsn' => 'mysql:host=127.0.0.1;dbname=mmcs_rating',
'username' => 'root',
'password' => '',
'username' => 'mmcs_rating',
'password' => 'Pefnesdy',
'persistent' => FALSE,
'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')
),
......
$(function () {
$(".errTitle").click(function (e) {
$(".RequestTitle").click(function (e) {
var currentID = e.target.id;
var descriptionID = currentID.replace('errTitle', '#requestInfo');
var descriptionID = currentID.replace('requestTitle', '#requestContent');
$(descriptionID).slideToggle(300);
});
$("#statusFilter").change(function () {
console.log($(this).val());
//window.location = $(this).val();
location.href = "?filter=" + $(this).val();
}
);
/*
$(".requestStatus").change(function (e) {
var requestId = e.target.id.replace('requestStatus', '');
var status = $(this).val();
......@@ -39,5 +38,5 @@ $(function () {
});
});
*/
});
.RequestsPage {
height: 600px;
padding-right: 10px;
overflow-y: scroll;
overflow-x: hidden;
}
.RequestIssue {
overflow: hidden;
margin: 10px 0;
padding: 7px 10px;
box-shadow: 2px 2px 2px #DDE8F0;
background-color: #EDF1F5;
}
.RequestTitle {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 7px;
cursor: pointer;
}
.RequestInfo {
font-size: 0.9em;
}
.RequestContent {
display: none;
}
.requestImgBlock {
float: left;
max-width: 100px;
max-height: 100px;
margin: 5px;
}
img.requestImg {
max-width:100%;
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Environment_Admin extends Controller_Environment_User
{
/** @var User */
protected $user;
public function before() {
parent::before();
$this->user->checkAccess(User::RIGHTS_ADMIN);
}
}
......@@ -3,14 +3,17 @@
{% block title %}Поддержка{% endblock %}
{% block office_media %}
{{ HTML.style('/static/css/reports.css')|raw }}
{{ HTML.style('/static/css/admin/searchBox.css')|raw }}
{{ HTML.script('/static/js/reports.js')|raw }}
{# {{ HTML.style('/static/css/reports.css')|raw }}
{{ HTML.style('/static/css/admin/searchBox.css')|raw }} #}
{{ HTML.script('/static/js/requests.js')|raw }}
{{ HTML.style('/../media/less/support/requests.less')|raw }}
{{ HTML.script('//less.js')|raw }}
{% endblock %}
{% block office_content %}
<div style="padding-bottom: 10px">
<div>
<select id="statusFilter" class="statusFilterSelect">
<option value="all" {% if Filter == 'all'%}selected{% endif %}>All</option>
<option value="opened" {% if Filter == 'opened'%}selected{% endif %}>Opened</option>
......@@ -19,22 +22,20 @@
</select>
</div>
<div class="listPage">
<div class="RequestsPage">
{% for req in Requests %}
<div class="issue">
<div>
<div class="errTitle" id="{{ "errTitle"~req.ID }}" style="float: left">{{ req.Title }}</div>
<div style="float: right">
<select class="requestStatus" id={{ "requestStatus"~req.ID }}>
<option value="opened" {% if req.Status == 'opened'%}selected{% endif %}>Opened</option>
<option value="processed" {% if req.Status == 'processed'%}selected{% endif %}>Processed</option>
<option value="closed" {% if req.Status == 'closed'%}selected{% endif %}>Closed</option>
</select>
{#<b class="caret"></b>#}
</div>
<div class="goodClearFix RequestIssue">
<div class="defaultForm FLeft P1Width">
<div id="{{ "requestTitle"~req.ID }}" class="RequestTitle">{{ req.Title }}</div>
<div class="RequestInfo">Info</div>
</div>
<div id="{{ "requestInfo"~req.ID }}" class="requestInfo">
<select id={{ "requestStatus"~req.ID }} style="width: 10%" class="defaultForm FRight">
<option value="opened" {% if req.Status == 'opened'%}selected{% endif %}>Opened</option>
<option value="processed" {% if req.Status == 'processed'%}selected{% endif %}>Processed</option>
<option value="closed" {% if req.Status == 'closed'%}selected{% endif %}>Closed</option>
</select>
<div id="{{ "requestContent"~req.ID }}" class="defaultForm FLeft FullWidth RequestContent">
{#
<div class="requestImgBlock">
{% if req.IsImage == '1' %}
<a href="{{ [URL.site("support/image"), req.ID]|join('/') }}" target="_blank">
......@@ -42,6 +43,7 @@
</a>
{% endif %}
</div>
#}
<div><span style="white-space: pre-line">{{ req.Description }}</span></div>
</div>
</div>
......
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