Skip to content

Commit

Permalink
Use TextareaField for BankAccountDetails
Browse files Browse the repository at this point in the history
Minor update to docs
  • Loading branch information
AntonyThorpe committed Nov 17, 2021
1 parent acd5157 commit 6cc00cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<% if $TotalOutstanding %>
<% if $Payments %>
<% loop $Payments.last %>
<% if $GatewayTitle == "Bank Deposit" %>
<% if $GatewayTitle == "Bank Deposit" %> <!-- manual gateway title in language file e.g. app/lang/en.yml -->
<% include SilverShop\Model\Order_BankDeposit %>
<% end_if %>
<% end_loop %>
Expand Down
3 changes: 2 additions & 1 deletion src/ShopConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace AntonyThorpe\SilvershopBankDeposit;

use SilverStripe\Forms\TextareaField;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\Forms\FieldList;
Expand All @@ -25,7 +26,7 @@ public function updateCMSFields(FieldList $fields)
->setDescription(_t("SilverShop\\Extension\\ShopConfigExtension.BankAccountPaymentMethodMessageDescription", "Message to appear in the Payment Method section of Checkout Page")),
Textfield::create("BankAccountNumber", _t("SilverShop\\Extension\\ShopConfigExtension.BankAccountNumber", "Bank Account Number"))
->setDescription(_t("SilverShop\\Extension\\ShopConfigExtension.BankAccountNumberDescription", "e.g XX-XXXX-XXXXXXX-XX")),
Textfield::create("BankAccountDetails", _t("SilverShop\\Extension\\ShopConfigExtension.BankAccountDetails", "Bank Account Details"))
TextareaField::create("BankAccountDetails", _t("SilverShop\\Extension\\ShopConfigExtension.BankAccountDetails", "Bank Account Details"))
->setDescription(_t("SilverShop\\Extension\\ShopConfigExtension.BankAccountDetailsDescription", "Account Name, Bank Name, Branch, Branch Address")),
HtmlEditorField::create("BankAccountInvoiceMessage", _t("SilverShop\\Extension\\ShopConfigExtension.BankAccountInvoiceMessage", "Bank Account Order/Invoice Message"))
->setDescription(_t("SilverShop\\Extension\\ShopConfigExtension.BankAccountInvoiceMessageDescription", "Message to appear on the order/invoice"))
Expand Down

0 comments on commit 6cc00cc

Please sign in to comment.