<form action="<?php echo $saveLink;?>" method="post">
  <div class="ulp-instructor-edit ulp-instructor-edit-lesson-settings">
			<h2 class="ulp-instructor-edit-top-title"><?php echo '<span class="ulp-post-title">'.$post_title . '</span>'.__(' - Special Settings', 'ulp');?></h2>
				<input type="hidden" name="ID" value="<?php echo $postId;?>" />
					<div class="ulp-instructor-edit-row">
                    	<div class="ulp-inst-col-6">
                        <h3><?php _e('Preview lesson', 'ulp');?></h3>
                        <p><?php _e('Activate this option to make this lesson available for everyone so that they can get an idea of how the course is like.', 'ulp');?></p>
                        <div class="ulp-form-section">
                        <label class="ulp_label_shiwtch">
						 <?php $checked = ($data['ulp_lesson_preview']) ? 'checked' : '';?>
						 <input type="checkbox"  class="checkbox-big" onClick="ulpCheckAndH(this, '#ulp_lesson_preview');" <?php echo $checked;?> />
						 <div class="switch" style="display:inline-block;"></div>
					 </label><span><strong><?php _e('Activate/Deactivate', 'ulp');?></strong></span>
					 <input type="hidden" name="ulp_lesson_preview" value="<?php echo $data['ulp_lesson_preview'];?>" id="ulp_lesson_preview" />
                     </div>
                    </div>
				</div>
				<div class="ulp-instructor-edit-line-break"></div>
                	<div class="ulp-instructor-edit-row">
                    	<div class="ulp-inst-col-6">
   							<div class="ulp-form-section">
                        <h3><?php _e('Assessments', 'ulp');?></h3>
                        <p><?php _e('The number of reward points a user earns by completing this lesson.', 'ulp');?></p>
                        <div class="ulp-input-group">
                            <span class="ulp-input-group-addon" id="basic-addon1"><?php _e('Reward Points: ', 'ulp');?></span>
                            <input type="number" class="ulp-form-control" value="<?php echo $data['ulp_post_reward_points'];?>" min="0" name="ulp_post_reward_points"/>
                        </div>
                        </div>
                    </div>
				</div>
				<div class="ulp-instructor-edit-line-break"></div>
                	<div class="ulp-instructor-edit-row">
                    	<div class="ulp-inst-col-6">
   							<div class="ulp-form-section">
                        <h3><?php _e('Display Options', 'ulp');?></h3>
                        <h4 style="margin-top:25px;"><?php _e('Links', 'ulp');?></h4>
                         <p><?php _e("Show 'back to course' link: ", 'ulp');?></p>
                        <div class="ulp-input-group">
                         <label>
                             <?php $checked = ($data['ulp_lesson_show_back_to_course_link']) ? 'checked' : '';?>
                             <input type="checkbox" class="checkbox-big" onClick="ulpCheckAndH(this, '#ulp_lesson_show_back_to_course_link');" <?php echo $checked;?> />
                          </label><span><strong><?php _e('Enable this Link', 'ulp');?></strong></span>
                         <input type="hidden" name="ulp_lesson_show_back_to_course_link" value="<?php echo $data['ulp_lesson_show_back_to_course_link'];?>" id="ulp_lesson_show_back_to_course_link" />
                        </div>
                        </div>
                    </div>
				</div>
				<div class="ulp-instructor-edit-line-break"></div>
                	<div class="ulp-instructor-edit-row">
                    	<div class="ulp-inst-col-6">
   							<div class="ulp-form-section">
                         <h3><?php _e('Additional Settings', 'ulp');?></h3>
                         <h4><?php _e('Duration', 'ulp');?></h4>
                         <div class="ulp-input-group">
							<span class="ulp-input-group-addon" id="basic-addon1"><?php _e('Duration', 'ulp');?></span>
							<input type="number" class="ulp-form-control" name="ulp_lesson_duration" value="<?php echo $data['ulp_lesson_duration'];?>" min="1" />
                    	</div>
                        <div style=" margin-top:20px;">
                          <select name="ulp_lesson_duration_type" class="ulp-form-control">
                              <?php $values = ulp_get_time_types();?>
                              <?php foreach ($values as $k => $v):?>
                                  <?php $selected = $data ['ulp_lesson_duration_type']==$k ? 'selected' : '';?>
                                  <option value="<?php echo $k;?>" <?php echo $selected;?> ><?php echo $v;?></option>
                              <?php endforeach;?>
                          </select>
						</div>
                        </div>
                    </div>
				</div>
				<div class="ulp-instructor-edit-line-break"></div>
                	<div class="ulp-instructor-edit-row">
                    	<div class="ulp-inst-col-6">
   							<div class="ulp-form-section">
							<input type="submit" name="save_special_settings" value="<?php _e('Save Changes', 'ulp');?>"  class="btn btn-primary pointer ulp-submit-button" />
				  			</div>
						</div>
			</div>
		</div>
		<input type="hidden" name="post_id" value="<?php echo esc_sql($_GET ['id']);?>" />
</form>
