Changeset 8bcd64c for src/main/resources/static
- Timestamp:
- 04/19/23 21:19:08 (19 months ago)
- Branches:
- master
- Children:
- 950fa0d
- Parents:
- 9050790
- Location:
- src/main/resources/static
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/register_business.js
r9050790 r8bcd64c 22 22 '<div class=\"form-outline mb-4\">' + 23 23 ' <div class="row">' + 24 ' <div class="col-md- 8">\n' +24 ' <div class="col-md-6">\n' + 25 25 ' <input class="form-check-input" type="checkbox" value=\"' + obj.id + '\" id=\"' + obj.id + '\">\n' + 26 26 ' <label class="form-check-label" for=\"' + obj.id + '\">\n' + … … 29 29 ' </div>' + 30 30 ' <div class=\"form-outline col-md-2 d-grid\">' + 31 ' <input type=\"text\" id=\"' + obj.id + obj.name.replace(/\s/g, "") + '\" class=\"form-control\" />' + 31 ' <input type=\"text\" id=\"' + obj.id + obj.name.replace(/\s/g, "") + "duration" + '\" class=\"form-control\" placeholder="time" />' + 32 ' </div>' + 33 ' <div class=\"form-outline col-md-2 d-grid\">' + 34 ' <input type=\"text\" id=\"' + obj.id + obj.name.replace(/\s/g, "") + "price" + '\" class=\"form-control\" placeholder="price" />' + 32 35 ' </div>' + 33 36 ' </div>' + … … 53 56 ' </div>' + 54 57 ' <div class="form-outline col-md-2 d-grid">' + 55 ' <input type="text" id="' + -1 + input_service.replace(/\s/g, "") + '" class="form-control" />' + 58 ' <input type="text" id="' + -1 + input_service.replace(/\s/g, "") + "duration" + '" class="form-control" placeholder="time" />' + 59 ' </div>' + 60 ' <div class="form-outline col-md-2 d-grid">' + 61 ' <input type="text" id="' + -1 + input_service.replace(/\s/g, "") + "price"+ '" class="form-control" placeholder="price" />' + 56 62 ' </div>' + 57 63 ' </div>' + … … 83 89 var text = $(label).text(); 84 90 var time = $($($(label).parent()).siblings()[0]).children()[0].value; 91 var price = $($($(label).parent()).siblings()[1]).children()[0].value; 85 92 86 93 var serviceType = {} … … 91 98 service['serviceType'] = serviceType; 92 99 service['duration'] = time; 100 service['price'] = price; 93 101 servicesObj.push(service); 94 102 });
Note:
See TracChangeset
for help on using the changeset viewer.