Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use ng-pluralise to show nicer text based on the number of selections
  • Loading branch information
jstrachan committed Apr 30, 2013
1 parent 3918036 commit 79efe57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hawtio-web/src/main/webapp/app/activemq/html/browseQueue.html
Expand Up @@ -87,9 +87,13 @@

<div modal="moveDialog.show" close="moveDialog.close()" options="moveDialog.options">
<form class="form-horizontal no-bottom-margin" ng-submit="moveDialog.close()">
<div class="modal-header"><h4>Move to</h4></div>
<div class="modal-header"><h4>Move <ng-pluralize count="selectedItems.length"
when="{'1': 'a message', 'other': 'messages'}"></ng-pluralize>
</h4></div>
<div class="modal-body">
<p>Move {{selectedItems.length}} messages to <input type="text" style="width: 100%" ng-model="queueName" placeholder="Queue name"></p>
<p>Move <ng-pluralize count="selectedItems.length"
when="{'1': 'a message', 'other': '{} messages'}"></ng-pluralize>
to: <input type="text" style="width: 100%" ng-model="queueName" placeholder="Queue name"></p>
</div>
<div class="modal-footer">
<input id="submit" class="btn btn-primary add" type="submit" ng-click="moveMessagesAndCloseMoveDialog()" value="Move">
Expand Down

0 comments on commit 79efe57

Please sign in to comment.