
	                        <div class="col-md-12">
	                       		<!--Start col-12-->	
								<div class="col-12 ui-sortable">
									<div class="panel-body">
		                            	 <div class="form-horizontal">
		                            	 	
											<div class="form-group">
					                            <label class="col-md-3 control-label">Campaign Name</label>
					                            <div class="input-group ">
		                                            <input type="text" class="form-control" ng-model="lcamp.campaignName" placeholder="Enter campaign name" maxlength="50">
		                                            <span ng-if="campaignNameError" style="color: red">{{campaignNameError}}</span>
		                                        </div>
					                            
					                        </div>
											<div class="form-group">
												<div class="form-inline" >
													
													
												</div>
					                            <label class="col-md-3 control-label">Frequency</label>
					                            <div class="col-md-6">
					                                Show this notification&nbsp;&nbsp;<select class="form-control" style="width:90px;display:inline" id="ddlShow">
					                                <option value="1">1</option>
					                                <option value="2">2</option>
					                                <option value="3">3</option>
					                                <option value="4">4</option>
					                                <option value="5">5</option>
					                                <option value="always">Always</option>
					                            </select>&nbsp;&nbsp;times to users,<br/><span style="padding-right:20px;">after an interval of</span>
			                            		<input type="text" class="form-control" style="width:40px;display:inline;padding:0px;text-align:center;margin-top:10px;" id="txtInterval" value="0" maxlength="4">&nbsp;
			                            		<select class="form-control" style="width:105px;display:inline;margin-top:2px;" id="ddlDurationUnit">		  
					                                <option value="mm">Minutes</option>
					                                <option value="hh">Hours</option>
					                            </select>

					                            <select class="form-control" style="width:105px;display:none;margin-top:2px;" id="ddlRangeStatus">
					                                <option value="lt">Less Than</option>
					                                <option value="gt">Greater Than</option>
					                            </select>&nbsp;<input type="text" class="form-control" style="width:40px;display:none;padding:0px;text-align:center;margin-top:2px;" id="txtRangeValue">&nbsp;&nbsp;<input type="text" class="form-control" style="width:40px;display:none;padding:0px;text-align:center;margin-top:10px;" id="txtPastDays">
					                            </div>
					                        </div>
					                        <div class="form-group" style="display:none">
					                            <label class="col-md-3 control-label">Limited to</label>
					                            <div class="col-md-4">
					                            	<div class="radio">
					                            		<label >
				                                            <input type="radio" name="rdbLimitOptions" value="LIMITEDTOALL" data-bind="checked: limitedTo" id="rdbLimitedToAll">
				                                            All
			                                        	</label>
					                            	</div>
					                            	<div class="radio">
				                                        <label >
				                                            <input type="radio" name="rdbLimitOptions" value="LIMITEDTOMAX" data-bind="checked: limitedTo" id="rdbLimitedToMax">
				                                            Max to&nbsp;<input type="text" class="form-control" style="width:40px;padding:0px;text-align:center" id="txtMaxLimit"> 
				                                        </label>
			                                        </div>
			                                        
			                                        
					                            </div>
					                        </div>
					                        <div class="form-group">
					                            <label class="col-md-3 control-label">Date Range</label>
					                            <div class="input-group input-daterange">
		                                            <input type="text" class="form-control" name="start" placeholder="Date Start" id="campaignStartDate" ng-model="lcamp.startDate" styele="width:150px;" />
		                                            <span class="input-group-addon">to</span>
		                                            <input type="text" class="form-control" name="end" placeholder="Date End" ng-model="lcamp.endDate" id="campaignEndDate"/>
		                                        </div>
					                            
					                        </div>
				                            <div class="form-group">
			                                    <label class="col-md-3 control-label"></label>
			                                    <div class="col-md-9">
			                                        <label class="radio-inline">
			                                            <input type="radio" name="optionsDays" value="ALLWEEK" ng-model="lcamp.daySelector" id="rdbAllWeek">
			                                            All Week
			                                        </label>
			                                        <label class="radio-inline">
			                                            <input type="radio" name="optionsDays" value="SPECIFICDAYS" id="rdbSpecificDays" ng-model="lcamp.daySelector">
			                                            Specific days
			                                        </label>
			                                    </div>
			                                </div>
					                            
					                        
					                        <div class="form-group">
			                                    <label class="col-md-3 control-label"></label>
			                                    <div class="col-md-9">
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" value="0" ng-model="dayOne" ng-change="addSpecificDay(0,dayOne)" name="weekday" class="weekday">
			                                            S
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" value="1" name="weekday" class="weekday" ng-model="dayTwo" ng-change="addSpecificDay(1,dayTwo)">
			                                            M
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" value="2" name="weekday" class="weekday" ng-model="dayThree" ng-change="addSpecificDay(2,dayThree)">
			                                            T
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" value="3" ng-model="dayFour" name="weekday" class="weekday" ng-change="addSpecificDay(3,dayFour)">
			                                            W
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input ng-model="dayFive" type="checkbox" value="4" name="weekday" class="weekday" ng-change="addSpecificDay(4,dayFive)">
			                                            T
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" ng-model="daySix" value="5" name="weekday" class="weekday" ng-change="addSpecificDay(5,daySix)">
			                                            F
			                                        </label>
			                                        <label class="checkbox-inline">
			                                            <input type="checkbox" value="6" ng-model="daySeven" name="weekday" class="weekday" ng-change="addSpecificDay(6,daySeven)">
			                                            S
			                                        </label>

			                                    </div>
			                                </div>

			                                <div class="form-group">
			                                    <label class="col-md-3 control-label"></label>
			                                    <div class="col-md-9">
			                                        <label class="radio-inline">
			                                            <input type="radio" name="optionsTime" value="ALLDAY" ng-model="lcamp.timeSelector" id="rdbAllTime">
			                                            All Day
			                                        </label>
			                                        <label class="radio-inline">
			                                            <input type="radio" name="optionsTime" value="SPECIFICTIME" ng-model="lcamp.timeSelector" id="rdbSpecificTime">
			                                            Time Range
			                                        </label>
			                                    </div>
			                                </div>
			                                <div class="form-group">
			                                    <label class="col-md-3 control-label"></label>
			                                    <div class="col-md-6">
			                                    	<span style="padding-bottom:3px;">Selected Time:&nbsp;&nbsp; <strong id="timeRangeLabel"></strong></span>
			                                        <div id="timeRange"></div>
			                                    </div>
			                                </div>
					                        <div class="form-group">
		                                    	<label class="col-md-3 control-label"></label>
		                                    	<div class="col-md-9">
		                                        	<button ng-if="childApps.length<=0" type="button" class="btn btn-sm btn-success" ng-click="saveCampaignDefault()">Submit</button>
		                                        	<button ng-if="childApps.length>0" type="button" class="btn btn-sm btn-success" href="#childapps-dialog" data-toggle="modal" ng-click="populateSelectedChildsApps()">Submit</button>
		                                        	<button type="button" class="btn btn-sm btn-success" onclick="cancelCampaign();">Cancel</button>
		                                        	<label ng-if="cToolsIdError" style="color: red; width: 300px;">{{cToolsIdError}}</label>
		                                        	<label ng-if="startDateError " style="color: red; width: 300px;">{{startDateError}}</label>
		                                        	<label ng-if="endDateError" style="color: red; width: 300px;">{{endDateError}}</label>
		                                        	
		                                        	<label ng-if="startgtDateError" style="color: red; width: 300px;">{{startgtDateError}}</label>
		                                        	<label ng-if="startCurrDError" style="color: red; width: 300px;">{{startCurrDError}}</label>
		                                        	
		                                        	<label ng-if="specificDayError" style="color: red; width: 300px;">{{specificDayError}}</label>
		                                        	<label ng-if="campDupError" style="color: red; width: 300px;">{{campDupError}}</label>
		                                        	
		                                        	<label ng-if="UpdatevalidationMessage" style="color: red; width: 300px;">{{UpdatevalidationMessage}}</label>
		                                    	</div>
		                                	</div>
				                        </div>
		  							</div>
		  							<!--End panel-body-->	
	  							</div>
									<!--End col-12-->
	                        </div>