Skip to content

Commit

Permalink
0.266.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork authored Oct 10, 2023
2 parents 1064ed1 + 4e46377 commit 5f85325
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/views/admin/collections/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<%= link_to "Q1", admin_collections_path(quarter: 1, year: 2023), class: "usa-button #{params[:quarter] == "1" && params[:year] == "2023" ? nil : 'usa-button--outline'}" %>
<%= link_to "Q2", admin_collections_path(quarter: 2, year: 2023), class: "usa-button #{params[:quarter] == "2" && params[:year] == "2023" ? nil : 'usa-button--outline'}" %>
<%= link_to "Q3", admin_collections_path(quarter: 3, year: 2023), class: "usa-button #{params[:quarter] == "3" && params[:year] == "2023" ? nil : 'usa-button--outline'}" %>
<%= link_to "Q4", admin_collections_path(quarter: 4, year: 2023), class: "usa-button #{params[:quarter] == "4" && params[:year] == "2023" ? nil : 'usa-button--outline'}" %>
</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion app/views/admin/collections/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
<div class="usa-alert usa-alert--warning usa-alert--slim">
<div class="usa-alert__body">
<p class="usa-alert__text">
<%= raw("Please add Reflection Text describing #{link_to 'edit', edit_admin_collection_path(@collection)} this Reflection text prior to submitting.") %>
<%= link_to 'Edit this Collection', edit_admin_collection_path(@collection) %>
to add Reflection Text prior to submitting.
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/questions/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div class="field">
<%= f.label :question_type, class: "usa-label" %>
<% if admin_permissions? %>
<% if admin_permissions? || service_manager_permissions? %>
<br>
<% Question::QUESTION_TYPES.each do |kind| %>
<%= f.radio_button :question_type, kind %>
Expand Down
18 changes: 17 additions & 1 deletion app/views/admin/submissions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,23 @@
<p>
<%= link_to admin_form_submission_path(@form, @submission), class: "usa-button usa-button--secondary", method: :delete, remote: true, data: { confirm: 'Are you sure?' } do %>
<i class="fas fa-trash"></i>
Delete this response
&nbsp;
Delete this response
<% end %>
<% if @submission.archived? %>
<%= link_to unarchive_admin_form_submission_path(@form, @submission), class: "usa-button usa-button--outline", method: :post, remote: true, data: { confirm: 'Are you sure?' } do %>
<i class="fa fa-inbox"></i>
&nbsp;
Unarchive response
<% end %>
<% else %>
<%= link_to archive_admin_form_submission_path(@form, @submission), class: "usa-button usa-button--outline", method: :post, remote: true, data: { confirm: 'Are you sure?' } do %>
<i class="fa fa-inbox"></i>
&nbsp;
Archive response
<% end %>
<% end %>

</p>
<% end %>

0 comments on commit 5f85325

Please sign in to comment.