templates/order/order.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.     <link  rel="stylesheet" href="{{ asset('build/js/bower_components/ng-tags-input/ng-tags-input.css') }}" />
  4.     <link  rel="stylesheet" href="{{ asset('build/js/bower_components/ng-tags-input/ng-tags-input.bootstrap.css') }}" />
  5.     {# <link  rel="stylesheet" href="{{ asset('build/js/bower_components/sweetalert/dist/sweetalert.css') }}" /> #}
  6.     <style type="text/css">
  7.         body {
  8.             background-color: #f0f0f0;
  9.         }
  10.         .navbar-area {
  11.             background: var(--mainColor) !important;
  12.             position: unset;
  13.         }
  14.         .page-title-area {
  15.             height: auto;
  16.             padding-top: 50px;
  17.         }
  18.         .with-infos-bar .page-title-area {
  19.             padding-top: 110px;
  20.         }
  21.         .select__offer {
  22.             background: var(--whiteColor);
  23.             border: 1px solid #dededf;
  24.             border-radius: 10px;
  25.             box-shadow: 0 2px 27px 3px rgba(0, 0, 0, 0.06);
  26.         }
  27.         .select__offer h2 {
  28.             border-bottom: 1px solid #eee;
  29.             color: #3e396a;
  30.             font-size: 36px;
  31.             font-weight: 600;
  32.             padding-bottom: 20px;
  33.         }
  34.         .select__offer .package-container {
  35.             position: relative;
  36.         }
  37.         .select__offer .package-container i {
  38.             position: absolute;
  39.             top: 0;
  40.             bottom: 0;
  41.             margin: auto;
  42.             height: 20px;
  43.             left: 15px;
  44.         }
  45.         .select__offer .img-profile-container,
  46.         .select__offer .summary,
  47.         .select__offer .btn-change-action {
  48.             align-items: stretch;
  49.             justify-content: center;
  50.             display: flex;
  51.             flex-direction: column;
  52.         }
  53.         .select__offer .img-profile-container .img-profile-preview {
  54.             background: #dedede;
  55.             border-radius: 100px;
  56.             flex-shrink: 0;
  57.             height: 80px;
  58.             width: 80px;
  59.         }
  60.         .select__offer .summary {
  61.             flex: auto;
  62.         }
  63.         .select__offer .summary .username {
  64.             font-size: 20px;
  65.             line-height: 20px;
  66.             font-weight: 700;
  67.         }
  68.         .select__offer .medias__list {
  69.             display: grid;
  70.             gap: 10px 10px;
  71.             grid-template-columns: auto auto auto auto;
  72.             grid-template-rows: auto;
  73.             justify-items: stretch;
  74.         }
  75.         .select__offer .medias__list .medias__list-item {
  76.             background-color: #dedede;
  77.             border: 1px solid #e0e0e0;
  78.             border-radius: 8px;
  79.             cursor: pointer;
  80.             padding-top: 100%;
  81.             position: relative;
  82.             user-select: none;
  83.             width: 100%;
  84.             background-size: cover;
  85.             background-repeat: no-repeat;
  86.             position: relative;
  87.             overflow: hidden;
  88.         }
  89.         .select__offer .medias__list .medias__list-item .medias__list-item-selected {
  90.             position: absolute;
  91.             left: 0;
  92.             top: 0;
  93.             right: 0;
  94.             bottom: 0;
  95.             background-color: #000000a6;
  96.             display: flex;
  97.             align-items: center;
  98.             justify-content: center;
  99.             color: #FFF;
  100.             font-weight: bold;
  101.             font-size: 24px;
  102.         }
  103.         /* 
  104.             Have any Dribbble invite?
  105.             Why don't you send me one,
  106.             I'll appreciate it and will thank you.
  107.             https://dribbble.com/ionelcucu
  108.             https://github.com/ionelcucu
  109.             https://www.behance.net/ionelcucu
  110.             http://www.cucuionel.com
  111.         */
  112.         button {
  113.             position: relative;
  114.             outline: none;
  115.             cursor: pointer;
  116.             transition: background 0.2s ease-in-out;
  117.         }
  118.         button:not([disabled]):hover {
  119.             background: #2ecc71;
  120.         }
  121.         button[disabled] {
  122.             background: #3c7d57;
  123.             color: #ffffff3b;
  124.             cursor: default;
  125.         }
  126.         button:after {
  127.             content: '';
  128.             display: block;
  129.             position: absolute;
  130.             opacity: 0;
  131.             width: 30px;
  132.             height: 30px;
  133.             top: 0;
  134.             bottom: 0;
  135.             margin: auto;
  136.             border: 5px solid rgba(255, 255, 255, 0.3);
  137.             border-right-color: #fff;
  138.             border-radius: 50%;
  139.             -webkit-transition-property: -webkit-transform;
  140.             -webkit-transition-duration: 0.5s;
  141.             -moz-transition-property: -moz-transform;
  142.             -moz-transition-duration: 0.5s;
  143.             -webkit-animation-name: rotate;
  144.             -webkit-animation-duration: 0.5s;
  145.             -webkit-animation-iteration-count: infinite;
  146.             -webkit-animation-timing-function: linear;
  147.             -moz-animation-name: rotate;
  148.             -moz-animation-duration: 0.5s;
  149.             -moz-animation-iteration-count: infinite;
  150.             -moz-animation-timing-function: linear;
  151.             transition: all 0.2s linear;
  152.             -webkit-transform: scale(2);
  153.             transform: scale(2);
  154.         }
  155.         button.loading:after {
  156.             opacity: 1;
  157.             left: 15px;
  158.         }
  159.         @-webkit-keyframes rotate {
  160.             from {
  161.                 -webkit-transform: rotate(0deg);
  162.             }
  163.             to {
  164.                 -webkit-transform: rotate(360deg);
  165.             }
  166.         }
  167.         @-moz-keyframes rotate {
  168.             from {
  169.                 -moz-transform: rotate(0deg);
  170.             }
  171.             to {
  172.                 -moz-transform: rotate(360deg);
  173.             }
  174.         }
  175.         * {
  176.             -webkit-box-sizing: border-box;
  177.             -moz-box-sizing: border-box;
  178.             box-sizing: border-box;
  179.         }
  180.         body {
  181.             background: #ededed;
  182.             font-family: Arial, sans-serif;
  183.         }
  184.         a {
  185.             color: #7f8c8d;
  186.         }
  187.         .form-container {
  188.             padding: 50px 40px;
  189.             background: #fff;
  190.             width: 400px;
  191.             text-align: center;
  192.             -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  193.             -moz-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  194.             box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  195.             margin: 0 auto;
  196.             -webkit-transition: all 1s linear;
  197.             -moz-transition: all 1s linear;
  198.             transition: all 1s linear;
  199.             position: absolute;
  200.             top: 50%;
  201.             left: 50%;
  202.             transform: translate(-50%, -50%);
  203.         }
  204.         .form-container:after {
  205.             content: "";
  206.             display: block;
  207.             position: absolute;
  208.             top: 0;
  209.             left: 0;
  210.             width: 100px;
  211.             height: 10px;
  212.             background: #e74c3c;
  213.             -webkit-box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
  214.             -moz-box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
  215.             box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
  216.         }
  217.         .done .login-form {
  218.             display: none;
  219.         }
  220.         .form-container .thank-msg {
  221.             display: none;
  222.         }
  223.         .done .thank-msg {
  224.             display: block;
  225.         }
  226.         .form-container h3 {
  227.             font-size: 32px;
  228.             text-align: center;
  229.             color: #666;
  230.             margin: 0 0 30px;
  231.         }
  232.         .form-container .login-form > div {
  233.             margin-bottom: 20px;
  234.         }
  235.         .form-container .login-form > div > input {
  236.             border: 2px solid #dedede;
  237.             padding: 20px;
  238.             font-size: 20px;
  239.             min-width: 300px;
  240.             color: #666;
  241.             -webkit-border-radius: 3px;
  242.             -moz-border-radius: 3px;
  243.             border-radius: 3px;
  244.             outline: none;
  245.             -webkit-transition: border-color 0.2s linear;
  246.             -moz-transition: border-color 0.2s linear;
  247.             transition: border-color 0.2s linear;
  248.         }
  249.         .form-container .login-form > div > input:focus {
  250.             border-color: #A5A5A5;
  251.         }
  252.         .page-container {
  253.             min-height: 500px;
  254.         }
  255.         .credits {
  256.             text-align: center;
  257.             color: #999;
  258.             padding: 10px;
  259.         }
  260.         tags-input .tags {
  261.             padding: 5px 10px;
  262.             background-color: #e3f1ff;
  263.             border: 1px solid #b5cdff;
  264.             border-radius: 0;
  265.             box-shadow: none;
  266.         }
  267.         tags-input .tags .tag-list {
  268.             display: flex;
  269.             flex-direction: column;
  270.         }
  271.         tags-input .tags .tag-item {
  272.             height: auto;
  273.             padding: 4px;
  274.             position: relative;
  275.         }
  276.         tags-input .tags .tag-item .remove-button {
  277.             height: max-content;
  278.             border: none;
  279.             color: #585858;
  280.             cursor: pointer;
  281.             font: 700 16px Arial, sans-serif;
  282.             margin: 0 0 0 5px;
  283.             padding: 0;
  284.             vertical-align: middle;
  285.             position: absolute;
  286.             right: 10px;
  287.             top: 0;
  288.             bottom: 0;
  289.             margin: auto;
  290.         }
  291.         tags-input .tags .input {
  292.             background-color: #e3f1ff;
  293.             border: none;
  294.             border-radius: 0;
  295.         }
  296.         
  297.     </style>
  298.     <div class="loader-container" id="loading-indicator-container" style="display: none">
  299.         <div class="lw-container">
  300.             <p class="text">please wait as we direct you to the payment page</p>
  301.             <div class="c-progress-bar">
  302.                 <svg height="8" width="400">
  303.                 <path id="path" d="M4 4 L394 4"></path>
  304.                 <path id="loader-line" d="M4 4 L394 4"></path>
  305.                 </svg>
  306.             </div>
  307.             <!-- <p class="counter" id="counter-txt">6</p> -->
  308.             <div class="btn-container">
  309.                 <button class="btn" style="display: none" id="inc-btn">INCREASE</button>
  310.                 <button class="btn" style="display: none" id="dec-btn">DECREASE</button>
  311.                 <button class="btn" style="display: none" id="complete-btn">COMPLETE</button>
  312.                 <button class="btn" style="display: none" id="reset-btn">RESET</button>
  313.                 <button class="btn" style="display: none" id="load-btn">LOAD</button>
  314.             </div>
  315.         </div>
  316.     </div>
  317.     <!-- Start Page Title Area -->
  318.     <div class="page-title-area mt-5" ng-app="orderApp">
  319.         
  320.         <div class="d-table">
  321.             <div class="d-table-cell">
  322.                 <div class="container">
  323.                     {% include 'order/partials/'~(current_sub_service.ProcessType | lower)~'.html.twig' %}
  324.                 </div>
  325.             </div>
  326.         </div>
  327.     </div>
  328.     <!-- End Page Title Area -->
  329. {% endblock %}
  330. {% block javascripts %}
  331.     {{ parent() }}
  332.     <script type="text/javascript">
  333.         var current_offer = {{ current_offer | json_encode() | raw }};
  334.         var current_sub_service = {{ current_sub_service | json_encode() | raw }};
  335.         // Instagram api urls
  336.         var load_ig_media_url = "{{ path('load_instagram_posts')|escape('js') }}";
  337.         var load_ig_profile_url = "{{ path('load_instagram_profile')|escape('js') }}";
  338.         var load_ig_reel_url = "{{ path('load_instagram_reel')|escape('js') }}";
  339.         // TikTok api urls
  340.         var load_tiktok_profile_url = "{{ path('load_tiktok_profile')|escape('js') }}";
  341.         var load_tiktok_media_url = "{{ path('load_tiktok_posts')|escape('js') }}";
  342.         // Order api urls 
  343.         var add_order_api_url = "{{ path('add_order')|escape('js') }}";
  344.     </script>
  345.     {{ encore_entry_script_tags('order') }}
  346. {% endblock %}