質問編集履歴
1
追記:views/observations/show.html.erbの追記。不要なビューの削除。
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,26 +85,6 @@
|
|
85
85
|
end
|
86
86
|
```
|
87
87
|
|
88
|
-
```ruby
|
89
|
-
<div class="item-show">
|
90
|
-
<div class="item-box">
|
91
|
-
<%= form_with model: [@patient,@observation], local: true do |f| %>
|
92
|
-
<table class="detail-table">
|
93
|
-
<tbody>
|
94
|
-
<tr>
|
95
|
-
<th>観察時間</th>
|
96
|
-
<td><%= f.text_field :time %></td>
|
97
|
-
</tr>
|
98
|
-
<tr>
|
99
|
-
#省略
|
100
|
-
<th>観察記録保存</th>
|
101
|
-
<td><%= f.submit '反映', class: 'btn btn-primary btn-block' %></td>
|
102
|
-
</tr>
|
103
|
-
</tbody>
|
104
|
-
</table>
|
105
|
-
<% end %>
|
106
|
-
</div>
|
107
|
-
```
|
108
88
|
|
109
89
|
```ruby
|
110
90
|
Rails.application.routes.draw do
|
@@ -118,6 +98,29 @@
|
|
118
98
|
end
|
119
99
|
```
|
120
100
|
|
101
|
+
```ruby
|
102
|
+
~views/observations/show.html.erb~
|
103
|
+
<div class="observation-show">
|
104
|
+
<div class="observation-box">
|
105
|
+
|
106
|
+
<div class="btn">
|
107
|
+
<div class="ns-btn">
|
108
|
+
<%= image_tag "くま看護師.png" ,class:"kuma-icon" ,width:"40",height:"40"%>
|
109
|
+
<%= link_to "観察項目編集", edit_patient_observation_path %>
|
110
|
+
</div>
|
111
|
+
<div class="kensa-btn">
|
112
|
+
<%= image_tag "レントゲン1.jpg" ,class:"kensa-icon" ,width:"40",height:"40"%>
|
113
|
+
<%= link_to "検査結果参照", '#' %>
|
114
|
+
</div>
|
115
|
+
<div class="syoti-btn">
|
116
|
+
<%= image_tag "点滴.jpeg" ,class:"treatment-icon" ,width:"40",height:"40"%>
|
117
|
+
<%= link_to "処置の入力", '#' %>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
```
|
123
|
+
|
121
124
|
def set_observation
|
122
125
|
**@observation = Observation.find(params[:patient_id])**
|
123
126
|
end
|