Fix SO message and fix search text

This commit is contained in:
zandercymatics 2024-09-26 14:12:20 -06:00
parent 39875a73f0
commit 6aa7546c2e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 3 additions and 3 deletions

View file

@ -2957,7 +2957,7 @@ class PortfolioAdmin(ListHeaderAdmin):
list_display = ("organization_name", "organization_type", "federal_type", "creator")
search_fields = ["organization_name"]
search_help_text = "Search by portfolio organization."
search_help_text = "Search by organization name."
readonly_fields = [
# This is the created_at field
"created_on",

View file

@ -978,7 +978,7 @@ function initializeWidgetOnList(list, parentId) {
$seniorOfficial.val("").trigger("change");
}else {
// Show the "create one now" text if this field is none in readonly mode.
readonlySeniorOfficial.innerHTML = '<a href="admin/registrar/seniorofficial/add/">No senior official has been found. Create one now.</a>'
readonlySeniorOfficial.innerHTML = '<a href="admin/registrar/seniorofficial/add/">No senior official found. Create one now.</a>'
}
console.warn("Record not found: " + data.error);
}else {

View file

@ -27,7 +27,7 @@
{% else %}
{% url "admin:registrar_seniorofficial_add" as url %}
<div class="readonly">
<a href={{ url }}>No senior official has been found. Create one now.</a>
<a href={{ url }}>No senior official found. Create one now.</a>
</div>
{% endif %}
{% else %}