
<div class="modal" ng-controller="FlowableEventCorrelationParametersPopupCtrl">
    <div class="modal-dialog modal-wide">
        <div class="modal-content">
			<div class="modal-header">
			    <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
			    <h2>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate}} "{{property.title | translate}}"</h2>
			</div>
			<div class="modal-body">
			
			    <div class="row row-no-gutter">
			        <div class="col-xs-6">
                        <div ng-if="translationsRetrieved" class="kis-listener-grid" ui-grid="gridOptions" ui-grid-selection></div>
			            <div class="pull-right">
			                <div class="btn-group">
			                    <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.ADD' | translate:property}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewParameter()"><i class="glyphicon glyphicon-plus"></i></a>
			                    <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.REMOVE' | translate:property}}" data-placement="bottom" data-original-title="" title="" ng-click="removeParameter()"><i class="glyphicon glyphicon-minus"></i></a>
			                </div>
			            </div>
			        </div>
			
			        <div class="col-xs-6">
			            <div ng-show="selectedParameter">
							
							<div class="form-group">
						   		<label for="nameField">{{'PROPERTY.EVENTCORRELATIONPARAMETERS.NAME' | translate}}</label>
						   		<input type="text" id="nameField" class="form-control" ng-model="selectedParameter.name" placeholder="{{'PROPERTY.EVENTCORRELATIONPARAMETERS.NAME.PLACEHOLDER' | translate}}" />
							</div>
							<div class="form-group">
						   		<label for="typeField">{{'PROPERTY.EVENTCORRELATIONPARAMETERS.TYPE' | translate}}</label>
						   		<select id="typeField" class="form-control" ng-model="selectedParameter.type">
                                    <option>string</option>
                                    <option>integer</option>
                                    <option>double</option>
                                    <option>boolean</option>
                                </select>
							</div>
							<div class="form-group">
                                <label for="valueField">{{'PROPERTY.EVENTCORRELATIONPARAMETERS.VALUEPROP' | translate}}</label>
                                <input type="text" id="valueField" class="form-control" ng-model="selectedParameter.value" placeholder="{{'PROPERTY.EVENTCORRELATIONPARAMETERS.VALUEPROP.PLACEHOLDER' | translate}}" />
                            </div>
			            </div>
			            <div ng-show="!selectedParameter" class="muted no-property-selected" translate>PROPERTY.EVENTCORRELATIONPARAMETERS.NOSELECTION</div>
			        </div>
			    </div>
			</div>
			<div class="modal-footer">
			    <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
			    <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
			</div>
		</div>
	</div>
</div>
