From cf0100a16160869ab615bca61eb2b9575afb6702 Mon Sep 17 00:00:00 2001 From: AlexPads <37447608+AlexPads@users.noreply.github.com> Date: Wed, 19 Apr 2023 02:35:42 -0400 Subject: [PATCH 1/2] Fix Namesilo Client DNS Edits --- views/default/tab_client_dnsrecords.pdt | 153 ++++++++++++++---------- 1 file changed, 91 insertions(+), 62 deletions(-) diff --git a/views/default/tab_client_dnsrecords.pdt b/views/default/tab_client_dnsrecords.pdt index 78bb28d..56b1ce4 100644 --- a/views/default/tab_client_dnsrecords.pdt +++ b/views/default/tab_client_dnsrecords.pdt @@ -1,75 +1,104 @@ -
-

_('Namesilo.tab_dnsrecord.title_list');?>

-

_('Namesilo.tab_dnsrecord.help_text_1');?>

- -
- - - - - - - - - - +
+
+

_('Namesilo.tab_dnsrecord.title_list');?>

+
+

_('Namesilo.tab_dnsrecord.help_text_1');?>

+
_('Namesilo.dnsrecord.record_type');?>_('Namesilo.dnsrecord.host');?>_('Namesilo.dnsrecord.value');?>_('Namesilo.dnsrecord.ttl');?>_('Namesilo.dnsrecord.field_delete');?>
+ + + + + + + + + + + records) > 0 && isset($vars->records)) { + $i = 0; + foreach ($vars->records as $record) { + ?> + > + + + + + - records) > 0 && isset($vars->records)) { - foreach ($vars->records as $record) { - ?> - - - - - - + + + +
_('Namesilo.dnsrecord.record_type');?>_('Namesilo.dnsrecord.host');?>_('Namesilo.dnsrecord.value');?>_('Namesilo.dnsrecord.ttl');?>_('Namesilo.dnsrecord.field_delete');?>
+ Form->create( + $this->base_uri . 'services/manage/' . (isset($service_id) ? $service_id : null) . '/tabClientDnsRecords/' + ); + $this->Form->fieldHidden('record_id', (isset($record['record_id']) ? $record['record_id'] : null)); -
- Form->create( - $this->base_uri . 'services/manage/' . (isset($service_id) ? $service_id : null) . '/tabClientDnsRecords/' - ); - $this->Form->fieldHidden('record_id', (isset($record['record_id']) ? $record['record_id'] : null)); + $button_attributes = [ + 'class' => 'btn btn-sm btn-danger', + 'value' => 'deleteDnsRecord', + 'type' => 'submit', + ]; - $button_attributes = [ - 'class' => 'btn btn-sm btn-danger', - 'value' => 'deleteDnsRecord', - 'type' => 'submit', - ]; + $this->Form->fieldButton( + 'action', + $this->_('Namesilo.tab_dnssec.field_delete', true), + $button_attributes + ); - $this->Form->fieldButton( - 'action', - $this->_('Namesilo.tab_dnssec.field_delete', true), - $button_attributes - ); + $this->Form->end(); + ?> +
- $this->Form->end(); - ?> - - - - - +
+

_('Namesilo.tab_dnsrecord.title_add');?>

- -

_('Namesilo.tab_dnsrecord.title_add');?>

Form->create( $this->base_uri . 'services/manage/' . (isset($service_id) ? $service_id : null) . '/tabClientDnsRecords/' ); ?> -
- - - - -
- + + + + + + + + + + + + + + + + + + + + + +
_('Namesilo.dnsrecord.record_type');?>_('Namesilo.dnsrecord.host');?>_('Namesilo.dnsrecord.value');?>_('Namesilo.dnsrecord.ttl');?>
Form->fieldSelect('record_type', $vars->selects['record_type']['options']);?>Form->fieldText('host');?>Form->fieldText('value');?>Form->fieldText('ttl', 7207);?> + 'btn btn-light float-right', + 'value' => 'addDnsRecord', + 'type' => 'submit', + ]; + + $this->Form->fieldButton( + 'action', + $this->_('Namesilo.tab_dnsrecord.field_add', true), + $button_attributes + ); + ?> +
Form->end(); ?> From 30821fe93f0129da7b46c90c0051996c309b3d7f Mon Sep 17 00:00:00 2001 From: AlexPads <37447608+AlexPads@users.noreply.github.com> Date: Wed, 19 Apr 2023 02:41:14 -0400 Subject: [PATCH 2/2] Bump Version --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index d73ce7d..d895cb1 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "version": "3.1.0", + "version": "3.1.1", "type": "registrar", "name": "Namesilo.name", "description": "Namesilo.description",