|
@@ -330,30 +330,34 @@ if ($point && @$point->data) {
|
|
|
<div>
|
|
|
<b>What would you like to gain from this lifestyle visit?</b> Check all that apply
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div class="mt-2">
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox"
|
|
|
- name="visit_gains" value="more_medical_scientific_knowledge" v-model="data.visit_gains">
|
|
|
+ id="more_medical_scientific_knowledge"
|
|
|
+ value="more_medical_scientific_knowledge" v-model="data.visit_gains">
|
|
|
<label class="form-check-label" for="more_medical_scientific_knowledge">More medical/scientific
|
|
|
knowledge</label>
|
|
|
</div>
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox"
|
|
|
- name="visit_gains" value="practical_health_tips" v-model="data.visit_gains">
|
|
|
+ id="practical_health_tips"
|
|
|
+ value="practical_health_tips" v-model="data.visit_gains">
|
|
|
<label class="form-check-label" for="practical_health_tips">Practical health tips</label>
|
|
|
</div>
|
|
|
<div class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="checkbox" name="visit_gains"
|
|
|
+ <input class="form-check-input" type="checkbox" id="accountability"
|
|
|
value="accountability" v-model="data.visit_gains">
|
|
|
<label class="form-check-label" for="accountability">Accountability</label>
|
|
|
</div>
|
|
|
<div class="form-check form-check-inline">
|
|
|
<input class="form-check-input" type="checkbox"
|
|
|
- name="visit_gains" value="personalized_plan" v-model="data.visit_gains">
|
|
|
+ id="personalized_plan"
|
|
|
+ value="personalized_plan" v-model="data.visit_gains">
|
|
|
<label class="form-check-label" for="personalized_plan">Personalized Plan</label>
|
|
|
</div>
|
|
|
<div class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="checkbox" name="visit_gains" value="other"
|
|
|
+ <input class="form-check-input" type="checkbox" id="other"
|
|
|
+ value="other"
|
|
|
v-model="data.visit_gains">
|
|
|
<label class="form-check-label" for="other">Other</label>
|
|
|
</div>
|
|
@@ -373,6 +377,11 @@ if ($point && @$point->data) {
|
|
|
|
|
|
</div>
|
|
|
|
|
|
+ <div class="mt-3 pt-3 border-top text-center">
|
|
|
+ <button type="button" v-on:click.prevent="saveForm()" class="btn btn-sm btn-primary mr-2">Submit</button>
|
|
|
+ <button type="button" onclick="closeStagPopup()" class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="d-none">
|
|
@@ -411,6 +420,11 @@ if ($point && @$point->data) {
|
|
|
var days = !isNaN(parseInt(this.data.days_exercise)) ? parseInt(this.data.days_exercise) : 0;
|
|
|
var min = !isNaN(parseInt(this.data.min_exercise)) ? parseInt(this.data.min_exercise) : 0;
|
|
|
this.data.total_exercise = days * min;
|
|
|
+ },
|
|
|
+ saveForm: function() {
|
|
|
+ let parent = $('#edit-univ_sub_lifestyle_general-container').closest('form');
|
|
|
+ parent.find('[name="data"]').val(JSON.stringify(this.data));
|
|
|
+ autoSaveSegmentAndClose(parent.find('[submit]').first());
|
|
|
}
|
|
|
}
|
|
|
});
|