<?xml version="1.0" encoding="utf-8" ?>
<c:Screen xmlns:c="BitMobile.Controls" xmlns:s="BitMobile.ValueStack" StyleSheet="Order_Pay.css">

	<s:Push Id="sum" Value="$GetOrderSUM()"></s:Push>
	<s:Push Id="BackName" Value="$GetBackName()"></s:Push>

	<c:SwipeHorizontalLayout Id="swipe_layout" Index="1">

		<c:DockLayout Id="VLayout" CssClass="bodyPay">

			<c:DockLayout CssClass="top_navigatorOr">
				<c:DockLayout CssClass="btn_back" OnEvent="Back" OnClickAction="$GoBackTo()">
					<c:Image />
					<c:TextView Text="$BackName" />
				</c:DockLayout>
				<c:DockLayout CssClass="btn_space">
				</c:DockLayout>
				<c:HorizontalLayout>
					<c:TextView Text="@Title" />
				</c:HorizontalLayout>
			</c:DockLayout>


			<c:HorizontalLayout CssClass="bottom_btn" OnEvent="OrderPay" OnClickAction="$ScreenChek()">
				<c:TextView Text="#Print#"></c:TextView>
			</c:HorizontalLayout>
			<c:HorizontalLine CssClass="b_line" />



			<c:HorizontalLayout CssClass="gridOR">
				<c:VerticalLayout>
					<c:DockLayout>
						<c:TextView Text="{$sum} #currency#" />
					</c:DockLayout>
					<c:DockLayout CssClass="docLay">
						<c:TextView Id="SumMes" Text="#NoPay#" />
					</c:DockLayout>
				</c:VerticalLayout>
			</c:HorizontalLayout>

			<c:HorizontalLayout CssClass="spaceOR"/>

			<c:HorizontalLayout CssClass="caption_grid">
				<c:TextView Text="@descriptionTitle" />
			</c:HorizontalLayout>
			<c:HorizontalLine />
		<c:ScrollView Id="grScrollView">
			<s:Iterator Id="payments" Value="$GetPayments()" Status="statusCountCh">
				<s:Push Id="payNumber" Value="{$statusCountCh.Index}"></s:Push>
				<!-- <c:HorizontalLayout CssClass="grid" OnClickAction="$DoAction(Review,$order.Outlet,null,$order.Id)"> -->
				<c:HorizontalLayout CssClass="grid">
					<c:VerticalLayout>
						<c:TextView Text="$payments.Description" CssClass="main_rowPay"></c:TextView>
							<c:HorizontalLayout CssClass="HayLay">
									<c:EditText Id="control{$payNumber}" OnLostFocus="$ChangeTextFloat()" Placeholder="—" OnChange="$GetSUMPay()" Keyboard="numeric" CssClass="description_rowPay" Length="140"></c:EditText>
									<c:TextView Text="₽" CssClass="SymbolPay"></c:TextView>
							</c:HorizontalLayout>
					</c:VerticalLayout>
					<c:Image />
				</c:HorizontalLayout>
				<c:HorizontalLine />

			</s:Iterator>
		</c:ScrollView>

		</c:DockLayout>

	</c:SwipeHorizontalLayout>

</c:Screen>
