-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply 0.28 redesign to census feature
- Loading branch information
1 parent
c9acceb
commit 0c1029e
Showing
4 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
86 changes: 53 additions & 33 deletions
86
app/views/decidim/file_authorization_handler/admin/censuses/show.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,59 @@ | ||
<% add_decidim_page_title(t("admin.show.title", scope: "decidim.file_authorization_handler")) %> | ||
|
||
<div class="card"> | ||
<div class="card-divider"> | ||
<h2 class="card-title"> | ||
<%= t('admin.show.title', scope: 'decidim.file_authorization_handler') %> | ||
</h2> | ||
</div> | ||
<div class="card-section"> | ||
<% if @status.count > 0 %> | ||
<p><%= t('decidim.file_authorization_handler.admin.show.data', count: @status.count, | ||
due_date: l(@status.last_import_at, format: :long)) %> | ||
</p> | ||
<%= 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 %> | ||
<p><%= t('admin.show.empty', scope: 'decidim.file_authorization_handler') %></p> | ||
<% end %> | ||
</div> | ||
<div class="item_show__header"> | ||
<h1 class="item_show__header-title"> | ||
<%= t('admin.show.title', scope: 'decidim.file_authorization_handler') %> | ||
</h1> | ||
</div> | ||
|
||
<div class="item__edit item__edit-1col"> | ||
<div class="item__edit-form"> | ||
<div class="form__wrapper"> | ||
<div class="card"> | ||
<div class="card-divider"></div> | ||
<div class="card-section"> | ||
|
||
<div class="card"> | ||
<div class="card-divider"> | ||
<h2 class="card-title"> | ||
<%= t('admin.new.title', scope: 'decidim.file_authorization_handler') %> | ||
</h2> | ||
</div> | ||
<div class="card-section"> | ||
<p><%= t('decidim.file_authorization_handler.admin.new.info') %></p> | ||
<%= 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 %> | ||
<div class="row column"> | ||
<p><%= t("decidim.verifications.csv_census.admin.index.data", count: @status.count, | ||
due_date: l(@status.last_import_at, format: :long)) %> | ||
</p> | ||
<%= 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") } %> | ||
</div> | ||
<% else %> | ||
<p class="row column"><%= t('admin.show.empty', scope: 'decidim.file_authorization_handler') %></p> | ||
<% end %> | ||
</div> | ||
|
||
<div class="card-divider"> | ||
<h2 class="card-title"> | ||
<%= t('admin.new.title', scope: 'decidim.file_authorization_handler') %> | ||
</h2> | ||
</div> | ||
<div class="card-section"> | ||
<div class="row column"> | ||
<p><%= t("decidim.file_authorization_handler.admin.new.info") %></p> | ||
<pre class="code-block"><%= t("decidim.file_authorization_handler.admin.new.example") %></pre> | ||
</div> | ||
|
||
<div class="row column"> | ||
<%= 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 %> | ||
|
||
<div class="item__edit-sticky"> | ||
<div class="item__edit-sticky-container"> | ||
<%= submit_tag t('admin.new.submit', scope: 'decidim.file_authorization_handler'), class: 'button button__sm button__transparent-secondary' %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters