diff --git a/resources/views/form/rapport-team3/1780482240-add652c4-0e79-4524-8ec1-fc3c8bb2b9e0.blade.php b/resources/views/form/rapport-team3/1780482240-add652c4-0e79-4524-8ec1-fc3c8bb2b9e0.blade.php
index 05ff0e97..aacaeb1f 100644
--- a/resources/views/form/rapport-team3/1780482240-add652c4-0e79-4524-8ec1-fc3c8bb2b9e0.blade.php
+++ b/resources/views/form/rapport-team3/1780482240-add652c4-0e79-4524-8ec1-fc3c8bb2b9e0.blade.php
@@ -289,6 +289,28 @@
}
});
+
+ function slugify(value) {
+ return value
+ .toString()
+ .trim()
+ .toLowerCase()
+ .replace(/\s+/g, '_') // spaces -> -
+ .replace(/[^\w-]+/g, '') // special characters remove
+ .replace(/--+/g, '-') // multiple - -> single -
+ .replace(/^-+|-+$/g, ''); // starting/ending - remove
+ }
+
+
+ $('#field-input_name').on('change',function(){
+ $('#report-form input.dynamic-hidden').remove();
+
+ let inputName = slugify($(this).val());
+
+ $('#report-form').append('');
+ })
+
+
/* $('#field-upload_invoice_photo,#field-bag_distribution_photo ').on('change', function () {
let file = this.files[0];
diff --git a/resources/views/form/rapport-team3/1780486861-23784b46-4c61-41e1-87a8-fc54f8bbdd4e.blade.php b/resources/views/form/rapport-team3/1780486861-23784b46-4c61-41e1-87a8-fc54f8bbdd4e.blade.php
index 14be7985..e517c44e 100644
--- a/resources/views/form/rapport-team3/1780486861-23784b46-4c61-41e1-87a8-fc54f8bbdd4e.blade.php
+++ b/resources/views/form/rapport-team3/1780486861-23784b46-4c61-41e1-87a8-fc54f8bbdd4e.blade.php
@@ -253,15 +253,7 @@
// $('#field-contact_id').append('');
- $('#field-sitazit_d_rx,#field-sitazit_dm_rx,#field-ziten_m_rx').on('input', function() {
- var total=(
- (parseInt($('#execution-sitazit_d_rx').val())*15 ||0)+
- (parseInt($('#execution-sitazit_dm_rx').val())*25 ||0)+
- (parseInt($('#execution-ziten_m_rx').val())*35 ||0)
- );
-
- $('#execution-total_camp_rx').val(total)
- })
+
$('#field-upload_invoice_photo,#field-upload_invoice_photo_2,#field-upload_invoice_photo_3')
@@ -290,6 +282,27 @@
$(this).val('');
}
});
+
+
+ function slugify(value) {
+ return value
+ .toString()
+ .trim()
+ .toLowerCase()
+ .replace(/\s+/g, '_') // spaces -> -
+ .replace(/[^\w-]+/g, '') // special characters remove
+ .replace(/--+/g, '-') // multiple - -> single -
+ .replace(/^-+|-+$/g, ''); // starting/ending - remove
+ }
+
+
+ $('#field-input_name').on('change',function(){
+ $('#report-form input.dynamic-hidden').remove();
+
+ let inputName = slugify($(this).val());
+
+ $('#report-form').append('');
+ })
/*$('#field-upload_invoice_photo,#field-bag_distribution_photo,').on('change', function () {