diff --git a/views/elements/add_shipment.ctp b/views/elements/add_shipment.ctp new file mode 100644 index 00000000..ad189026 --- /dev/null +++ b/views/elements/add_shipment.ctp @@ -0,0 +1,91 @@ +create('Shipment', array('default'=>false));?> +input('user_id', array('type'=>'hidden', 'value'=>$currentuser['User']['id'])); +echo $form->input('type', array('options'=>$shipmentType, 'id'=>'shipmentType')); + +?> +
+ input('date_arrived_display', array('label'=>'Date Arrived', 'id'=>'date_arrived_display')); + echo $form->input('date_arrived', array('type'=>'hidden', 'id'=>'date_arrived')); + + ?> +
+ +
+input('date_dispatched_display', array('label'=>'Date dispatched', 'id'=>'date_dispatched_display')); + echo $form->input('date_dispatched', array('type'=>'hidden', 'id'=>'date_dispatched')); +?> +
+ + +
+ input('Principle', array('name'=>'PrincipleSelect', 'type'=>'select', 'multiple'=>false)); ?> + + + +
+ +
+ input('purchase_order', array('id'=>'purchase_order_autocomplete'));?> + + +
+ +
+ input('job', array('id'=>'job_autocomplete')); + ?> + + + + +
+ +
+ input('customer', array('id'=>'customer_autocomplete', 'label'=>'Customer'));?> + input('customer_id', array('type'=>'hidden', 'id'=>'customer_id'));?> +
+ +
+ Shipping Address: +
+
+ +
+ + +
+ input('freight_forwarder_id');?> +
+ +
+ input('airway_bill');?> +
+ +
+ +
+ +
+ input('comments');?> + +
+ + +end();?> + + +
+ input('Box.0.length', array('label'=>'Length (cm)', 'div'=>'length'));?> + input('Box.0.width', array('label'=>'Width (cm)', 'div'=>'width'));?> + input('Box.0.height', array('label'=>'Height (cm)', 'div'=>'height'));?> + input('Box.0.weight', array('label'=>'Weight (kg)', 'div'=>'weight'));?> +
\ No newline at end of file