Add communities and topics

This commit is contained in:
taitus
2017-08-07 12:51:49 +02:00
parent ee3b3f2c85
commit 43c17c3fc7
20 changed files with 210 additions and 10 deletions

View 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 %>