mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 19:39:23 +02:00
Basic button
This commit is contained in:
parent
2891391382
commit
b3401d8bfc
2 changed files with 3 additions and 1 deletions
|
@ -1134,7 +1134,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
"_edit_domain": self.do_edit_domain,
|
||||
"_delete_domain": self.do_delete_domain,
|
||||
"_get_status": self.do_get_status,
|
||||
"_extend_expiration_date": self.do_extend_expiration_date
|
||||
"_extend_expiration_date": self.do_extend_expiration_date,
|
||||
}
|
||||
|
||||
# Check which action button was pressed and call the corresponding function
|
||||
|
@ -1152,6 +1152,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
# We do not want to accidentally delete records.
|
||||
self.message_user(request, "Object is not of type Domain", messages.ERROR)
|
||||
return None
|
||||
|
||||
try:
|
||||
obj.renew_domain(date_to_extend=date.today())
|
||||
except Exception as err:
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<div class="submit-row">
|
||||
<input id="manageDomainSubmitButton" type="submit" value="Manage domain" name="_edit_domain">
|
||||
<input type="submit" value="Get registry status" name="_get_status">
|
||||
<input type="submit" value="Extend expiration date" name="_extend_expiration_date">
|
||||
<div class="spacer"></div>
|
||||
{% if original.state == original.State.READY %}
|
||||
<input type="submit" value="Place hold" name="_place_client_hold" class="custom-link-button">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue