<?php use luya\admin\Module; use luya\admin\ngrest\aw\CallbackFormWidget; /** * @var $this \luya\admin\ngrest\base\ActiveWindowView * @var $form luya\admin\ngrest\aw\CallbackFormWidget */ ?> <div> <p><?php echo Module::t('aws_changepassword_info'); ?> </p> <?php $form = CallbackFormWidget::begin(['callback' => 'save', 'buttonValue' => Module::t('button_save')]); ?> <?php echo $form->field('newpass', Module::t('aws_changepassword_new_pass'))->passwordInput(); ?> <?php echo $form->field('newpasswd', Module::t('aws_changepassword_new_pass_retry'))->passwordInput(); ?> <?php $form::end(); ?> </div>
<?php use luya\admin\ngrest\aw\CallbackFormWidget; ?> <h1>Maps</h1> <?php $form = CallbackFormWidget::begin(['callback' => 'get-coordinates', 'buttonValue' => 'Verify', 'angularCallbackFunction' => 'function($response) { initMap($response.cords); };']); ?> <?php echo $form->field('address', 'Adresse:'); $form::end(); ?> <div id="map" style="height:800px; width:100%;"></div> <script> function initMap(cords) { var map = new google.maps.Map(document.getElementById('map'), { zoom: 16, center: cords });