Parcourir la source

- Employee : Fix input inutile

Théo LECOQ il y a 2 ans
Parent
commit
18c02e2be1
2 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 1
      plugin/employee/action.php
  2. 0 2
      plugin/employee/page.sheet.employee.php

+ 0 - 1
plugin/employee/action.php

@@ -151,7 +151,6 @@
 		$item->workplace = $_['workplace'];
 		if(!empty($_['account'])) $item->account = $_['account'];
 		if(isset($_['hardware'])) $item->hardware = json_encode($_['hardware']);
-		$item->date = timestamp_date($_['date']);
 		$item->comment = $_['comment'];
 		$item->state = Employee::ACTIVE;
 		$item->save();

+ 0 - 2
plugin/employee/page.sheet.employee.php

@@ -82,8 +82,6 @@ $hardwares = !empty($employee->hardware) ? json_decode($employee->hardware,true)
 				<label><input type="checkbox" <?php echo (in_array($item->id, $hardwares) ? 'checked="checked"':'' ) ?> data-id="<?php echo $item->id; ?>" class="hardware" data-type="checkbox"> <?php echo $item->label; ?></label>
 			<?php  endforeach; ?>
 			<br/>
-			<label for="date">Date</label>
-			<input  value="<?php  if(!empty($employee->date)) echo date('d/m/Y',$employee->date); ?>" class="form-control"  type="text"  data-type="date"  title="format jj/mm/aaaa"  placeholder="JJ/MM/AAAA"  id="date" >
 			<br/>
 			<label for="comment">Information sur le recrutement</label>
 			<textarea  class="" type="text" data-type="wysiwyg" id="comment"><?php echo $employee->comment; ?></textarea>