We were using long, unique names because these methods used to be helper methods. Helper methods should have unique names because otherwise one method would overwrite the other. Now that we're using components, we can omit the `image_` and `document_` prefixes.
30 lines
853 B
Plaintext
30 lines
853 B
Plaintext
<div id="<%= dom_id(document) %>" class="document direct-upload document-fields nested-fields">
|
|
<%= f.hidden_field :id %>
|
|
<%= f.hidden_field :user_id, value: current_user.id %>
|
|
<%= f.hidden_field :cached_attachment %>
|
|
|
|
<div class="small-12 column title">
|
|
<%= f.text_field :title, placeholder: t("documents.form.title_placeholder") %>
|
|
</div>
|
|
|
|
<div class="small-12 column attachment-actions">
|
|
<div class="small-9 column action-add attachment-errors document-attachment">
|
|
<%= file_field %>
|
|
</div>
|
|
<div class="small-3 column action-remove text-right">
|
|
<%= destroy_link %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="small-6 column">
|
|
<p class="file-name"><%= file_name %></p>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<div class="progress-bar-placeholder"><div class="loading-bar"></div></div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</div>
|