<form action="" method="post">



	<div class="ulp-stuffbox">

		<h3 class="ulp-h3"><?php _e('Course difficulty', 'ulp');?></h3>

		<div class="inside">



			<div class="ulp-form-line">

					<h2><?php _e('Activate Course Difficulty', 'ulp');?></h2>

				<label class="ulp_label_shiwtch" style="margin:10px 0 10px -10px;">

					<?php $checked = ($data['metas']['ulp_course_difficulty_enable']) ? 'checked' : '';?>

					<input type="checkbox" class="ulp-switch" onClick="UltimateLearningPro.checkAndH(this, '#ulp_course_difficulty_enable');" <?php echo $checked;?> />

					<div class="switch" style="display:inline-block;"></div>

				</label>

				<input type="hidden" name="ulp_course_difficulty_enable" value="<?php echo $data['metas']['ulp_course_difficulty_enable'];?>" id="ulp_course_difficulty_enable" />

			</div>



			<div class="ulp-submit-form" style="margin-top: 20px;">

				<input type="submit" value="<?php _e('Save Changes', 'ulp');?>" name="submit" class="btn btn-primary pointer" />

			</div>



		</div>

	</div>



	<div class="ulp-stuffbox">

		<h3 class="ulp-h3"><?php _e('Add new Difficulty', 'ulp');?></h3>

  			<div class="inside">



  				<div class="input-group" style="  max-width: 400px;">

  					<span class="input-group-addon" id="basic-addon1"><?php _e('Slug:', 'ulp');?></span>

  					<input type="text" class="form-control" value="" name="slug" />

  				</div>



  				<div class="input-group" style="  max-width: 400px; margin-top:20px; margin-bottom:30px;">

  					<span class="input-group-addon" id="basic-addon1"><?php _e('Label:', 'ulp');?></span>

  					<input type="text" class="form-control" value="" name="label" />

  				</div>



  				<div class="ulp-submit-form">

  					<input type="submit" value="<?php _e('Add new Dificulty', 'ulp');?>" name="submit" class="btn btn-primary pointer" />

  				</div>



  			</div>

	</div>



</form>



<?php if ($data ['course_difficulty_types']!==FALSE && count($data ['course_difficulty_types'])>0):?>

    <div class="ulp-wrapper">

      <table class="wp-list-table widefat fixed tags ulp-admin-tables striped ">

        <thead  class="thead-inverse">

          <tr>

            <th class="manage-column">Slug</th>

            <th class="manage-column">Label</th>

            <th class="manage-column" style="width:80px; text-align: center;">Delete</th>

          </tr>

        </thead>

        <tbody>

          <?php	foreach ($data ['course_difficulty_types'] as $slug=>$label):?>

              <tr id="<?php echo 'ulp_div_' . $slug;?>">

                <td><div style="color: #21759b; font-weight:bold;font-family: 'Oswald', arial, sans-serif !important;font-size: 14px;font-weight: 400;"><?php echo $slug;?></div></td>

                <td><?php echo $label;?></td>

                <td style="text-align: center;"><i class="fa-ulp fa-remove-ulp" onClick="ulpRemoveDifficultyType('<?php echo $slug;?>');" style="cursor: pointer;"></i></td>

              </tr>

          <?php endforeach;	?>

        </tbody>

      </table>

    </div>

<?php endif;?>

