Preordernotification: Can attach Borderpoint image from Mapbox API now
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/header.php"); ?>
|
||||
<?php //var_dump($notification->filter);exit;?>
|
||||
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
@@ -93,6 +94,18 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="status_id">Bestellstatus</label>
|
||||
<div class="col-lg-10">
|
||||
<select class="form-control" name="status_id[]" id="status_id" multiple="multiple">
|
||||
<?php foreach(PreorderstatusModel::getAll() as $status): ?>
|
||||
<option value="<?=$status->id?>" <?=($notification && array_key_exists("status_id", $notification->filter) && is_array($notification->filter["status_id"]) && in_array($status->id, $notification->filter["status_id"])) ? "selected='selected'" : ""?>><?=$status->code?> - <?=$status->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--div class="form-group row">
|
||||
@@ -129,6 +142,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="mt-4">Übergabepunkt Bilddatei</h4>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-10">
|
||||
<select class="form-control" name="attach_borderpoint" id="attach_borderpoint">
|
||||
<option value="0" <?=(!$notification->attach_borderpoint) ? "selected='selected'" : ""?>>Nicht anhängen</option>
|
||||
<option value="1" <?=($notification->attach_borderpoint) ? "selected='selected'" : ""?>>Anhängen</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(is_array($notification->files) && count($notification->files)): ?>
|
||||
<div class="row">
|
||||
@@ -349,6 +372,11 @@
|
||||
allowClear: true,
|
||||
placeholder: ""
|
||||
});
|
||||
$("#status_id").select2({
|
||||
allowClear: true,
|
||||
placeholder: "",
|
||||
closeOnSelect: false
|
||||
});
|
||||
});
|
||||
|
||||
function deleteFile(id) {
|
||||
|
||||
Reference in New Issue
Block a user