crewsportswear update as of 3_18_19
This commit is contained in:
@@ -996,5 +996,102 @@ class DesignerController extends Controller {
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
public function addNewRowNameAndNumber(Request $request){
|
||||
|
||||
$post = $request->all();
|
||||
$trCount = $post['itemCount'];
|
||||
$tempCode = $post['tempCode'];
|
||||
|
||||
$newDesignerModel = new DesignerModel;
|
||||
$jersey_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'JERSEY');
|
||||
$shorts_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'SHORTS');
|
||||
|
||||
?>
|
||||
|
||||
<tr class="<?php echo 'table-tr-' . $trCount ?>">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Name" >
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]" id="order_number">
|
||||
<option value="none">none</option>
|
||||
<?php
|
||||
for($i = 0; $i <= 99; $i++){
|
||||
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||
}
|
||||
?>
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center roster-action-column" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<button type="button" class="btn btn-danger btn-sm removeRow-name-and-number btn-roster-action" data-toggle="tooltip" title="Remove"><i class="fa fa-remove" aria-hidden="true"></i></button>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="addnew-btn-tbl-row">
|
||||
<td colspan="4" ><button type="button" id="addNewRow_name_and_number" class="btn btn-link btn-sm pull-left" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i> Add Row</button></td>
|
||||
<!-- <td colspan="2" ><button type="button" class="btn btn-link btn-sm pull-right" data-toggle="tooltip" title="Add Another">Manage List</button></td> -->
|
||||
<td style="padding: 4px !important; border-top: none"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
public function addNewRowNameNumberAndSize(Request $request){
|
||||
|
||||
$post = $request->all();
|
||||
$trCount = $post['itemCount'];
|
||||
$tempCode = $post['tempCode'];
|
||||
|
||||
$newDesignerModel = new DesignerModel;
|
||||
$jersey_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'JERSEY');
|
||||
$shorts_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'SHORTS');
|
||||
|
||||
?>
|
||||
|
||||
<tr class="<?php echo 'table-tr-' . $trCount ?>">
|
||||
<td>
|
||||
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Name" >
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm roster-input" name="order_number[]" id="order_number">
|
||||
<option value="none">none</option>
|
||||
<?php
|
||||
for($i = 0; $i <= 99; $i++){
|
||||
echo '<option value="'.$i.'">'.$i.'</option>';
|
||||
}
|
||||
?>
|
||||
<option value="00">00</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control input-sm order-size roster-input" name="order_size[]" id="<?php echo 'order_size_' . $trCount ?>" data-row-number="<?php echo $trCount ?>">
|
||||
<?php
|
||||
foreach($jersey_sizes as $j_size){
|
||||
echo '<option value="'.$j_size.'">'.$j_size.'</option>';
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td id="action-column" class="text-center roster-action-column" style="padding: 4px !important; border-top: none">
|
||||
<span class="tr-remove-btn">
|
||||
<button type="button" class="btn btn-danger btn-sm removeRow-name-and-number btn-roster-action" data-toggle="tooltip" title="Remove"><i class="fa fa-remove" aria-hidden="true"></i></button>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr id="addnew-btn-tbl-row">
|
||||
<td colspan="4" ><button type="button" id="addNewRow_name_and_number" class="btn btn-link btn-sm pull-left" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i> Add Row</button></td>
|
||||
<!-- <td colspan="2" ><button type="button" class="btn btn-link btn-sm pull-right" data-toggle="tooltip" title="Add Another">Manage List</button></td> -->
|
||||
<td style="padding: 4px !important; border-top: none"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user