#7 New forms WIP
* adds saving functionality for new intervention form * refactors new identifier generating, so a pre-generated identifier from a new element form will be checked again before saving * adds css fixes for disturbing input field:focus bugs * adds missing csrf token to new collapsible form * adds/updates translations * introduces mark_as_deleted as only marking instead of using delete() which will really delete from the db
This commit is contained in:
@@ -60,8 +60,18 @@ a {
|
||||
color: var(--rlp-red);
|
||||
}
|
||||
|
||||
input[type=text] {
|
||||
width: 100%;
|
||||
input[type=text], input[type=date] {
|
||||
border: 1px solid gray;
|
||||
border-radius: 0.2rem;
|
||||
padding: 0.3rem 0.5rem;
|
||||
}
|
||||
|
||||
input:focus, textarea:focus, select:focus{
|
||||
outline: none;
|
||||
border-color: var(--rlp-red);
|
||||
box-shadow: 0 0 3px var(--rlp-red);
|
||||
-moz-box-shadow: 0 0 3px var(--rlp-red);
|
||||
-webkit-box-shadow: 0 0 3px var(--rlp-red);
|
||||
}
|
||||
|
||||
.body-content{
|
||||
@@ -137,6 +147,13 @@ input[type=text] {
|
||||
height: 8rem;
|
||||
}
|
||||
|
||||
/**
|
||||
Overwrites bootstrap .btn:focus box shadow color
|
||||
*/
|
||||
.btn:focus{
|
||||
box-shadow: 0 0 5px .2rem var(--rlp-gray-light);
|
||||
}
|
||||
|
||||
.btn-default{
|
||||
color: white;
|
||||
background-color: var(--rlp-red);
|
||||
@@ -175,13 +192,6 @@ input[type=text] {
|
||||
background-color: var(--rlp-gray-light);
|
||||
}
|
||||
|
||||
input:focus, textarea:focus, select:focus{
|
||||
border-color: var(--rlp-red) !important;
|
||||
box-shadow: 0 0 3px var(--rlp-red) !important;
|
||||
-moz-box-shadow: 0 0 3px var(--rlp-red) !important;
|
||||
-webkit-box-shadow: 0 0 3px var(--rlp-red) !important;
|
||||
}
|
||||
|
||||
.check-star{
|
||||
color: goldenrod;
|
||||
}
|
||||
@@ -219,4 +229,7 @@ No other approach worked to get the autocomplete fields to full width of parent
|
||||
*/
|
||||
.select2-container{
|
||||
width: 100% !important;
|
||||
}
|
||||
.select2-results__option--highlighted{
|
||||
background-color: var(--rlp-red) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user