Add communities and topics
This commit is contained in:
15
app/views/topics/_form.html.erb
Normal file
15
app/views/topics/_form.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<%= form_for([@community, @topic]) do |f| %>
|
||||
|
||||
<%= render 'shared/errors', resource: @topic %>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<%= f.label :title, t("topic.form.topic_title") %>
|
||||
<%= f.text_field :title %>
|
||||
</div>
|
||||
|
||||
<div class="actions small-12 column">
|
||||
<%= f.submit(class: "button", value: t("topic.#{action_name}.form.submit_button")) %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user