diff --git a/app/views/decidim/file_authorization_handler/admin/censuses/show.html.erb b/app/views/decidim/file_authorization_handler/admin/censuses/show.html.erb index 67f4df2..0cfdd02 100644 --- a/app/views/decidim/file_authorization_handler/admin/censuses/show.html.erb +++ b/app/views/decidim/file_authorization_handler/admin/censuses/show.html.erb @@ -1,39 +1,59 @@ +<% add_decidim_page_title(t("admin.show.title", scope: "decidim.file_authorization_handler")) %> -
<%= t('decidim.file_authorization_handler.admin.show.data', count: @status.count, - due_date: l(@status.last_import_at, format: :long)) %> -
- <%= link_to t('decidim.file_authorization_handler.admin.destroy.title'), - censuses_path, - method: :delete, - class: 'button alert', - data: { confirm: t('decidim.file_authorization_handler.admin.destroy.confirm') } %> - <% else %> -<%= t('admin.show.empty', scope: 'decidim.file_authorization_handler') %>
- <% end %> -<%= t('decidim.file_authorization_handler.admin.new.info') %>
- <%= form_tag censuses_path, multipart: true, class: 'form' do %> - <%= label_tag :name, t('admin.new.file', scope: 'decidim.file_authorization_handler') %> - <%= file_field_tag :file %> - <%= submit_tag t('admin.new.submit', scope: 'decidim.file_authorization_handler'), class: 'button' %> - <% end %> + <% if @status.count > 0 %> +<%= t("decidim.verifications.csv_census.admin.index.data", count: @status.count, + due_date: l(@status.last_import_at, format: :long)) %> +
+ <%= link_to t("decidim.verifications.csv_census.admin.destroy.title"), + censuses_path, + method: :delete, + class: "button button__sm button__secondary alert", + data: { confirm: t("decidim.file_authorization_handler.admin.destroy.confirm") } %> +<%= t('admin.show.empty', scope: 'decidim.file_authorization_handler') %>
+ <% end %> +<%= t("decidim.file_authorization_handler.admin.new.info") %>
+<%= t("decidim.file_authorization_handler.admin.new.example") %>+