Add qoute step.

This commit is contained in:
aminhashemi92 2025-08-21 09:18:51 +03:30
parent b71ea45681
commit 6ff4740d04
30 changed files with 3362 additions and 376 deletions

View file

@ -97,7 +97,7 @@
{% else %}
{{ well.representative.username|first|upper }}
{% endif %}
{% endif %}
{% endif %}
</span>
</div>
</div>
@ -387,7 +387,8 @@
observer: true,
calendar: {
persian: {
locale: 'fa'
locale: 'fa',
leapYearMode: 'astronomical'
}
},
onSelect: function(unix) {
@ -489,15 +490,15 @@
form.reset();
// Reset form for adding new well
currentWellId = null;
isEditMode = false;
currentWellId = null;
isEditMode = false;
$('#well-id').val('');
$('#exampleModalLabel').text('افزودن چاه جدید');
$('.data-submit').text('ذخیره');
// Hide new manufacturer field
document.getElementById('new-manufacturer-field').style.display = 'none';
document.getElementById('id_new_manufacturer').style.display = 'none';
document.getElementById('new-manufacturer-field').style.display = 'none';
document.getElementById('id_new_manufacturer').style.display = 'none';
// Reset file display
document.getElementById('current-file-display').style.display = 'none';
@ -592,7 +593,7 @@
Object.keys(fieldsMap).forEach(function(fieldId) {
$('#' + fieldId).val(fieldsMap[fieldId] || '');
});
// تبدیل تاریخ میلادی به شمسی برای نمایش
if (well.reference_letter_date) {
try {
@ -642,7 +643,7 @@
}
});
}
function deleteWell(id, waterSubscriptionNumber) {
// Set modal content
document.getElementById('deleteConfirmText').textContent = `آیا از حذف چاه ${waterSubscriptionNumber} اطمینان دارید؟`;