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
|
<% if (mode == 'queue') { %>
<h3 style="padding-top: 20px;">Add binding to this queue</h3>
<% } else { %>
<h3 style="padding-top: 20px;">Add binding from this exchange</h3>
<% } %>
<form action="#/bindings" method="post">
<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>From 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">To exchange</option>
<option value="q" selected="selected">To 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><div class="multifield" id="arguments"></div></td>
</tr>
</table>
<input type="submit" value="Bind"/>
</form>
|