Advertisement
Guest User

Untitled

a guest
Apr 10th, 2022
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <body>
  4. <div th:fragment="executor" th:remove="tag">
  5.     <br>
  6.  
  7.     <div class="executorSection form-row shadow-lg p-3 mb-3 bg-white rounded">
  8.         <p class="text-end deleteButton visually-hidden">
  9.            <a href="#"  class="link-danger delete-executor" >Delete</a>
  10.         </p>
  11.         <h5>Who is the executor</h5>
  12.  
  13.         <div class="form-group col-md-6">
  14.             <label for="firstname" class="form-label" >Firstname</label>
  15.             <input type="text" class="form-control" name="firstname" th:placeholder="# placeholder="Éric">
  16.         </div>
  17.         <div class="form-group col-md-6">
  18.             <label for="lastname" class="form-label" >Lastname</label>
  19.             <input type="text" class="form-control" name="lastname"  th:placeholder="# placeholder="Duhamel">
  20.         </div>
  21.  
  22.         <div class="col-12">
  23.             <label for="city" class="form-label" >City</label>
  24.             <input type="text" class="form-control" name="city"  th:placeholder="# placeholder="Brossard">
  25.         </div>
  26.         <br>
  27.  
  28.         <div  id="" class="deleteButton alternativeExecutorSectionAdd">
  29.             <a href="#" class="link-primary addAlternativeExecutor">Add an alternative executor</a>
  30.         </div>
  31.         <br>
  32.  
  33.         <div class="alternativeExecutorSection visually-hidden">
  34.  
  35.             <p class="text-end deleteButton visually-hidden">
  36.                 <a href="#" class="link-danger delete-alternative-executor" >Delete</a>
  37.             </p>
  38.  
  39.             <h5>Alternative executor info</h5>
  40.  
  41.             <div class="form-group col-md-6">
  42.                 <label for="firstname" class="form-label">Firsname</label>
  43.                 <input type="text" class="form-control" name="firstname" placeholder="Éric">
  44.             </div>
  45.             <div class="form-group col-md-6">
  46.                 <label for="lastname" class="form-label" >Lastname</label>
  47.                 <input type="text" class="form-control" name="lastname"  placeholder="Duhamel">
  48.             </div>
  49.  
  50.             <div class="col-12">
  51.                 <label for="city" class="form-label" >City</label>
  52.                 <input type="text" class="form-control" name="city" placeholder="Brossard">
  53.             </div>
  54.             <br>
  55.         </div>
  56.  
  57.         <script th:inline="javascript" type="text/javascript">
  58.             $(document).ready(function() {
  59.  
  60.                  $(".addAlternativeExecutor").on('click', function(e){
  61.                       $(this).parent().next().removeClass('visually-hidden');
  62.                  });
  63.  
  64.  
  65.                 $(".delete-alternative-executor").on('click', function(e){
  66.                     $(this).parent().next().addClass('visually-hidden');
  67.                 });
  68.  
  69.  
  70.             });
  71.         </script>
  72.  
  73.     </div>
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement