{% if act == 'info' %}
    <div class="title2">{{lang.adm_tar_e_t_1}}</div>
    {% for mm in data %}
        <a href="?id={{mm.id}}&act=listcat" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{mm.name}} <span class=c>{{mm.id}}</span></a>
    {% endfor %}
    <a href="?" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.back}}</a>
{% elseif act == 'listcat' %}
    {% for mm in data %}
		<div class="title2">{{mm.namepack}}</div>
		<div class="mess">
		<span class="icon"><i class="fas fa-angle-right" ></i></span>{{lang.ord_list_t1}}: <b>{{mm.namepack}}</b> <br>
		<span class="icon"><i class="fas fa-angle-right" ></i></span>{{lang.ord_list_a1}}: <b>{{mm.preset}}</b> <br>
		<span class="icon"><i class="fas fa-angle-right" ></i></span>{{lang.ord_list_t8}}: <b>{{mm.bits}} {{lang.bits}}</b> <br>
		</div>
		<a href="?type={{mm.type}}&id={{mm.tid}}&act=edit" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.adm_tarifs_t3}} </a>
		<a href="?type={{mm.type}}&id={{mm.tid}}&act=delete" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.adm_tarifs_t2}} </a>
		<div style="margin-bottom:10px;"></div>
    {% endfor %}
		<a href="?act=create&id={{id}}" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.adm_tarifs_t7}}</a>
		<a href="?" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.back}}</a>
{% elseif act == 'delete' %}
    <div class="title">{{lang.adm_tar_d_t_1}}</div>
    <div class="mess"><form method="POST">
    {{lang.adm_tar_d_t_2}}:<br>
    {{data.namepack}}<br>
    <input type="submit" name="ok" value="{{lang.adm_tar_d_t_3}}"><br>
    </form></div>
{% elseif act == 'edit' %}
    <div class="title">{{lang.adm_tar_e_t_2}}</div>
    <div class=mess><form method="POST">
        {{lang.adm_tar_e_t_3}}:<br>
        <input type="text" name="name" value="{{data.namepack}}"><br>
        {{lang.adm_tar_e_t_5}}:<br>
        <input type="text" name="preset" value="{{data.preset}}"><br>
        <input type="checkbox" name="block_a_monthly_payment" value="1"  {% if data.block_a_monthly_payment == 1 %}checked{% endif %}> {{lang.orders_combo_type_p1}}<br>
        {{lang.orders_combo_type_t1}}:<br>
        <input type="text" name="bits" value="{{data.bits}}"><br>
        <input type="checkbox" name="eternal_service" value="1" {% if data.eternal_service == 1 %}checked{% endif %}> {{lang.orders_combo_type_p2}}<br>
        {{lang.orders_combo_type_t2}}:<br>
        <input type="text" name="bits_eternal" value="{{data.bits_eternal}}"><br>
        </div>
        <div style="margin-bottom:10px;"></div>
        <div class=title2>{{lang.adm_tar_c_t_1}}</div><div class=mess>
            {{lang.ord_index_ft2}} (MB):<br>
            <input type="text" name="disk" value="{{data.desk.disk}}"><br>
            {{lang.ord_index_ft3}}:<br>
            <input type="text" name="www" value="{{data.desk.www}}"><br>
            {{lang.ord_index_ft4}}:<br>
            <input type="text" name="ftp" value="{{data.desk.ftp}}"><br>
            {{lang.ord_index_ft5}}:<br>
            <input type="text" name="db" value="{{data.desk.db}}"><br>
            {{lang.ord_index_ft6}}:<br>
            <input type="text" name="domain" value="{{data.desk.domain}}"><br>
            {{lang.ord_index_ft7}}:<br>
            <input type="text" name="mail" value="{{data.desk.mail}}"><br>
            {{lang.ord_index_ft10}}:<br>
            <input type="text" name="vcpu" value="{{data.desk.vcpu}}"><br>
            {{lang.ord_index_ft11}}:<br>
            <input type="text" name="vram" value="{{data.desk.vram}}"><br>
            

        </div>
        <div style="margin-bottom:10px;"></div>
        <div class=title2>{{lang.adm_tar_c_t_2}}</div><div class=mess>
            {{lang.ord_index_ft9}}:<br>
            <input type="text" name="users" value="{{data.desk.users}}"><br>
            
        </div>
        <div style="margin-bottom:10px;"></div>
        <div class=title2>{{lang.adm_tar_c_t_3}}</div><div class=mess>
            {{lang.ord_index_ft12}}:<br>
            <input type="text" name="cpu" value="{{data.desk.cpu}}"><br>
            {{lang.ord_index_ft13}}:<br>
            <input type="text" name="ram" value="{{data.desk.ram}}"><br>
            {{lang.ord_index_ft14}}:<br>
            <input type="text" name="hdd" value="{{data.desk.hdd}}"><br>
            {{lang.ord_index_ft15}}:<br>
            <input type="text" name="eth" value="{{data.desk.eth}}"><br>
            {{lang.ord_index_ft16}}:<br>
            <input type="text" name="panel" value="{{data.desk.panel}}"><br>
            {{lang.ord_index_ft17}}:<br>
            <input type="text" name="os" value="{{data.desk.os}}"><br>
            {{lang.ord_index_ft18}}:<br>
            <input type="text" name="location" value="{{data.desk.location}}"><br>

            
        </div><div class="mess">
    <input type="submit" name="ok" value="{{lang.adm_tar_e_t_7}}"><br>

        
    </form></div>
    <a href="?" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.back}}</a>
{% elseif act == 'create' %}
    <div class="title">{{lang.adm_tarifs_t4}}</div>
    <div class=mess><form method="POST">
        {{lang.adm_tar_e_t_3}}:<br>
        <input type="text" name="name"><br>
        {{lang.adm_tar_e_t_5}}:<br>
        <input type="text" name="preset"><br>
        {{lang.adm_tar_e_t_6}}:<br>
        <input type="text" name="bits" value="0.00"><br>
        <input type="submit" name="ok" value="{{lang.adm_tar_e_t_9}}"><br>
        <a href="?" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.back}}</a>
    </div>
    <a href="?id={{id}}&act=listcat" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{lang.back}}</a>
{% else %}
    <div class=title>{{lang.adm_tarifs_t6}}</div>
    {% for mm in type_list %}
        <a href="?type={{mm.id}}&act=info" class="link"><span class="icon"><i class="fas fa-external-link-square-alt" style="width: 16px;"></i></span> {{mm.name}} <span class=c>{{mm.id}}</span></a>
    {% endfor %}
{% endif %}