Convert .html.erb templates to .html.slim
This commit is contained in:
28
app/views/request_for_comments/_form.html.slim
Normal file
28
app/views/request_for_comments/_form.html.slim
Normal file
@@ -0,0 +1,28 @@
|
||||
= form_for(@request_for_comment) do |f|
|
||||
- if @request_for_comment.errors.any?
|
||||
#error_explanation
|
||||
h2
|
||||
= pluralize(@request_for_comment.errors.count, "error")
|
||||
| prohibited this request_for_comment from being saved:
|
||||
ul
|
||||
- @request_for_comment.errors.full_messages.each do |message|
|
||||
li= message
|
||||
|
||||
.field
|
||||
= f.label :user_id
|
||||
br/
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :exercise_id
|
||||
br/
|
||||
= f.number_field :exercise_id
|
||||
.field
|
||||
= f.label :file_id
|
||||
br/
|
||||
= f.number_field :file_id
|
||||
.field
|
||||
= f.label :user_type
|
||||
br/
|
||||
= f.text_field :user_type
|
||||
.actions
|
||||
= f.submit
|
Reference in New Issue
Block a user