-
Notifications
You must be signed in to change notification settings - Fork 539
/
sendMessage.html
52 lines (50 loc) · 2.14 KB
/
sendMessage.html
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
<form class="form-horizontal" ng-controller="Camel.SendMessageController">
<div class="row-fluid">
<div class="control-group">
<button id="sendButton" type="submit" class="btn btn-primary pull-left" ng-click="sendMessage()">Send Message
</button>
<button id="addHeaderButton" class="btn pull-right" ng-click="addHeader()" title="Add a new message header"><i class="icon-plus"></i>
</button>
</div>
<div class="row-fluid">
<div class="control-group">
<table style="width: 100%">
<tr ng-repeat="header in headers">
<td style="width: 45%">
<input type="text" style="width: 100%" ng-model="header.name" typeahead="header for header in defaultHeaderNames() | filter:$viewValue">
</td>
<td style="width: 55%">
<input type="text" style="width: 100%" ng-model="header.value" placeholder="Value of the message header">
</td>
<td style="width: 1px">
<button ng-click="removeHeader(header)" class="btn pull-right" title="Removes this message header"><i class="icon-remove"></i></button>
</td>
</tr>
</table>
</div>
</div>
<div class="row-fluid">
<div class="pull-right">
<div class="controls">
<label class="control-label" for="sourceFormat" title="The text format to use for the message payload">body
format: </label>
<select ng-model="codeMirrorOptions.mode.name" id="sourceFormat">
<option value="javascript">JSON</option>
<option value="text">Plain Text</option>
<option value="properties">Properties</option>
<option value="xml">XML</option>
<option value="yaml">YAML</option>
</select>
<button class="btn" ng-click="autoFormat()"
title="Automatically pretty prints the message so its easier to read">Auto Format
</button>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="control-group">
<textarea ui-codemirror="codeMirrorOptions" ng-model="message"></textarea>
</div>
</div>
</form>