Skip to content

Commit

Permalink
Issue #1222: Add copy below the input stating file type and size rest…
Browse files Browse the repository at this point in the history
…rictions for Pet Attachments (#1258)

* initial commit

* adding conditional within shared partial

---------

Co-authored-by: Jason Wang <[email protected]>
  • Loading branch information
jasonwang7517 and Jason Wang authored Dec 16, 2024
1 parent ab8ba9c commit 145d254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/organizations/staff/custom_pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
label: "Hero Image",
class: 'form-control'%>
</div>
<small class="form-text text-muted"> Images must be .png or .jpeg under 2MB </small>
<small class="form-text text-muted"> Image must be .png or .jpeg under 2MB </small>
<div class="form-group mt-4">
<%= form.text_area :about, label: "About Us", placeholder: "About Us text", class: 'form-control' %>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
direct_upload: true,
class: "custom-attachments",
hide_label: true %>
<small class="form-text text-muted">
<% if attachment_type == 'files' %>
Files must be .pdf, .png, or .jpeg under 2MB.
<% elsif attachment_type == 'images' %>
Images must be .jpg or .png under 1MB.
<%end%>
</small>
</div>
<div class="ps-2">
<%= form.submit t("general.attach"), class: "btn btn-outline-success" %>
Expand Down

0 comments on commit 145d254

Please sign in to comment.