RadioButton Select lässt nur bei angewähltem FreigabeButton oder wenn kein Button angewäht ist freigegeben.
This commit is contained in:
@@ -68,8 +68,7 @@
|
||||
<div style="margin-left:6px">
|
||||
<div class="col-12" style="text-align:end">
|
||||
|
||||
<asp:LinkButton ID="btn_resetForm" runat="server" onclick="btn_resetForm_Click" style="margin-right:2px">Filter zurücksetzen</asp:LinkButton>
|
||||
|
||||
<asp:LinkButton ID="btn_resetForm" runat="server" onclick="btn_resetForm_Click" style="margin-right:2px">Filter zurücksetzen</asp:LinkButton>
|
||||
</div>
|
||||
|
||||
<div style="height:0.936768149882904vh"></div>
|
||||
@@ -78,28 +77,25 @@
|
||||
</div>
|
||||
<div class="col-8" style="margin-left:8px" >
|
||||
<asp:RadioButtonList id="RadioButtonList1" runat="server" RepeatDirection="Horizontal" style="border-color:#fff">
|
||||
<asp:ListItem ID="rbt_Erf" GroupName="radio" style="font-size:/*17px*/1.063em"> Erfasst</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Vorb" GroupName="radio" style="font-size:/*17px*/1.063em">Vorbereitet</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Vorg" GroupName="radio" style="font-size:/*17px*/1.063em"> Vorgeschrieben</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Ankunft" GroupName="radio" style="font-size:/*17px*/1.063em">Ankunft</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Freig" onclick="optionensichtbarkeit()" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn dieser Filter angewählt ist, bitte das Datum eingrenzen." style="font-size:/*17px*/1.063em"> Freigabe</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Erf" GroupName="radios" style="font-size:/*17px*/1.063em"> Erfasst</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Vorb" GroupName="radios" style="font-size:/*17px*/1.063em">Vorbereitet</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Vorg" GroupName="radios" style="font-size:/*17px*/1.063em"> Vorgeschrieben</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Ankunft" GroupName="radios" style="font-size:/*17px*/1.063em">Ankunft</asp:ListItem>
|
||||
<asp:ListItem ID="rbt_Freig" GroupName="radios" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn dieser Filter angewählt ist, bitte das Datum eingrenzen." style="font-size:/*17px*/1.063em">Freigabe</asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:0.936768149882904vh"></div>
|
||||
<div class="col-12" id="cont4">
|
||||
<div class="col-12">
|
||||
<div class="container2" style="margin-left:2px">
|
||||
<div class="align-content-start">
|
||||
<div class="col-12" id="container2" style="margin-left:2px">
|
||||
<asp:Label ID="lbl_von" runat="server" Text="Von:"></asp:Label>
|
||||
<asp:TextBox id="pickdate1" Type="Date" runat="server"></asp:TextBox>
|
||||
|
||||
<asp:Label ID="lbl_bis" runat="server" Text="Bis:"></asp:Label>
|
||||
<asp:TextBox id="pickdate2" Type="Date" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="height:/*12px*/0.936768149882904vh"></div>
|
||||
<hr>
|
||||
<div id="accordion">
|
||||
@@ -134,7 +130,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -189,15 +185,7 @@
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function optionensichtbarkeit() {
|
||||
if (rbt_Freig.checked) {
|
||||
document.getElementById("container2").style.display = "inline";
|
||||
} else {
|
||||
document.getElementById("container2").style.display= "hidden";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$('#accordion').on('shown.bs.collapse', function (e) {
|
||||
$(e.target).data('bs.collapse').$trigger.attr('src', 'https://s22.postimg.org/hkrauaofx/Mathematic_Minus2.png');
|
||||
@@ -208,5 +196,28 @@
|
||||
});
|
||||
</script>
|
||||
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function () {
|
||||
$("#container2").hide();
|
||||
|
||||
let htmlNodes = document.getElementsByName('status');
|
||||
let radioButtonsArray = Array.from(htmlNodes);
|
||||
let isAnyRadioButtonChecked = radioButtonsArray.some(element => element.checked);
|
||||
if (isAnyRadioButtonChecked == false){
|
||||
$("#container2").show();
|
||||
} else {
|
||||
$("#container2").hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$('#<%=RadioButtonList1.ClientID %> input[type="radio"]').change(function () {
|
||||
if ($(this).val() == "Freigabe") {
|
||||
$("#container2").show();
|
||||
} else {
|
||||
$("#container2").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</asp:Content>
|
||||
Reference in New Issue
Block a user