mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
Always show assign to me button
This commit is contained in:
parent
ae42c5c82e
commit
a2b4665a01
2 changed files with 1 additions and 7 deletions
|
@ -169,12 +169,6 @@ function openInNewTab(el, removeAttribute = false){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Listen to any change events, and hide the parent container if investigator has a value.
|
|
||||||
selector.on('change', function() {
|
|
||||||
// The parent container has display type flex.
|
|
||||||
assignSelfButton.parentElement.style.display = this.value ? "none" : "flex";
|
|
||||||
});
|
|
||||||
|
|
||||||
})();
|
})();
|
||||||
/** An IIFE for pages in DjangoAdmin that use a clipboard button
|
/** An IIFE for pages in DjangoAdmin that use a clipboard button
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -174,7 +174,7 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% elif field.field.name == "investigator" and not field.is_readonly and not original_object.investigator %}
|
{% elif field.field.name == "investigator" and not field.is_readonly %}
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<label aria-label="Assign yourself as the investigator"></label>
|
<label aria-label="Assign yourself as the investigator"></label>
|
||||||
<button id="investigator__assign_self"
|
<button id="investigator__assign_self"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue