Fix back link on document new page.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-21 16:46:18 +02:00
parent 27b3c60e92
commit 462931845b
2 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
<div class="document-form <%= @document.documentable.class.name.parameterize('_') %> row"> <div class="document-form <%= document_documentable_class(@document) %> row">
<div class="small-12 medium-9 column"> <div class="small-12 medium-9 column">
<%= render "shared/back_link" %> <%= back_link_to params[:from] %>
<h1><%= t("documents.new.title") %></h1> <h1><%= t("documents.new.title") %></h1>
<%= render "documents/form", form_url: documents_url %> <%= render "documents/form", form_url: documents_url %>
</div> </div>
@@ -15,4 +16,5 @@
<li><%= t("documents.recommendation_three_html") %></li> <li><%= t("documents.recommendation_three_html") %></li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@@ -1227,6 +1227,7 @@ feature 'Proposals' do
end end
it_behaves_like "followable", "proposal", "proposal_path", { "id": "id" } it_behaves_like "followable", "proposal", "proposal_path", { "id": "id" }
it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" } it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" }
scenario 'Erased author' do scenario 'Erased author' do