~ubuntu-branches/ubuntu/saucy/rabbitmq-server/saucy

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-management/priv/www/js/tmpl/add-binding.ejs

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2012-11-19 11:42:31 UTC
  • mfrom: (0.2.18) (0.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20121119114231-hvapkn4akng09etr
Tags: 3.0.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
    <h3>Add binding</h3>
 
1
<% if (mode == 'queue') { %>
 
2
    <h3 style="padding-top: 20px;">Add binding to this queue</h3>
 
3
<% } else { %>
 
4
    <h3 style="padding-top: 20px;">Add binding from this exchange</h3>
 
5
<% } %>
2
6
    <form action="#/bindings" method="post">
3
 
      <table class="bindings">
4
 
        <tr>
5
 
<% if (mode != 'queue') { %>
6
 
          <td class="binding-endpoint">
7
 
            <span class="object"><%= parent.name %></span>
8
 
            <span class="arrow">&rarr;</span>
9
 
          </td>
10
 
<% } %>
11
 
          <td>
12
7
            <input type="hidden" name="vhost" value="<%= fmt_string(parent.vhost) %>"/>
13
8
<% if (mode == 'queue') { %>
14
9
            <input type="hidden" name="destination" value="<%= fmt_string(parent.name) %>"/>
19
14
<% if (mode == 'queue') { %>
20
15
              <tr>
21
16
                <th>
22
 
                  <label>Exchange:</label>
 
17
                  <label>From exchange:</label>
23
18
                </th>
24
19
                <td>
25
20
                  <input type="hidden" name="destination_type" value="q"/>
31
26
              <tr>
32
27
                <th>
33
28
                  <select name="destination_type" class="narrow">
34
 
                    <option value="e">exchange</option>
35
 
                    <option value="q" selected="selected">queue</option>
 
29
                    <option value="e">To exchange</option>
 
30
                    <option value="q" selected="selected">To queue</option>
36
31
                  </select>:
37
32
                </th>
38
33
                <td>
50
45
                <td><span class="multifield" id="arguments"></span></td>
51
46
              </tr>
52
47
            </table>
53
 
          </td>
54
 
<% if (mode == 'queue') { %>
55
 
          <td class="binding-endpoint">
56
 
            <span class="arrow">&rarr;</span>
57
 
            <span class="object"><%= fmt_string(parent.name) %></span>
58
 
          </td>
59
 
<% } %>
60
 
        </tr>
61
 
        <tr>
62
 
          <td>
63
 
            <input type="submit" value="Bind"/>
64
 
          </td>
65
 
          <td></td>
66
 
        </tr>
67
 
      </table>
 
48
      <input type="submit" value="Bind"/>
68
49
    </form>