templates/contact/contact_conference/index.html.twig line 1

Open in your IDE?
  1. <div id="contact-conf-page">
  2.     <div class="row">
  3.         <div class="col-5">
  4.             Conferences *<br />
  5.             <select name="contact_conference_item" id="contact_conference_item" class="form-select form-select-sm">
  6.                 <option value=""></option>
  7.                 {% for item in unassignedConferences %}
  8.                     <option value="{{ item.id }}">{{ item.conferenceName }}</option>
  9.                 {% endfor %}
  10.             </select>
  11.         </div>
  12.         <div class="col-5">
  13.             Comment<br />
  14.             <input type="text" name="contact_conference_topic" id="contact_conference_topic" class="form-control-sm form-control" />
  15.         </div>
  16.         <div class="col-1">
  17.             <br />
  18.             <button type="button" class="btn btn-info btn-sm" onClick="saveContactConference('{{ app.request.get('id') }}', '{{ app.request.get('campaignId') }}')">Add</button>
  19.         </div>
  20.     </div>
  21.     <hr />
  22.     {% if  assignedConferences|length > 0 %}
  23.         <table class="table table-sm">
  24.             <thead class="table-light">
  25.                 <tr>
  26.                     <th scope="col" width='40'></th>
  27.                     <th scope="col">Conference</th>
  28.                     <th scope="col">Comment</th>
  29.                 </tr>
  30.             </thead>
  31.             <tbody>
  32.                 {% for item in assignedConferences %}
  33.                     <tr>
  34.                         <td class="text-center">
  35.                             {% set deleteRoute = app.request.get('campaignId') != ''
  36.                                 ? path('contact_management_contact_conference_delete', {'id': item.id, 'campaignId': app.request.get('campaignId')})
  37.                                 : path('contact_management_contact_conference_delete', {'id': item.id})
  38.                             %}
  39.                             <a href="javascript:void(0)" onclick="deleteItemAjax('{{ deleteRoute }}', 'contact-conf-page')">
  40.                                 <i class="fa fa-trash-o text-secondary" aria-hidden="true"></i>
  41.                             </a>
  42.                         </td>
  43.                         <td>{{ item.conferenceName }}</td>
  44.                         <td>{{ item.topic }}</td>
  45.                     </tr>
  46.                 {% endfor %}
  47.             </tbody>
  48.         </table>
  49.     {% else %}
  50.         <div>No data found!</div>
  51.     {% endif %}
  52. </div>