1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<h3>Add binding</h3>
<form action="#/bindings" method="post">
<table class="bindings">
<tr>
<% if (mode != 'queue') { %>
<td class="binding-endpoint">
<span class="object"><%= parent.name %></span>
<span class="arrow">→</span>
</td>
<% } %>
<td>
<input type="hidden" name="vhost" value="<%= fmt_string(parent.vhost) %>"/>
<% if (mode == 'queue') { %>
<input type="hidden" name="destination" value="<%= fmt_string(parent.name) %>"/>
<% } else { %>
<input type="hidden" name="source" value="<%= fmt_string(parent.name) %>"/>
<% } %>
<table class="form">
<% if (mode == 'queue') { %>
<tr>
<th>
<label>Exchange:</label>
</th>
<td>
<input type="hidden" name="destination_type" value="q"/>
<input type="text" name="source" value=""/>
<span class="mand">*</span>
</td>
</tr>
<% } else { %>
<tr>
<th>
<select name="destination_type" class="narrow">
<option value="e">exchange</option>
<option value="q" selected="selected">queue</option>
</select>:
</th>
<td>
<input type="text" name="destination" value=""/>
<span class="mand">*</span>
</td>
</tr>
<% } %>
<tr>
<th><label>Routing key:</label></th>
<td><input type="text" name="routing_key" value=""/></td>
</tr>
<tr>
<th><label>Arguments:</label></th>
<td><span class="multifield" id="arguments"></span></td>
</tr>
</table>
</td>
<% if (mode == 'queue') { %>
<td class="binding-endpoint">
<span class="arrow">→</span>
<span class="object"><%= fmt_string(parent.name) %></span>
</td>
<% } %>
</tr>
<tr>
<td>
<input type="submit" value="Bind"/>
</td>
<td></td>
</tr>
</table>
</form>
|