質問編集履歴
1
bodyの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,7 +66,91 @@
|
|
66
66
|
|
67
67
|
<body>
|
68
68
|
|
69
|
+
<div class="wrapper">
|
70
|
+
|
71
|
+
<header>
|
72
|
+
|
73
|
+
<nav class="navbar navbar-expand-lg navbar-light bg-dark">
|
74
|
+
|
75
|
+
<a class="navbar-brand text-light" href="/admin"><i class="fas fa-tasks"></i><span id="logo">
|
76
|
+
|
77
|
+
<% if admin_signed_in? %>
|
78
|
+
|
79
|
+
<span class="nav-logo">Shift Manager × <%= current_admin.company_name %></span>
|
80
|
+
|
81
|
+
<% elsif staff_signed_in? %>
|
82
|
+
|
83
|
+
<span class="nav-logo">Shift Manager × <%= current_staff.admin.company_name %></span>
|
84
|
+
|
85
|
+
<% else %>
|
86
|
+
|
69
|
-
|
87
|
+
Shift Manager
|
88
|
+
|
89
|
+
<% end %>
|
90
|
+
|
91
|
+
</a>
|
92
|
+
|
93
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
94
|
+
|
95
|
+
<span class="navbar-toggler-icon"></span>
|
96
|
+
|
97
|
+
</button>
|
98
|
+
|
99
|
+
<div class="collapse navbar-collapse mr-0" id="navbarNav">
|
100
|
+
|
101
|
+
<ul class="navbar-nav ml-auto">
|
102
|
+
|
103
|
+
<% if staff_signed_in? %>
|
104
|
+
|
105
|
+
<li class="nav-item text-left text-light mr-3"><%= current_staff.staff_name %>さんでログイン中</li>
|
106
|
+
|
107
|
+
<li class="nav-item"><%= link_to "シフト提出", staff_shifts_path(current_staff.id), class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
108
|
+
|
109
|
+
<li class="nav-item"><%= link_to "ログアウト", destroy_staff_session_path, method: :delete, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
110
|
+
|
111
|
+
<% elsif admin_signed_in? %>
|
112
|
+
|
113
|
+
<li class="nav-item"><%= link_to "My Page", admin_home_path(current_admin.id), class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
114
|
+
|
115
|
+
<li class="nav-item"><%= link_to "従業員一覧", admin_staffs_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
116
|
+
|
117
|
+
<li class="nav-item"><%= link_to "シフト一覧", admin_shifts_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
118
|
+
|
119
|
+
<li class="nav-item"><%= link_to "ログアウト", destroy_admin_session_path, method: :delete, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
120
|
+
|
121
|
+
<li class="nav-item"><%= link_to "お問い合わせ", new_inquiry_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
122
|
+
|
123
|
+
<% else %>
|
124
|
+
|
125
|
+
<li class="nav-item"><%= link_to "従業員新規登録", registration_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
126
|
+
|
127
|
+
<li class="nav-item"><%= link_to "従業員ログイン", new_staff_session_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
128
|
+
|
129
|
+
<li class="nav-item"><%= link_to "管理者ログイン", new_admin_session_path, class: "btn btn-sm btn-outline-light mr-2 text-light" %></li>
|
130
|
+
|
131
|
+
<li class="nav-item"><%= link_to "お問い合わせ", new_inquiry_path, class: "btn btn-sm btn-outline-light text-light" %></li>
|
132
|
+
|
133
|
+
<% end %>
|
134
|
+
|
135
|
+
</ul>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
</nav>
|
140
|
+
|
141
|
+
</header>
|
142
|
+
|
143
|
+
<%= yield %>
|
144
|
+
|
145
|
+
<footer>©︎ 2022 Shift Manager.</footer>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</body>
|
150
|
+
|
151
|
+
</html>
|
152
|
+
|
153
|
+
|
70
154
|
|
71
155
|
```
|
72
156
|
|