質問編集履歴
1
コード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,3 +18,34 @@
|
|
18
18
|
[Webpacker] Everything's up-to-date. Nothing to do
|
19
19
|
Rendered layout layouts/application.html.erb (Duration: 11.3ms | Allocations: 5221)
|
20
20
|
Completed 200 OK in 318ms (Views: 12.9ms | ActiveRecord: 0.0ms | Allocations: 5820)
|
21
|
+
|
22
|
+
```ここに言語を入力
|
23
|
+
<h2>管理者ログイン</h2>
|
24
|
+
|
25
|
+
<%= form_with model: @admin, url: new_admin_session_path do |f| %>
|
26
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
27
|
+
|
28
|
+
<div class="field">
|
29
|
+
<%= f.label :メールアドレス %><br />
|
30
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div class="field">
|
34
|
+
<%= f.label :パスワード %><br />
|
35
|
+
<%= f.password_field :password, autocomplete: "current-password" %>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<% if devise_mapping.rememberable? %>
|
39
|
+
<div class="field">
|
40
|
+
<%= f.check_box :remember_me %>
|
41
|
+
<%= f.label :remember_me %>
|
42
|
+
</div>
|
43
|
+
<% end %>
|
44
|
+
|
45
|
+
<div class="actions">
|
46
|
+
<%= f.submit "ログイン" %>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
49
|
+
|
50
|
+
<%= render "admin/shared/links" %>
|
51
|
+
```
|