first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'VisualEffect', 'stAdminGenerator', 'stDate', 'stPocztaPolska', 'stPrice');
|
||||
sfLoader::loadHelpers('stOrder', 'stOrder');
|
||||
?>
|
||||
|
||||
<?php st_include_partial('stOrder/header', array('title' => __('Przygotowanie paczki'), 'route' => 'stOrder/edit?id='.$order->getId(), 'related_object' => $order)) ?>
|
||||
<?php st_include_partial('stPocztaPolskaBackend/package_edit_menu', array('related_object' => $order, 'forward_parameters' => $forward_parameters)) ?>
|
||||
|
||||
<div id="sf_admin_content" class="admin-content-edit">
|
||||
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels));?>
|
||||
|
||||
<?php echo form_tag('@stPocztaPolskaBackend?action=packageEdit&order_id='.$order->getId(), array('id' => 'sf_admin_config_form', 'name' => 'sf_admin_config_form', 'class' => 'admin_form'));?>
|
||||
<fieldset>
|
||||
<div class="content">
|
||||
<?php echo st_admin_get_form_field('service_name', __('Usługa'), $serviceName, 'st_poczta_polska_uslugi', array('include_custom' => null, 'delivery_point_only' => isset($po))) ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="package-form-container" class="bs-mx-0">
|
||||
<?php echo st_get_component('stPocztaPolskaBackend', 'createPackageForm', array('package' => $package, 'order' => $order)) ?>
|
||||
</div>
|
||||
<div id="list_actions">
|
||||
<?php echo st_get_admin_actions_head();?>
|
||||
<?php echo st_get_admin_action('save', __('Spakuj'), null, array('name' => 'save'));?>
|
||||
<?php echo st_get_admin_actions_foot();?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(function($) {
|
||||
$('#service_name').change(function() {
|
||||
$(document).trigger('preloader', 'show');
|
||||
$.get("<?php echo st_url_for('@stPocztaPolskaBackend?action=ajaxUpdateCreatePackageForm') ?>", { order_id: <?php echo $order->getId() ?>, service: $(this).val() }, function(content) {
|
||||
$('#package-form-container').html(content);
|
||||
$(document).trigger('preloader', 'close');
|
||||
});
|
||||
});
|
||||
$('#list_actions').stickyBox();
|
||||
});
|
||||
</script>
|
||||
<?php st_include_partial('stOrder/footer') ?>
|
||||
Reference in New Issue
Block a user