NEW! Archiving data. Archiving is a soft delete. It can be undone. Enter the archive mode to see all the data including archives (everything is read-only in that mode). Archiving must be enabled per class (data model). Archiving is achieved by the mean of the API DBObject::Archive (or Unarchive).

SVN:trunk[4692]
This commit is contained in:
Romain Quetiez
2017-04-26 09:52:20 +00:00
parent 9d242e1623
commit fa2fd6dcdf
54 changed files with 1421 additions and 462 deletions

View File

@@ -5,4 +5,4 @@ $complement-light: #d6e8ef;
$frame-background-color: #F1F1F1;
$text-color: #000;
// Beware the version number MUST be enclosed with quotes otherwise v2.3.0 becomes v2 0.3 .0
$version: "v2.3.0";
$version: "v2.4.0-alpha";

View File

@@ -253,8 +253,6 @@ legend.transparent {
.ui-widget-content td a, p a, p a:visited, td a, td a:visited {
text-decoration: none;
color: #1c94c4;
padding-left: 14px;
background: url(../images/mini-arrow-orange.gif) no-repeat left;
}
.ui-widget-content td a.cke_button, .ui-widget-content td a.cke_toolbox_collapser, .ui-widget-content td a.cke_combo_button, cke_dialog a {
padding-left: 0;
@@ -292,13 +290,13 @@ td a.mailto, td a.mailto:visited {
text-decoration: none;
color: #000;
padding-left: 20px;
background: url(../images/mail.png?v=v2.3.0) no-repeat left;
background: url(../images/mail.png?v=v2.4.0-alpha) no-repeat left;
}
td a.mailto:hover {
text-decoration: underline;
color: #e87c1e;
padding-left: 20px;
background: url(../images/mail.png?v=v2.3.0) no-repeat left;
background: url(../images/mail.png?v=v2.4.0-alpha) no-repeat left;
}
a.small_action {
font-family: Tahoma, Verdana, Arial, Helvetica;
@@ -316,10 +314,10 @@ a.small_action {
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
background: #e87c1e url(../images/actions_left.png?v=v2.3.0) no-repeat left;
background: #e87c1e url(../images/actions_left.png?v=v2.4.0-alpha) no-repeat left;
}
.actions_details span {
background: url(../images/actions_right.png?v=v2.3.0) no-repeat right;
background: url(../images/actions_right.png?v=v2.4.0-alpha) no-repeat right;
color: #fff;
font-weight: bold;
padding-top: 2px;
@@ -493,7 +491,7 @@ div.actions_menu > ul {
nowidth: 70px;
padding-left: 5px;
/* Nasty work-around for IE... en attendant mieux */
background: #e87c1e url(../images/actions_left.png?v=v2.3.0) no-repeat top left;
background: #e87c1e url(../images/actions_left.png?v=v2.4.0-alpha) no-repeat top left;
cursor: pointer;
margin: 0;
}
@@ -505,7 +503,7 @@ div.actions_menu > ul > li {
height: 17px;
padding-right: 16px;
padding-left: 4px;
background: url(../images/actions_right.png?v=v2.3.0) no-repeat top right transparent;
background: url(../images/actions_right.png?v=v2.4.0-alpha) no-repeat top right transparent;
font-weight: bold;
color: #fff;
vertical-align: middle;
@@ -648,7 +646,7 @@ td a.dp-choose-date, a.dp-choose-date, td a.dp-choose-date:hover, a.dp-choose-da
display: block;
text-indent: -2000px;
overflow: hidden;
background: url(../images/calendar.png?v=v2.3.0) no-repeat;
background: url(../images/calendar.png?v=v2.4.0-alpha) no-repeat;
}
td a.dp-choose-date.dp-disabled, a.dp-choose-date.dp-disabled {
background-position: 0 -20px;
@@ -739,19 +737,19 @@ div.HRDrawer {
}
/* Beware: IE6 does not support multiple selector with multiple classes, only the last class is used */
table.listResults tr.odd td.truncated, table.listResults tr td.truncated, .wizContainer table.listResults tr.odd td.truncated, .wizContainer table.listResults tr td.truncated {
background: url(../images/truncated.png?v=v2.3.0) bottom repeat-x;
background: url(../images/truncated.png?v=v2.4.0-alpha) bottom repeat-x;
}
/* Beware: IE6 does not support multiple selector with multiple classes, only the last class is used */
table.listResults tr.even td.truncated, .wizContainer table.listResults tr.even td.truncated {
background: #f9f9f1 url(../images/truncated.png?v=v2.3.0) bottom repeat-x;
background: #f9f9f1 url(../images/truncated.png?v=v2.4.0-alpha) bottom repeat-x;
}
/* Beware: IE6 does not support multiple selector with multiple classes, only the last class is used */
table.listResults tr.even td.hover.truncated, .wizContainer table.listResults tr.even td.hover.truncated {
background: #fdf5d0 url(../images/truncated.png?v=v2.3.0) bottom repeat-x;
background: #fdf5d0 url(../images/truncated.png?v=v2.4.0-alpha) bottom repeat-x;
}
/* Beware: IE6 does not support multiple selector with multiple classes, only the last class is used */
table.listResults tr.odd td.hover.truncated, table.listResults tr td.hover.truncated, .wizContainer table.listResults tr.odd td.hover.truncated, .wizContainer table.listResults tr td.hover.truncated {
background: #fdf5d0 url(../images/truncated.png?v=v2.3.0) bottom repeat-x;
background: #fdf5d0 url(../images/truncated.png?v=v2.4.0-alpha) bottom repeat-x;
}
table.listResults.truncated {
border-bottom: 0;
@@ -859,7 +857,7 @@ div#logo {
div#logo div {
height: 88px;
width: 244px;
background: url(../images/itop-logo-2.png?v=v2.3.0) left no-repeat;
background: url(../images/itop-logo-2.png?v=v2.4.0-alpha) left no-repeat;
}
#left-pane .ui-layout-north {
overflow: hidden;
@@ -868,13 +866,56 @@ div#logo div {
background: #f1f1f1;
text-align: right;
}
#admin-banner {
.app-message {
float: left;
margin-top: 2px;
padding: 8px;
border: 1px solid #c33;
background-color: #fee;
-moz-border-radius: 0.5em;
margin-right: 4px;
padding: 6px 9px;
background-color: #e87c1e;
color: white;
border-radius: 6px;
text-align: left;
}
.app-message-icon {
margin-right: 5px;
}
.fa-sm {
font-size: 0.66em;
}
.object-details-header {
margin-top: 7px;
margin-bottom: 7px;
}
.object-icon {
display: table-cell;
vertical-align: middle;
margin-left: 10px;
margin-right: 10px;
}
.object-infos {
display: table-cell;
vertical-align: middle;
}
.object-name {
margin-top: 0px;
margin-bottom: 0px;
}
.tags {
margin-top: 5px;
}
.tag {
font-size: 10px;
font-weight: initial;
display: inline-block;
color: white;
background-color: #555;
padding: 3px 6px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.text-danger {
color: red;
}
#global-search {
height: 55px;
@@ -908,7 +949,7 @@ div#logo div {
}
#global-search-image {
vertical-align: middle;
background: url(../images/search.png?v=v2.3.0) center center no-repeat;
background: url(../images/search.png?v=v2.4.0-alpha) center center no-repeat;
display: inline-block;
width: 28px;
height: 30px;
@@ -937,7 +978,7 @@ span.ui-icon {
margin: 0 2px;
}
.ui-layout-button-pin-down {
background: url(../images/splitter-bkg.png?v=v2.3.0) transparent;
background: url(../images/splitter-bkg.png?v=v2.4.0-alpha) transparent;
width: 16px;
background-position: -144px -144px;
}
@@ -1148,7 +1189,7 @@ img.prev, img.first, img.next, img.last {
}
div.actions_button {
float: right;
background: #e87c1e url("../images/actions_left.png?v=v2.3.0") no-repeat scroll left top;
background: #e87c1e url("../images/actions_left.png?v=v2.4.0-alpha") no-repeat scroll left top;
padding-left: 5px;
margin-top: 0;
margin-right: 10px;
@@ -1156,7 +1197,7 @@ div.actions_button {
vertical-align: middle;
}
div.actions_button a, .actions_button a:hover, .actions_button a:visited {
background: #e87c1e url(../images/actions_bkg.png?v=v2.3.0) no-repeat scroll right top;
background: #e87c1e url(../images/actions_bkg.png?v=v2.4.0-alpha) no-repeat scroll right top;
color: #fff;
padding-right: 8px;
cursor: pointer;
@@ -1180,10 +1221,10 @@ select#org_id {
cursor: not-allowed;
}
.dragHover {
background: url(./ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png?v=v2.3.0);
background: url(./ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png?v=v2.4.0-alpha);
}
.edit_mode .dashlet {
background: url(./ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png?v=v2.3.0);
background: url(./ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png?v=v2.4.0-alpha);
padding: 5px;
margin: 0;
position: relative;
@@ -1215,7 +1256,7 @@ table.prop_table {
top: 0;
right: 0;
z-index: 10;
background: transparent url(../images/delete.png?v=v2.3.0) no-repeat center;
background: transparent url(../images/delete.png?v=v2.4.0-alpha) no-repeat center;
}
td.prop_value {
text-align: left;
@@ -1409,17 +1450,17 @@ a.summary, a.summary:hover {
}
.message_info {
border: 1px solid #993;
background: url(../images/info-mini.png?v=v2.3.0) 1em 1em no-repeat #ffc;
background: url(../images/info-mini.png?v=v2.4.0-alpha) 1em 1em no-repeat #ffc;
padding-left: 3em;
}
.message_ok {
border: 1px solid #393;
background: url(../images/ok.png?v=v2.3.0) 1em 1em no-repeat #cfc;
background: url(../images/ok.png?v=v2.4.0-alpha) 1em 1em no-repeat #cfc;
padding-left: 3em;
}
.message_error {
border: 1px solid #933;
background: url(../images/error.png?v=v2.3.0) 1em 1em no-repeat #fcc;
background: url(../images/error.png?v=v2.4.0-alpha) 1em 1em no-repeat #fcc;
padding-left: 3em;
}
.fg-menu a img {
@@ -1547,18 +1588,18 @@ div.explain-printable {
}
#hiddeable_chapters .ui-tabs .ui-tabs-nav li.hideable-chapter span {
padding-left: 20px;
background: url(../images/eye-open-555.png?v=v2.3.0) 2px center no-repeat;
background: url(../images/eye-open-555.png?v=v2.4.0-alpha) 2px center no-repeat;
}
#hiddeable_chapters .ui-tabs .ui-tabs-nav li.hideable-chapter.strikethrough span {
text-decoration: line-through;
background: url(../images/eye-closed-555.png?v=v2.3.0) 2px center no-repeat;
background: url(../images/eye-closed-555.png?v=v2.4.0-alpha) 2px center no-repeat;
}
.printable-version legend {
padding-left: 26px;
background: #1c94c4 url(../images/eye-open-fff.png?v=v2.3.0) 8px center no-repeat;
background: #1c94c4 url(../images/eye-open-fff.png?v=v2.4.0-alpha) 8px center no-repeat;
}
.printable-version .strikethrough legend {
background: #1c94c4 url(../images/eye-closed-fff.png?v=v2.3.0) 8px center no-repeat;
background: #1c94c4 url(../images/eye-closed-fff.png?v=v2.4.0-alpha) 8px center no-repeat;
}
.printable-version fieldset.strikethrough span {
display: none;
@@ -1577,7 +1618,7 @@ span.refresh-button {
width: 21px;
height: 18px;
cursor: pointer;
background: transparent url(../images/refresh-fff.png?v=v2.3.0) left center no-repeat;
background: transparent url(../images/refresh-fff.png?v=v2.4.0-alpha) left center no-repeat;
}
.case-log-history-entry {
display: block;
@@ -1705,7 +1746,7 @@ span.refresh-button {
#itop-breadcrumb .breadcrumb-item a::after {
content: '';
position: absolute;
background-image: url(../images/breadcrumb-separator.png?v=v2.3.0);
background-image: url(../images/breadcrumb-separator.png?v=v2.4.0-alpha);
background-repeat: no-repeat;
width: 8px;
height: 16px;
@@ -1763,3 +1804,17 @@ span.refresh-button {
margin-top: 3px;
margin-bottom: 1px;
}
.object-ref-icon.fa {
color: #e87c1e;
font-size: smaller;
vertical-align: 1px;
margin-right: 1px;
}
.object-ref-icon-disabled.fa {
color: #555;
font-size: smaller;
margin-right: 1px;
}
.object-ref-link {
background: none;
}

View File

@@ -302,8 +302,6 @@ legend.transparent {
.ui-widget-content td a, p a, p a:visited, td a, td a:visited {
text-decoration:none;
color: $complement-color;
padding-left:14px;
background: url(../images/mini-arrow-orange.gif) no-repeat left;
}
.ui-widget-content td a.cke_button, .ui-widget-content td a.cke_toolbox_collapser, .ui-widget-content td a.cke_combo_button, cke_dialog a {
padding-left: 0;
@@ -956,13 +954,62 @@ div#logo div {
background: $frame-background-color;
text-align: right;
}
#admin-banner {
.app-banner {
}
.app-message {
float: left;
margin-top: 2px;
padding: 8px;
border: 1px solid #c33;
background-color: #fee;
-moz-border-radius: 0.5em;
margin-right: 4px;
padding: 6px 9px;
background-color: $highlight-color;
color: white;
border-radius: 6px;
text-align: left;
}
.app-message-icon {
margin-right: 5px;
}
.app-message-body {
}
.fa-sm {
font-size: 0.66em;
}
.object-details-header {
margin-top: 7px;
margin-bottom: 7px;
}
.object-icon {
display: table-cell;
vertical-align: middle;
margin-left: 10px;
margin-right: 10px;
}
.object-infos {
display: table-cell;
vertical-align: middle;
}
.object-name {
margin-top: 0px;
margin-bottom: 0px;
}
.tags {
margin-top: 5px;
}
.tag {
font-size: 10px;
font-weight: initial;
display: inline-block;
color:white;
background-color:#555;
padding: 3px 6px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
.text-danger {
color: red;
}
#global-search {
height: 55px;
@@ -1888,4 +1935,20 @@ span.refresh-button {
font-size: smaller;
margin-top: 3px;
margin-bottom: 1px;
}
}
.object-ref.archived {
}
.object-ref-icon.fa {
color: $highlight-color;
font-size: smaller;
vertical-align: 1px;
margin-right: 1px;
}
.object-ref-icon-disabled.fa {
color: $grey-color;
font-size: smaller;
margin-right: 1px;
}
.object-ref-link {
background: none;
}