|
@@ -79,7 +79,7 @@ $contentData = [
|
|
|
"family_history_other" => [],
|
|
|
"family_history_other_text" => "",
|
|
|
"family_history_alcoholism" => "",
|
|
|
- "fhdos" => "",
|
|
|
+ "fhdos" => "",
|
|
|
"age_periods_started" => "",
|
|
|
"age_periods_ended" => "",
|
|
|
"periods_frequency" => "",
|
|
@@ -322,8 +322,8 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.previous_weight_loss_programs" id="pwl-ornish_diet" value="ornish_diet">
|
|
|
<label class="form-check-label" for="pwl-ornish_diet">Ornish diet</label>
|
|
|
- </div>
|
|
|
-
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="d-flex flex-grow-1 align-items-end">
|
|
|
<div class="form-check form-check-inline mr-3">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.previous_weight_loss_programs" id="pwl-other"
|
|
@@ -406,8 +406,8 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.weight_loss_medication" id="wlm-contrave" value="contrave">
|
|
|
<label class="form-check-label" for="wlm-contrave">Contrave</label>
|
|
|
- </div>
|
|
|
-
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="d-flex flex-grow-1 align-items-end">
|
|
|
<div class="form-check form-check-inline mr-3">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.weight_loss_medication" id="wlm-other"
|
|
@@ -456,7 +456,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<input type="text" class="form-control inline" style="width:50px" v-model="data.breakfast_hour">
|
|
|
<label>:</label>
|
|
|
</div>
|
|
|
- <div class="d-flex mr-3">
|
|
|
+ <div class="d-flex mr-3">
|
|
|
<input type="text" class="form-control inline" style="width:50px" v-model="data.breakfast_min">
|
|
|
<label>a.m</label>
|
|
|
</div>
|
|
@@ -531,7 +531,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.food_triggers" id="ft-eating_out" value="eating_out">
|
|
|
<label class="form-check-label" for="ft-eating_out">Eating out</label>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="d-flex flex-grow-1 align-items-end">
|
|
|
<div class="form-check form-check-inline mr-3">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.food_triggers" id="ft-other"
|
|
@@ -574,7 +574,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.food_cravings" id="fc-largr_portions" value="largr_portions">
|
|
|
<label class="form-check-label" for="fc-largr_portions">Large portions</label>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="d-flex flex-grow-1 align-items-end">
|
|
|
<div class="form-check form-check-inline mr-3">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.food_cravings" id="fc-other"
|
|
@@ -613,10 +613,10 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<input type="text" class="form-control inline" style="width:50px" v-model="data.medical_history_mins">
|
|
|
<label>minutes</label>
|
|
|
</div>
|
|
|
- <div class="d-flex mr-3 flex-grow-1">
|
|
|
- <label>Number of times per week:</label>
|
|
|
+ <div class="d-flex mr-3 flex-grow-1">
|
|
|
+ <label>Number of times per week:</label>
|
|
|
<input type="text" class="form-control inline flex-grow-1" v-model="data.medical_history_no_of_times_per_week">
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -629,8 +629,8 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="d-flex mr-3">
|
|
|
<input type="text" class="form-control inline" v-model="data.sleeping_hours_per_night">
|
|
|
</div>
|
|
|
- <div class="d-flex mr-3 flex-grow-1">
|
|
|
- <label>Do you feel rested in the morning?</label>
|
|
|
+ <div class="d-flex mr-3 flex-grow-1">
|
|
|
+ <label>Do you feel rested in the morning?</label>
|
|
|
<input type="text" class="form-control inline flex-grow-1" v-model="data.feels_rested_in_morning">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -825,12 +825,12 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.women_only" id="wo-abnormal_menstruation" value="abnormal_menstruation">
|
|
|
<label class="form-check-label" for="wo-abnormal_menstruation">Abnormal/excessive menstruation</label>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox" v-model="data.women_only" id="wo-facial_hair" value="facial_hair">
|
|
|
<label class="form-check-label" for="wo-facial_hair"> Facial hair</label>
|
|
|
- </div>
|
|
|
-
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -889,7 +889,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
handler: function(val, oldVal) {
|
|
|
let parent = $('#edit-weight_loss_intake-container').closest('form');
|
|
|
parent.find('[name="data"]').val(JSON.stringify(this.data));
|
|
|
-
|
|
|
+ console.log('Autosaving weightloss on change');
|
|
|
// autosave on change
|
|
|
autoSaveSegment(parent.find('[submit]').first());
|
|
|
},
|
|
@@ -924,4 +924,4 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
addMCInitializer('edit-weight_loss_intake-container-{{$note->id}}', init, '#edit-weight_loss_intake-container');
|
|
|
|
|
|
})();
|
|
|
-</script>
|
|
|
+</script>
|