~prakhar126/postorius/adding_dropdown_option

« back to all changes in this revision

Viewing changes to src/postorius/templates/postorius/lists/held_messages.html

  • Committer: Florian Fuchs
  • Date: 2015-02-06 15:50:56 UTC
  • mfrom: (194.2.1 postorius)
  • Revision ID: flo.fuchs@gmail.com-20150206155056-6dh0x0y7bfeholbl
Show held message details in a modal window. Contributed by Abhilash Raj (LP: 1004049).

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                        <td>{{ msg.sender }}</td>
26
26
                        <td>{{ msg.reason }}</td>
27
27
                        <td>{{ msg.hold_date }}</td>
 
28
 
28
29
                <td class="mm_action">
 
30
                    <a href="{% url 'accept_held_message' list.fqdn_listname msg.request_id %}" class="btn btn-mini btn-info" data-toggle="modal" data-target="#msg-{{ msg.request_id }}">{% trans 'View' %}</a>
 
31
 
29
32
                    <a href="{% url 'accept_held_message' list.fqdn_listname msg.request_id %}" class="btn btn-mini btn-success">{% trans 'Accept' %}</a>
30
33
                    <a href="{% url 'defer_held_message' list.fqdn_listname msg.request_id %}" class="btn btn-mini btn-warning">{% trans 'Defer' %}</a>
31
34
                    <a href="{% url 'reject_held_message' list.fqdn_listname msg.request_id %}" class="btn btn-mini btn-danger">{% trans 'Reject' %}</a>
32
35
                    <a href="{% url 'discard_held_message' list.fqdn_listname msg.request_id %}" class="btn btn-mini btn-danger">{% trans 'Discard' %}</a>
33
 
                </td>
 
36
                  <!-- Modal -->
 
37
                  <div class="modal fade held-message-details" id="msg-{{ msg.request_id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 
38
                    <div class="modal-dialog">
 
39
                      <div class="modal-content">
 
40
                        <div class="modal-header">
 
41
                          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
 
42
                          <h4 class="modal-title">Subject: {{ msg.subject }}</h4>
 
43
                        </div>
 
44
                        <div class="modal-body">
 
45
                          {{ msg.msg | linebreaks }}
 
46
                        </div>
 
47
                      </div>
 
48
                    </div>
34
49
                </td>
35
50
                </tr>
36
51
            {% endfor %}