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(); ?>