|
|
@ -405,7 +405,7 @@ switch (intPratica.getTipoRichiesta()) { |
|
|
|
</strong></li> |
|
|
|
</strong></li> |
|
|
|
</ol> |
|
|
|
</ol> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= true || beniCulturali %>"> |
|
|
|
<c:if test="<%= beniCulturali %>"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<span><%= LanguageUtil.get(pageContext, |
|
|
|
<span><%= LanguageUtil.get(pageContext, |
|
|
|
"label-interventi-beni-culturali") %></span><br/><br/> |
|
|
|
"label-interventi-beni-culturali") %></span><br/><br/> |
|
|
@ -483,7 +483,7 @@ switch (intPratica.getTipoRichiesta()) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= true || beniPaesaggistici %>"> |
|
|
|
<c:if test="<%= beniPaesaggistici %>"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<span><%= LanguageUtil.get(pageContext, |
|
|
|
<span><%= LanguageUtil.get(pageContext, |
|
|
|
"label-interventi-beni-paesaggistici") %></span><br/><br/> |
|
|
|
"label-interventi-beni-paesaggistici") %></span><br/><br/> |
|
|
@ -720,7 +720,7 @@ switch (intPratica.getTipoRichiesta()) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= true || beniCulturali || beniPaesaggistici %>"> |
|
|
|
<c:if test="<%= beniCulturali || beniPaesaggistici %>"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div style="margin-top: 30px"></div> |
|
|
|
<div style="margin-top: 30px"></div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -750,7 +750,7 @@ switch (intPratica.getTipoRichiesta()) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= true || attestazioni %>"> |
|
|
|
<c:if test="<%= attestazioni %>"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-6"> |
|
|
|
<div class="col-xs-6"> |
|
|
@ -776,7 +776,7 @@ switch (intPratica.getTipoRichiesta()) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= true || archivio %>"> |
|
|
|
<c:if test="<%= archivio %>"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div style="margin-left:15px"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-6"> |
|
|
|
<div class="col-xs-6"> |
|
|
@ -936,8 +936,9 @@ $('.container-price__row input[type="checkbox"]').change(function() { |
|
|
|
if ($(this).is(':checked')) { |
|
|
|
if ($(this).is(':checked')) { |
|
|
|
if (price_input.hasClass('text_input')) { |
|
|
|
if (price_input.hasClass('text_input')) { |
|
|
|
price_input.removeAttr('disabled'); |
|
|
|
price_input.removeAttr('disabled'); |
|
|
|
} else { |
|
|
|
} |
|
|
|
price_input.val(price); |
|
|
|
if (price_input.val() == 0) { |
|
|
|
|
|
|
|
price_input.val(Number(price).formatMoney(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (price_input.hasClass('text_input')) { |
|
|
|
if (price_input.hasClass('text_input')) { |
|
|
@ -983,13 +984,15 @@ $(".text_input").each(function () { |
|
|
|
|
|
|
|
|
|
|
|
function calcolo() { |
|
|
|
function calcolo() { |
|
|
|
var totale = 0; |
|
|
|
var totale = 0; |
|
|
|
$.each($('.field_price'), function(index, val) { |
|
|
|
$.each($('.container-price__row input[type="checkbox"]'), function (index, val) { |
|
|
|
if ($(this).is(":not(:readonly)")) { |
|
|
|
if ($(this).is(':checked')) { |
|
|
|
totale += parseFloat('0' + $(this).val()); |
|
|
|
var price_el = $(this).attr('for'); |
|
|
|
|
|
|
|
var price_input = $('input[name="<portlet:namespace/>' + price_el + '"]'); |
|
|
|
|
|
|
|
totale += parseFloat('0' + price_input.val()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$('#<portlet:namespace/>importoSpeseIstruttoria').val(totale); |
|
|
|
|
|
|
|
$("#<portlet:namespace/>importoIstruttoria").html("€ " + Number(totale).formatMoney(2, ',', '.')); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#<portlet:namespace/>importoSpeseIstruttoria').val(totale); |
|
|
|
|
|
|
|
$("#<portlet:namespace/>importoIstruttoria").html("€ " + Number(totale).formatMoney(2, ',', '.')); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Number.prototype.formatMoney = function(c, d, t) { |
|
|
|
Number.prototype.formatMoney = function(c, d, t) { |
|
|
|