
<scenario begin="input_payer">
    
    <!--Экран выбора метода логина-->
    <screen type="Selector" decor="language" id="language">
        <fields>
            <selector-field id="locale" title="Locale">
                <items type="static">
                    <item title="Arabic" image="wu_lang_ar.png" value="ar"/>
                    <item title="English" image="wu_lang_en.png" value="en"/>
                    <item title="Russian" image="wu_lang_ru.png" value="ru"/>
                    <item title="Chinese" image="wu_lang_zh.png" value="zh"/>
                </items>    
            </selector-field>
        </fields>
        <actions>            
            <action type="Next" title=""/>                
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>
    
    <!--Экран логина-->
    <screen type="Letter"  id="login" decor="simple">
        <fields>
            <text-field id="login" title="Enter your login ID" max-len="10" keyboard="Digital">
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <formatter type="regex">
                    <rules default="***-***-****"/>
                </formatter>
                <validator type="regex">
                    <rules>
                        <rule regex="^[56]\d{9}$"/>
                    </rules>
                </validator>
            </text-field>
            <text-field id="pin" title="Enter your PIN" max-len="4" keyboard="Digital" secure="true"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^\d{4}$"/>
                    </rules>
                </validator>
            </text-field>
            <text-field id="emirates-id" title="&lt;html&gt;Enter your last 2 Digits&lt;br&gt; of your Emirates ID" max-len="2" keyboard="Digital"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^\d{2}$"/>
                    </rules>
                </validator>
            </text-field>
        </fields>
        <actions>
            <action type="Next" title=""/>
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>
    
    <!--Экран выбора метода логина-->
    <screen type="Selector" decor="purpose" id="destination">
        <fields>
            <selector-field id="purpose" title="">
                <items type="static">
                    <item value="Family Support" title="&lt;html&gt;&lt;b&gt;Family&lt;br&gt;Support" image="purpose_family.png"/>
                    <item value="Regular Labour Transfers (Expatriates)" title="&lt;html&gt;&lt;b&gt;Regular Labour Transfers&lt;/b&gt; (Expatriates)" image="purpose_labour.png"/>
                    <item value="Education" title="&lt;html&gt;&lt;b&gt;Education" image="purpose_education.png"/>
                    <item value="Other Personal Needs" title="&lt;html&gt;&lt;b&gt;Other Personal Needs"/>
                </items>    
            </selector-field>
        </fields>
        <actions>            
            <action type="Next" title=""/>                
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>    	

    <!--Экран логина-->
    <screen type="Letter"  id="calculate" decor="simple">
        <fields>
            <text-field id="src-amount" title="Amount in AED:" max-len="6" keyboard="Digital">
                <help>
                   <![CDATA[<html>Amount is Fee included and lowest denomination is AED 5]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^(\d{1,5}[05])|[5]$"/>
                    </rules>
                </validator>
            </text-field>
            <numeric-field id="dst-amount" title="Destination Amount:" format="6.2">
                <verify>
                    <range begin="1" end="999999"/>
                </verify>                
            </numeric-field>
            <text-field id="promo-code" title="Promo Code:" max-len="10" keyboard="Digital"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^\d{0,10}$"/>
                    </rules>
                </validator>
            </text-field>
        </fields>
        <actions>
            <action type="Next" title=""/>
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>
    
     <!--Экран логина-->
    <screen type="Letter"  id="register" decor="simple">
        <fields>
           <text-field id="first-name" title="First Name" max-len="10" keyboard="LetterEn"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^.{2,30}$"/>
                    </rules>
                </validator>
            </text-field>
            <text-field id="last-name" title="Last Name" max-len="10" keyboard="LetterEn"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^.{2,30}$"/>
                    </rules>
                </validator>
            </text-field>
            <text-field id="mobile-number" title="Mobile Number" max-len="10" keyboard="Digital"> 
                <help>
            	    <![CDATA[
            		<html>
            	    ]]>
                </help>
                <validator type="regex">
                    <rules>
                        <rule regex="^\d{0,10}$"/>
                    </rules>
                </validator>
            </text-field>
        </fields>
        <actions>
            <action type="Next" title=""/>
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>

    <!--Экран выбора метода логина-->
    <screen type="Selector" decor="agent" id="agent-choose">
        <fields>
            <selector-field id="locale" title="Locale">
                <items type="static">
                    <item title="AL FORDAN" image="agent_alfardanexchange.png" value="AL FORDAN"/>
                    <item title="SHARAF" image="agent_sharafexchange.png" value="SHARAF"/>                    
                </items>    
            </selector-field>
        </fields>
        <actions>            
            <action type="Next" title=""/>                
            <action type="Prev" title=""/>
            <action type="Exit" title=""/>
        </actions>
    </screen>
    

</scenario>
