158 lines
8.2 KiB
HTML
Executable File
158 lines
8.2 KiB
HTML
Executable File
<form name="Form" id="form" novalidate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Update Schedule Details
|
|
</legend>
|
|
<div class="row" >
|
|
<div class="panel panel-white" id="sub">
|
|
<div class="panel-heading border-light">
|
|
<!--<h4 class="panel-title text-pink">Schedule Details</h4>
|
|
<paneltool class="panel-tools" tool-collapse="tool-collapse" tool-refresh="load1" tool-dismiss="tool-dismiss"></paneltool>-->
|
|
<div class="col-md-3">
|
|
<h4 class="panel-title text-green">Subject</h4>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<h4 class="panel-title text-green">Date</h4>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<h4 class="panel-title text-green">Start Time</h4>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<h4 class="panel-title text-green">End Time</h4>
|
|
</div>
|
|
</div>
|
|
<div collapse="panel2" ng-init="panel2=false" class="panel-wrapper">
|
|
<div class="panel-body panel-scroll height-250" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
|
<!--<pre>{{unsheduledetails | json}}</pre>-->
|
|
<div class="row" ng-repeat="s in unsheduledetails" style="margin-top:30px;">
|
|
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.SubjectName.$dirty && Form.SubjectName.$invalid, 'has-success':Form.batchcode.$valid}">
|
|
<!--<label>
|
|
Subject Name <span class="symbol required"></span>
|
|
</label>-->
|
|
|
|
<input type="text" placeholder="Enter Batch Name"
|
|
tabindex="1" class="form-control" name="SubjectName"
|
|
ng-model="s.SubjectName" readonly/>
|
|
|
|
</div>
|
|
|
|
<div data-ng-controller="DatepickerDemoCtrl">
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.date.$dirty && Form.date.$invalid, 'has-success':Form.date.$valid}">
|
|
<!--<label>
|
|
Shedule Date <span
|
|
class="symbol required"></span>
|
|
</label>-->
|
|
<input type="text"
|
|
tabindex="1"
|
|
class="form-control "
|
|
ng-click="startOpen = !startOpen"
|
|
datepicker-popup="dd-MM-yyyy"
|
|
ng-model="s.ScheduleDate"
|
|
is-open="startOpen"
|
|
ng-init="startOpen = false"
|
|
name="date"
|
|
datepicker-options="dateOptions"
|
|
placeholder="Select Date"
|
|
close-text="Close" required="required" ng-readonly="true"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.date.$dirty && Form.date.$error.required">Shedule Date is required.</span>
|
|
<!--<span class="success text-small block"-->
|
|
<!--ng-if="Form.date.$valid ">Thank You</span>-->
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3 form-group" style="margin-top: -34px;"
|
|
ng-class="{'has-error':Form.FromTime.$dirty && Form.FromTime.$invalid, 'has-success':Form.batchcode.$valid}">
|
|
<!--<label>
|
|
Shedule Starting Time <span class="symbol required"></span>
|
|
</label>-->
|
|
|
|
<div style="margin-top: 35px;">
|
|
<div class="form-group">
|
|
<!-- <label class="text-blue"> <b>Start Time</b>
|
|
</label>-->
|
|
<!-- <timepicker class="control-label" -->
|
|
<!-- ng-model="s.FromTime" -->
|
|
<!-- hour-step="hstep" -->
|
|
<!-- minute-step="hstep" -->
|
|
<!-- show-meridian="ismeridian"></timepicker> -->
|
|
<input type="text" placeholder="09:00AM"
|
|
class="form-control" name="scheduleFromTime{{$index}}" id="scheduleFromTime{{$index}}" tabindex="1"
|
|
ng-model="s.FromTime" ng-pattern="" size="10" ng-blur="validateTime(s.FromTime,$event);">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div style="margin-top: -34px;"
|
|
ng-class="{'has-error':Form.ToTime.$dirty && Form.ToTime.$invalid, 'has-success':Form.batchcode.$valid}">
|
|
<!--<label>
|
|
Shedule Ending Time <span class="symbol required"></span>
|
|
</label>-->
|
|
|
|
<div class="col-md-3" style="margin-top: 0px;">
|
|
<div class="form-group">
|
|
<!-- <label class="text-blue"> <b>Start Time</b>
|
|
</label>-->
|
|
<!-- <timepicker class="control-label" -->
|
|
<!-- ng-model="s.ToTime" -->
|
|
<!-- hour-step="hstep" -->
|
|
<!-- minute-step="hstep" -->
|
|
<!-- show-meridian="ismeridian"></timepicker> -->
|
|
<input type="text" placeholder="09:00AM"
|
|
class="form-control" name="scheduleEndTime{{$index}}" id="scheduleEndTime{{$index}}" tabindex="1"
|
|
ng-model="s.ToTime" ng-pattern="" size="10" ng-blur="validateTime(s.ToTime,$event);">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="submit" ladda="ldloading.zoom_in" tabindex="2" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateShedule(unsheduledetails);">
|
|
Save
|
|
</button>
|
|
|
|
<input type="button" class="btn btn-warning btn-wide" tabindex="3" value="Cancel"
|
|
ng-click="cancel();">
|
|
|
|
</input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- class="editRowTd" -->
|
|
|
|
|
|
|
|
|