mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Fix SO message and fix search text
This commit is contained in:
parent
39875a73f0
commit
6aa7546c2e
3 changed files with 3 additions and 3 deletions
|
@ -2957,7 +2957,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
|
|
||||||
list_display = ("organization_name", "organization_type", "federal_type", "creator")
|
list_display = ("organization_name", "organization_type", "federal_type", "creator")
|
||||||
search_fields = ["organization_name"]
|
search_fields = ["organization_name"]
|
||||||
search_help_text = "Search by portfolio organization."
|
search_help_text = "Search by organization name."
|
||||||
readonly_fields = [
|
readonly_fields = [
|
||||||
# This is the created_at field
|
# This is the created_at field
|
||||||
"created_on",
|
"created_on",
|
||||||
|
|
|
@ -978,7 +978,7 @@ function initializeWidgetOnList(list, parentId) {
|
||||||
$seniorOfficial.val("").trigger("change");
|
$seniorOfficial.val("").trigger("change");
|
||||||
}else {
|
}else {
|
||||||
// Show the "create one now" text if this field is none in readonly mode.
|
// 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);
|
console.warn("Record not found: " + data.error);
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% url "admin:registrar_seniorofficial_add" as url %}
|
{% url "admin:registrar_seniorofficial_add" as url %}
|
||||||
<div class="readonly">
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue