-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhtmlTemplates.h
52 lines (47 loc) · 2.33 KB
/
htmlTemplates.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Copyright 2021 CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. */
#pragma once
#include <QString>
// %1 - task folder name
// %2 - time and date
QString reportHeader =
"<section class=\"u-clearfix u-section-1\" id==\"sec-c7e3=\">"
"<div class=\"u-clearfix u-sheet u-sheet-1\">"
"<p class=\"u-align-left u-large-text u-text u-text-variant u-text-1\">"
"<span style=\"font-weight: 700;\">"
"%1<br>%2"
"</span></p></div></section><section class=\"u-align-center u-clearfix u-section-2\" id=\"sec-82ab\">"
"<div class=\"u-clearfix u-sheet u-sheet-1\">"
"<div class=\"u-expanded-width u-table u-table-responsive u-table-1\">"
"<table class=\"u-table-entity u-table-entity-1\">"
"<colgroup><col width=\"25%\"><col width=\"25%\"><col width=\"25%\"><col width=\"25%\"></colgroup>"
"<tbody class=\"u-align-left u-custom-font u-font-montserrat u-table-alt-palette-1-light-3 u-table-body\">"
"<tr style=\"height: 28px;\">"
"<td class=\"u-custom-font u-first-column u-font-montserrat u-table-cell u-table-cell-1\">"
"Имя<br></td><td class=\"u-table-cell\" spellcheck=\"false\">Тест</td>"
"<td class=\"u-table-cell\" spellcheck=\"false\">Статус<br></td><td class=\"u-table-cell\" spellcheck=\"false\">"
"Время исполнения<br></td></tr>";
QString greenCssClass = "u-custom-color-1 u-text-black";
QString yellowCssClass = "u-palette-3-light-1 u-text-black";
QString blackCssClass = "u-custom-color-2";
// %1 - color
// &2 - qrs
// %3 - field
// %4 - status
// %5 - execution time
QString taskReport =
"<tr style=\"height: 58px;\">"
"<td style=\"font-weight: bold\" class=\"u-custom-font u-first-column u-font-montserrat %1 u-table-cell\">%2</td>"
"<td class=\"u-table-cell\">%3</td><td class=\"u-table-cell\">%4</td><td class=\"u-table-cell\">%5</td>"
"</tr>";