partial update create mutations workflow
This commit is contained in:
@@ -65,11 +65,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="notes">Catatan</label>
|
||||
<textarea name="notes" id="notes" class="form-control" rows="3" placeholder="Catatan untuk mutasi ini (opsional)">{{ old('notes') }}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="kt-separator kt-separator--border-dashed kt-separator--space-lg"></div>
|
||||
|
||||
<div class="form-group">
|
||||
@@ -84,24 +79,23 @@
|
||||
<table class="table table-bordered" id="products-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="35%">Produk</th>
|
||||
<th width="15%">Stock Tersedia</th>
|
||||
<th width="15%">Quantity</th>
|
||||
<th width="25%">Catatan</th>
|
||||
<th width="10%">Aksi</th>
|
||||
<th width="40%">Produk</th>
|
||||
<th width="20%">Stock Tersedia</th>
|
||||
<th width="25%">Quantity</th>
|
||||
<th width="15%">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="products-tbody">
|
||||
<tr class="product-row" data-index="0">
|
||||
<td>
|
||||
<select name="products[0][product_id]" class="form-control select2 product-select" required>
|
||||
<select name="products[0][product_id]" class="form-control product-select select2" required>
|
||||
<option value="">Pilih Produk</option>
|
||||
@foreach($products as $product)
|
||||
<option value="{{ $product->id }}">{{ $product->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<td class="text-center">
|
||||
<span class="available-stock text-muted">-</span>
|
||||
</td>
|
||||
<td>
|
||||
@@ -113,12 +107,7 @@
|
||||
placeholder="0"
|
||||
required>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text"
|
||||
name="products[0][notes]"
|
||||
class="form-control"
|
||||
placeholder="Catatan produk (opsional)">
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<button type="button" class="btn btn-danger btn-sm remove-product" disabled>
|
||||
<i class="la la-trash"></i>
|
||||
@@ -133,19 +122,18 @@
|
||||
<div class="alert alert-info">
|
||||
<i class="la la-info-circle"></i>
|
||||
<strong>Informasi:</strong>
|
||||
Mutasi akan dibuat dengan status "Menunggu Persetujuan" dan memerlukan approval sebelum stock dipindahkan.
|
||||
Mutasi akan dikirim ke dealer tujuan. Catatan dapat ditambahkan saat dealer tujuan menerima mutasi.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kt-portlet__foot">
|
||||
<div class="kt-form__actions kt-form__actions--right">
|
||||
<button type="submit" class="btn btn-primary" id="submit-btn">
|
||||
Simpan Mutasi
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary" onclick="window.history.back()">
|
||||
Batal
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary" id="submit-btn">
|
||||
<i class="la la-save"></i>
|
||||
Simpan Mutasi
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user