Skip to content

Commit

Permalink
fraction comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailprivalov committed Oct 14, 2023
1 parent b829d7e commit e5806c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 9 additions & 1 deletion directions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 5 additions & 4 deletions l2-frontend/src/pages/LaboratoryResults/ResultsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@
:data="r.ref.f"
/>
<td v-if="labFractionComment">
<input
<textarea
v-model="r.comment"
class="form-control"
type="text"
>
v-autosize="r.comment"
class="form-control noresize"
:rows="(r.comment || '').split('\n').length"
/>
</td>
</tr>
<tr v-if="research.can_comment">
Expand Down

0 comments on commit e5806c8

Please sign in to comment.