<form class="form-horizontal" ng-controller="ARTEMIS.DestinationController">
  <fieldset>
    <div class="control-group">
      <label class="pull-left" style="margin-top:5px;"> {{destinationTypeName}} name:</label>
      <input class="span10 pull-left"  type="text" size="60" style="margin-left:15px;" maxlength="300" name="destinationName" ng-model="destinationName" placeholder="{{destinationTypeName}} name"/>
    </div>
    <div class="alert alert-warning">
        The JMS API does not define a standard address syntax however Artemis will prepend each destination with jms.queue. or jms.topic internally. To create queues with no prefix you can use the core API.
    </div>

    <div class="control-group">
      <label class="checkbox">
        <input type="radio" ng-model="queueType" value="true"> Queue
      </label>
      <label class="checkbox">
        <input type="radio" ng-model="queueType" value=""> Topic
      </label>
    </div>

    <div class="control-group">
      <button type="submit" class="btn btn-info" ng-click="createDestination(destinationName, queueType)"
              ng-disabled="!destinationName">Create {{destinationTypeName}}
      </button>
    </div>
  </fieldset>
</form>
