templates/order/partials/ig_comments.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-lg-6 offset-lg-3" ng-controller="IGCustomCommentsController">
  3.         <div class="select__offer px-3 py-3 mb-4" ng-if="currentStep === 'igSelectProfile'">
  4.             <h2 class="text-center">Get Started</h2>
  5.             <form name="orderSelect" ng-submit="goToShowProfile(true)">
  6.                 <div class="mb-3 mt-3">
  7.                     <label for="username" class="form-label">Enter username</label>
  8.                     <div class="package-container">
  9.                         <input type="text" class="form-control ps-5" id="username" placeholder="Instagram username" ng-model="profile.username" ng-class="{'is-invalid': validation.username.length > 0}">
  10.                         <i class="fab fa-{{ current_service.SocialNetwork | lower }}"></i>
  11.                         <p *ng-if="validation.username.length > 0" class="text-danger">
  12.                             [{validation.username[0]}]
  13.                         </p>
  14.                     </div>
  15.                 </div>
  16.                 <div class="mb-3 mt-3">
  17.                     <label for="package" class="form-label">Select package</label>
  18.                     <div class="package-container">
  19.                         <select class="form-control ps-5" id="package" ng-model="order.IDService" ng-change="onOfferChange()">
  20.                             <option ng-repeat="item in current_sub_service.offers" ng-value="item.IDService">[{(item.Offer + ' - ' + item.Quantity + ' ' + current_sub_service.Text)}]</option>
  21.                         </select>
  22.                         <i class="{{ icons[current_sub_service.Text] }}"></i>
  23.                     </div>
  24.                 </div>
  25.                 <button type="submit" class="btn btn-primary btn-lg d-block w-100" ng-disabled="loading" ng-class="{'loading': loading}">
  26.                     <span ng-show="loading">Please wait [{countdown | number:2}]</span>
  27.                     <span ng-show="!loading">Continue</span>
  28.                 </button>
  29.             </form>
  30.         </div>
  31.         <div ng-if="currentStep === 'igShowProfile'">
  32.             <div class="select__offer px-3 py-3 mb-3" id="enter-profile-anshore">
  33.                 <div class="d-flex gap-3">
  34.                     <div class="img-profile-container">
  35.                         <div class="img-profile-preview" style="background-image: url([{profile.profile_pic_url}])"></div>
  36.                     </div>
  37.                     <div class="summary">
  38.                         <p class="username mb-2">
  39.                             [{profile.username}] 
  40.                             <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer"  ng-click="goToSelectProfile()">Change</span>
  41.                         </p>
  42.                         <p class="package mb-0 d-flex">
  43.                             <span style="flex: 1;text-align: start;line-height: 18px;font-size: 13px;">Followers<br /><b>[{profile.follower_count | megaNumber}]</b></span>
  44.                             <span style="flex: 1;text-align: center;line-height: 18px;font-size: 13px;">Following<br /><b>[{profile.following_count | megaNumber}]</b></span>
  45.                             <span style="flex: 1;text-align: end;line-height: 18px;font-size: 13px;">Medias<br /><b>[{profile.media_count | megaNumber}]</b></span>
  46.                         </p>
  47.                     </div>
  48.                 </div>
  49.                 <hr />
  50.                 <div class="d-flex d-row gap-3 mt-4 align-items-center">
  51.                     <span><i class="{{ icons[current_sub_service.Text] }}"></i></span>
  52.                     <span style="flex: auto;font-size: 16px;font-weight: bold;line-height: 18px;">
  53.                         [{current_offer.Quantity}] [{current_sub_service.Text}]
  54.                         <br />
  55.                         <em style="font-size: 13px;font-weight: normal;">[{current_offer.Quantity}] [{current_sub_service.Text}] / 1 profile</em>
  56.                     </span>
  57.                     <span style="font-size: 20px;font-weight: bold;">
  58.                         <sub style="bottom: -2px;margin-right: 5px;color: red;" class="text-decoration-line-through">
  59.                             [{truncateToTwoDecimals(current_offer.Price * (1 + (current_offer.Discount / 100)))}]
  60.                         </sub> 
  61.                         {{get_currency()}}[{current_offer.Price}]
  62.                     </span>
  63.                 </div>
  64.             </div>
  65.             <div class="select__offer px-3 py-3 mb-3" id="posts-list-anshore">
  66.                 <h2 class="text-center">Select Posts</h2>
  67.                 <p class="text-center">Your package will be split evenly between your posts.</p>
  68.                 <div class="medias__list mb-3">
  69.                     <div class="medias__list-item" style="background-image: url([{post.picture_url}])" ng-click="onPostClicked(post)" ng-repeat="post in profile.posts">
  70.                         <div class="medias__list-item-selected" ng-if="isPostSelected(post.url)">
  71.                             [{getQuantityPerPost()}]
  72.                         </div>
  73.                     </div>
  74.                 </div>
  75.                 <button class="btn btn-primary btn-lg d-block w-100" ng-click="goToCheckout()">Continue</button>
  76.             </div>
  77.         </div>
  78.         <div ng-if="currentStep === 'igCheckout'">
  79.             <div class="select__offer px-3 py-3 mb-3"  id="checkout-anshore">
  80.             
  81.                 <div class="d-flex" style="justify-content: space-between;">
  82.                     <h3 class"mb-0">Order summary</h3>
  83.                 </div>
  84.                 <hr />
  85.                 <div class="d-flex gap-3">
  86.                     <div class="img-profile-container">
  87.                         <div class="img-profile-preview" style="background-image: url([{profile.profile_pic_url}])"></div>
  88.                     </div>
  89.                     <div class="summary">
  90.                         <p class="username mb-2">
  91.                             [{profile.username}] 
  92.                             <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer"  ng-click="goToSelectProfile()">Change</span>
  93.                         </p>
  94.                         <p class="package mb-0 d-flex">
  95.                             <span style="flex: 1;text-align: start;line-height: 18px;font-size: 13px;">Followers<br /><b>[{profile.follower_count | megaNumber}]</b></span>
  96.                             <span style="flex: 1;text-align: center;line-height: 18px;font-size: 13px;">Following<br /><b>[{profile.following_count | megaNumber}]</b></span>
  97.                             <span style="flex: 1;text-align: end;line-height: 18px;font-size: 13px;">Medias<br /><b>[{profile.media_count | megaNumber}]</b></span>
  98.                         </p>
  99.                     </div>
  100.                 </div>
  101.                 <hr />
  102.                 <div class="d-flex d-row gap-3 mt-4 align-items-center">
  103.                     <span><i class="{{ icons[current_sub_service.Text] }}"></i></span>
  104.                     <span style="flex: auto;font-size: 16px;font-weight: bold;line-height: 18px;">
  105.                         [{current_offer.Quantity}] [{current_sub_service.Text}]
  106.                         <br />
  107.                         <em style="font-size: 13px;font-weight: normal;">[{current_offer.Quantity}] [{current_sub_service.Text}] / 1 profile</em>
  108.                     </span>
  109.                     <span style="font-size: 20px;font-weight: bold;">
  110.                         <sub style="bottom: -2px;margin-right: 5px;color: red;" class="text-decoration-line-through">
  111.                             [{truncateToTwoDecimals(current_offer.Price * (1 + (current_offer.Discount / 100)))}]
  112.                         </sub> 
  113.                         {{get_currency()}}[{current_offer.Price}]
  114.                     </span>
  115.                 </div>
  116.                 <hr />
  117.                 <div class="d-flex flex-column gap-3 mt-3 align-items-center" id="enter-comments-anshore">
  118.                     <p style="font-size: 20px;display: flex;align-items: center;width: 100%;justify-content: space-between;margin: 0; font-weight: bold">
  119.                         Selected Posts
  120.                         <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer" ng-click="goToShowProfile(false)">Change</span>
  121.                     </p>
  122.                     <div class="row w-100" ng-repeat="post in profile.posts" ng-if="isPostSelected(post.url)">
  123.                         <div class="col-3">
  124.                             <img class="w-100 img-responsive" src="[{post.picture_url}]" />
  125.                             <div class="medias__list-item-selected" style="background-color: #00000042; font-size: 15px;align-items: end;">
  126.                                 <div>
  127.                                     <span>[{getQuantityPerPost()}]</span>
  128.                                     <i class="{{ icons[current_sub_service.Text] }}"></i>
  129.                                 </div>
  130.                             </div>
  131.                         </div>
  132.                         <div class="col-9">
  133.                             <tags-input 
  134.                                 ng-model="order.customComments" 
  135.                                 max-tags="[{current_offer.Quantity}]" 
  136.                                 on-tag-adding="onTagAdding($tag)"
  137.                                 placeholder="Enter your comments" ng-class="{'ng-invalid': validation.customComments.length > 0}"></tags-input>
  138.                             <p class="m-0" style="font-size: 12px;font-style: italic;">
  139.                                 You have <b>[{current_offer.Quantity - order.customComments.length}] / [{current_offer.Quantity}]</b> comments left to add
  140.                             </p>
  141.                         </div>
  142.                     </div>
  143.                 </div>
  144.                 <hr />
  145.                 {# <div class="input-group mb-3">
  146.                     <input type="text" class="form-control" placeholder="Enter coupon code" aria-describedby="basic-addon2">
  147.                     <span class="input-group-text" id="basic-addon2">Apply</span>
  148.                 </div> #}
  149.                 <div class="d-flex" style="justify-content: space-between;">
  150.                     <h3 class"mb-0">Total to pay</h3>
  151.                     <b class="h3 mb-0">{{get_currency()}}[{current_offer.Price}]</b>
  152.                 </div>
  153.             </div>
  154.             <div class="select__offer px-3 py-3 mb-3">
  155.                 <h2 class="text-center">Checkout</h2>
  156.                 <div class="mb-3">
  157.                     <label for="email" class="form-label">Enter your e-mail to receive the confirmation order</label>
  158.                     <input type="text" class="form-control" id="email" placeholder="Enter your email" required ng-model="order.email" ng-class="{'is-invalid': validation.email.length > 0}">
  159.                     <p *ng-if="validation.email.length > 0" class="text-danger">
  160.                         [{validation.email[0]}]
  161.                     </p>
  162.                 </div>
  163.                 {# <div class="form-check mb-3">
  164.                     <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  165.                     <label class="form-check-label" for="flexCheckDefault">
  166.                         Send me special promotions and discounts
  167.                     </label>
  168.                 </div> #}
  169.                 <div class="mb-3">
  170.                     {# <button class="btn btn-lg btn-primary d-block w-100" ng-click="proceedToCheckout()">Pay {{get_currency()}}[{current_offer.Price}]</button> #}
  171.                     <button class="btn btn-primary btn-lg d-block w-100" ng-click="proceedToCheckout()" ng-disabled="submitting" ng-class="{'loading': submitting}">
  172.                         <span ng-show="submitting">Please wait while submitting your order</span>
  173.                         <span ng-show="!submitting">Pay {{get_currency()}}[{current_offer.Price}]</span>
  174.                     </button>
  175.                 </div>
  176.                 <div class="text-center">
  177.                     <p>
  178.                         By completing your order, you agree to the <a href="/terms/terms" target="_blank">terms of services</a> 
  179.                         and <a href="/terms/privacy" target="_blank">privacy policy</a>.
  180.                     </p>
  181.                             
  182.                     <p>
  183.                         <strong>All pricing is in {{get_currency()}}.</strong> If paying with a different currency, the billed amount is 
  184.                         subject to exchange rates and additional fees.
  185.                     </p>
  186.                 </div>
  187.             </div>
  188.         </div>
  189.     </div>
  190. </div>