-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclient_accounts_add.pdt
61 lines (55 loc) · 2.33 KB
/
client_accounts_add.pdt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<div class="col-md-3">
<?php echo ($navigation ?? null); ?>
</div>
<div class="col-md-9">
<div class="row">
<div class="col-md-12">
<?php
echo (isset($message) ? $message : null);
$this->WidgetClient->clear();
$this->WidgetClient->create($this->_('ClientAccounts.add.boxtitle_create', true));
$this->WidgetClient->startBody();
$this->Form->create(null, ['class' => 'disable-on-submit']);
if ((isset($step) ? $step : 1) == 1) {
?>
<h4><?php $this->_('ClientAccounts.add.heading_account_type');?></h4>
<div class="radio">
<label>
<?php
$this->Form->fieldRadio('payment_account_type', 'cc', ((isset($vars->account_type) ? $vars->account_type : 'cc') == 'cc'));
$this->_('ClientAccounts.add.field_cc_type');
?>
</label>
</div>
<div class="radio">
<label>
<?php
$this->Form->fieldRadio('payment_account_type', 'ach', ((isset($vars->account_type) ? $vars->account_type : null) == 'ach'));
$this->_('ClientAccounts.add.field_ach_type')
?>
</label>
</div>
<button type="submit" class="btn btn-light float-right">
<i class="fas fa-arrow-circle-right"></i> <?php $this->_('ClientAccounts.add.field_nextsubmit');?>
</button>
<?php
} else {
// Set the account type
$this->Form->fieldHidden('account_type', (isset($vars->account_type) ? $vars->account_type : null), ['id' => 'account_type']);
// Set partials
echo (isset($contact_info) ? $contact_info : null);
?>
<hr />
<?php echo (isset($account_info) ? $account_info : null);?>
<button type="submit" class="btn btn-light float-right">
<i class="fas fa-plus-circle"></i> <?php $this->_('ClientAccounts.add.field_accountsubmit');?>
</button>
<?php
}
$this->Form->end();
$this->WidgetClient->endBody();
$this->WidgetClient->end();
?>
</div>
</div>
</div>