Zanášení a zastaralé pomocí atributu místo třídy
This commit is contained in:
		
							parent
							
								
									daf24ff981
								
							
						
					
					
						commit
						7906c87733
					
				
					 2 changed files with 15 additions and 9 deletions
				
			
		|  | @ -1,14 +1,20 @@ | ||||||
| body, | .textzanaseni { display:none; } | ||||||
| .adding{ | .textzastarale { display:none; } | ||||||
|  | 
 | ||||||
|  | body[data-status="pridavani"] { | ||||||
| 	background: #f3f3f3;  | 	background: #f3f3f3;  | ||||||
| 	color: black; |  | ||||||
| } | } | ||||||
| .comitting | 
 | ||||||
| { | body[data-status="zanaseni"] { | ||||||
|     background: yellow; |     background: yellow; | ||||||
|  | 
 | ||||||
|  | 	.textzanaseni { display: unset; } | ||||||
| } | } | ||||||
| .deprecated { | 
 | ||||||
|  | body[data-status="zastarale"] { | ||||||
|     background: red; |     background: red; | ||||||
|  | 
 | ||||||
|  | 	.textzastarale { display: unset; } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| img{background:white;} | img{background:white;} | ||||||
|  |  | ||||||
|  | @ -8,12 +8,12 @@ | ||||||
|   <script src="{% static "korektury/opraf.js"%}"></script> |   <script src="{% static "korektury/opraf.js"%}"></script> | ||||||
|   <title>Korektury {{pdf.nazev}}</title> |   <title>Korektury {{pdf.nazev}}</title> | ||||||
| </head> | </head> | ||||||
| <body class="{{ LOCAL_TEST_PROD }}web{% if pdf.status == 'zanaseni'%} comitting{% elif pdf.status == 'zastarale' %} deprecated{% endif %}" onload='place_comments()'> | <body class="{{ LOCAL_TEST_PROD }}web" data-status="{{ pdf.status }}" onload='place_comments()'> | ||||||
| 
 | 
 | ||||||
|   <h1>Korektury {{pdf.nazev}}</h1> |   <h1>Korektury {{pdf.nazev}}</h1> | ||||||
| 
 | 
 | ||||||
|   {% if pdf.status == 'zanaseni' %} <h2> Probíhá zanášení korektur, zvažte, zda chcete přidávat nové </h2> {% endif %} |   <h2 class="textzanaseni"> Probíhá zanášení korektur, zvažte, zda chcete přidávat nové </h2> | ||||||
|   {% if pdf.status == 'zastarale' %} <h2> Toto PDF je již zastaralé, nepřidávejte nové korektury </h2> {% endif %} |   <h2 class="textzastarale"> Toto PDF je již zastaralé, nepřidávejte nové korektury </h2> | ||||||
| 
 | 
 | ||||||
|   <i>{{pdf.komentar}}</i> |   <i>{{pdf.komentar}}</i> | ||||||
|   <br> |   <br> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue