diff --git a/directions/admin.py b/directions/admin.py index d539210d9c..defd8e7f3b 100644 --- a/directions/admin.py +++ b/directions/admin.py @@ -289,8 +289,16 @@ class NapravleniyaHL7FilesAdmin(admin.ModelAdmin): ) +class ResultAdmin(admin.ModelAdmin): + autocomplete_fields = ('issledovaniye',) + list_display = ( + 'issledovaniye', + 'fraction', + ) + + admin.site.register(TubesRegistration) -admin.site.register(Result) +admin.site.register(Result, ResultAdmin) admin.site.register(FrequencyOfUseResearches) admin.site.register(CustomResearchOrdering) admin.site.register(ExternalOrganization) diff --git a/l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue b/l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue index 49949f3b86..6d468c6722 100644 --- a/l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue +++ b/l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue @@ -148,11 +148,12 @@ :data="r.ref.f" /> - + v-autosize="r.comment" + class="form-control noresize" + :rows="(r.comment || '').split('\n').length" + />