Skip to content

Commit

Permalink
tank volume tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamoonmoon committed Dec 11, 2024
1 parent 6457538 commit e6b7eec
Showing 1 changed file with 43 additions and 29 deletions.
72 changes: 43 additions & 29 deletions app/Server/src/SERVERAPI/Views/Nutrients/FertigationDetails.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
@if(Model.selTypOption == "1" || Model.selTypOption == "2"){
<div class="form-group col-sm-2" style="margin-right:0px; padding-right:0px; width:120px;">
<label for="rate">Tank Volume</label>
<a href="#" data-toggle="tooltip" title="@Model.ExplainTime" id="toolTipExplainTime">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true" title="Explanation of Time per Application" style="font-size:20px;"></span>
<a href="#" data-toggle="tooltip" title="@Model.ExplainTankVolume" id="toolTipExplainTankVolume">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true" title="Explanation of Tank Volume" style="font-size:20px;"></span>
</a>
<div>
<input class="form-control" asp-for="tankVolume" id="ddlTankVolume" type="text" />
Expand Down Expand Up @@ -471,33 +471,47 @@

<script>
$(document).ready(function () {
//Tooltips for injectionRate rate
$('#toolTipExplainInjectionRate').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainInjectionRate').click(function () {
triggerToolTip($('#toolTipExplainInjectionRate'));
});
//tooltip for Application rate
$('#toolTipExplainApplicationRate').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainApplicationRate').click(function () {
triggerToolTip($('#toolTipExplainApplicationRate'));
});
//tooltip for times per fertigation
$('#toolTipExplainTime').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainTime').click(function () {
triggerToolTip($('#toolTipExplainTime'));
});
function initializeToolTips() {
//Tooltips for injectionRate rate
$('#toolTipExplainInjectionRate').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainInjectionRate').click(function () {
triggerToolTip($('#toolTipExplainInjectionRate'));
});
//tooltip for Application rate
$('#toolTipExplainApplicationRate').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainApplicationRate').click(function () {
triggerToolTip($('#toolTipExplainApplicationRate'));
});
//tooltip for times per fertigation
$('#toolTipExplainTime').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainTime').click(function () {
triggerToolTip($('#toolTipExplainTime'));
});
//tooltip for tank volume
$('#toolTipExplainTankVolume').tooltip({
template: toolTipClickableInnerHtml,
html: true,
trigger: 'manual',
});
$('#toolTipExplainTankVolume').click(function () {
triggerToolTip($('#toolTipExplainTankVolume'));
});
}
initializeToolTips()
$('#applDate').datepicker({
format: "dd-M-yyyy",
Expand Down

0 comments on commit e6b7eec

Please sign in to comment.