Dario Rekowski on RockPI da84873379 update transfer
2019-12-04 16:10:08 +00:00

55 lines
1.8 KiB
PHP

<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$this->assign('title', __('Überweisung'));
// In a View class
$this->loadHelper('Form', [
'templates' => 'ripple_horizontal_form',
]);
?>
<style type="text/css">
.showcase_content_area .invalid-feedback {
display:block;
}
</style>
<div class="row">
<div class="col-md-10 equel-grid">
<div class="grid">
<p class="grid-header">Überweisen</p>
<div class="grid-body">
<div class="item-wrapper">
<div class="row mb-3">
<div class="col-md-10 mx-auto">
<?= $this->Form->create($transferForm) ?>
<?= $this->Form->control('amount', ['label' => __('Betrag in GDD')]) ?>
<?= $this->Form->control('memo', ['label' => __('Verwendungszweck')]) ?>
<?= $this->Form->control('email', ['label' => __('Empfänger'), 'placeholder' => 'E-Mail']) ?>
<?= $this->Form->button(__('Transaktion(n) abschließen'), ['name' => 'next', 'class' => 'btn btn-sm btn-primary']) ?>
<?= $this->Form->button(__('Weitere Transaktion erstellen'), ['name' => 'add', 'class' => 'btn btn-sm']) ?>
<?= $this->Form->end() ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php // adding scripts vendor and core from ripple ui for validation effect ?>
<?= $this->Html->script(['core', 'vendor.addons']); ?>
<script type="text/javascript">
(function ($) {
'use strict';
$('textarea').maxlength({
alwaysShow: true,
warningClass: "badge mt-1 badge-success",
limitReachedClass: "badge mt-1 badge-danger"
});
})(jQuery);
</script>