Commit c8fac8c8 authored by Maxim's avatar Maxim Committed by Matija Obreza

De/Selecting accessions

parent dd7af809
...@@ -1998,9 +1998,9 @@ $light-font-family: 'Roboto-Light'; ...@@ -1998,9 +1998,9 @@ $light-font-family: 'Roboto-Light';
background-position: center left; background-position: center left;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
width: 20px; width: 32px;
height: 20px; height: 20px;
background-size: 250%; background-size: 196%;
} }
tr.acn span.sel.picked { tr.acn span.sel.picked {
background-position: center right; background-position: center right;
...@@ -4238,5 +4238,47 @@ h1.green-bg { ...@@ -4238,5 +4238,47 @@ h1.green-bg {
} }
} }
.acn .sel a {
padding: 7px 0 7px 7px;
text-transform: uppercase;
&.add:before {
background-position: -4px -4px;
}
&.remove:before {
background-position: -36px -4px;
}
html[dir="rtl"] & {
padding: 7px 7px 7px 0;
}
&:before {
content: "";
float: left;
width: 32px;
height: 32px;
margin: 0;
padding: 0;
background: url('../images/icon_row_select.png') no-repeat;
html[dir="rtl"] & {
float: right;
}
}
}
.acn .sel a.remove {
display: none;
}
.acn .sel.picked a.remove {
display: inline;
}
.acn .sel.picked a.add {
display: none;
}
...@@ -18,17 +18,14 @@ ...@@ -18,17 +18,14 @@
</h1> </h1>
<div class="main-col-header acn"> <div class="main-col-header acn">
<div class="" x-aid="${accession.id}"> <div class="sel" x-aid="${accession.id}">
<div class="checkbox"> <a class="add" href=""><spring:message code="selection.add" arguments="${accession.accessionName}" /></a>
<label> <a class="remove" href=""><spring:message code="selection.remove" arguments="${accession.accessionName}" /></a>
<input type="checkbox" value="">
<a class="add" href=""><spring:message code="selection.add" arguments="${accession.accessionName}" /></a> <a class="remove" href=""><spring:message code="selection.remove"
arguments="${accession.accessionName}" /></a>
</label>
</div>
</div> </div>
</div> </div>
</div>
<gui:alert type="warning" display="${accession.historic eq true or accession.getClass().simpleName eq 'AccessionHistoric'}"> <gui:alert type="warning" display="${accession.historic eq true or accession.getClass().simpleName eq 'AccessionHistoric'}">
<spring:message code="accession.this-is-a-historic-entry" /> <spring:message code="accession.this-is-a-historic-entry" />
</gui:alert> </gui:alert>
......
Markdown is supported
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