Skip to content

Commit

Permalink
Merge pull request #171 from openhealthcare/161-timeline-events-shoul…
Browse files Browse the repository at this point in the history
…d-be-editable

timeline clincial advice should be editable (timeline template part 2)
  • Loading branch information
davidmiller committed Apr 26, 2017
2 parents 845507b + 7e1edbe commit e78df26
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 19 deletions.
10 changes: 10 additions & 0 deletions elcid/assets/css/elcid.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,13 @@ a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.acti

.btn-text-wrap {
white-space: normal; }

.no-touchevents
.patient-timeline-discussion i.edit{
display:none
}

.touchevents .patient-timeline-discussion i.edit,
.no-touchevents .patient-timeline-discussion:hover i.edit{
display: inline-block;
}
44 changes: 25 additions & 19 deletions elcid/templates/detail/inpatient.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,25 +126,31 @@ <h3>
</div>
<div class="col-md-9">
<div class="patient-timeline-discussion">
<span ng-show="microbiology_input.initials && microbiology_input.initials.trim().length">
<b>By: </b> [[microbiology_input.initials]]<span ng-show="microbiology_input.discussed_with"> with [[microbiology_input.discussed_with]]</span>
</span>
<span ng-show="microbiology_input.reason_for_interaction">
<br />
<b>Reason For Interaction: </b>[[microbiology_input.reason_for_interaction]]
</span>
<span ng-show="microbiology_input.clinical_discussion">
<br />
<b>Clinical Discussion: </b>[[ microbiology_input.clinical_discussion]]
</span>
<span ng-show="microbiology_input.infection_control">
<br />
<b>Infection control: </b>[[ microbiology_input.infection_control ]]
</span>
<span ng-show="microbiology_input.agreed_plan">
<br />
<b>Plan: </b>[[ microbiology_input.agreed_plan ]]
</span>
<div class="row">
<div class="col-sm-10">
<span ng-show="microbiology_input.initials && microbiology_input.initials.trim().length">
<b>By: </b> [[microbiology_input.initials]]<span ng-show="microbiology_input.discussed_with"> with [[microbiology_input.discussed_with]]</span>
</span>
<span ng-show="microbiology_input.reason_for_interaction">
<br />
<b>Reason For Interaction: </b>[[microbiology_input.reason_for_interaction]]
</span>
<span ng-show="microbiology_input.clinical_discussion">
<br />
<b>Clinical Discussion: </b>[[ microbiology_input.clinical_discussion]]
</span>
<span ng-show="microbiology_input.infection_control">
<br />
<b>Infection control: </b>[[ microbiology_input.infection_control ]]
</span>
<span ng-show="microbiology_input.agreed_plan">
<br />
<b>Plan: </b>[[ microbiology_input.agreed_plan ]]
</span>
</div>
<div class="col-sm-2">
<i class="fa fa-pencil edit pull-right pointer" ng-click="episode.recordEditor.openEditItemModal(microbiology_input, 'microbiology_input')"></i>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit e78df26

Please sign in to comment.