Initial Commit

This commit is contained in:
2019-11-21 12:25:31 +01:00
commit f4aabcb9b1
13959 changed files with 787761 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
{form name="admin.order.creation.create.form"}
<tr id="tr-{$position}" class="title-without-tabs">
<td colspan="2">
<table class="table table-striped table-condensed">
<caption>
<div class="col-md-11"></div>
<div class="col-md-1">
<a class="btn btn-default btn-xs item-ajax-delete" data-toggle="modal" title="{intl l='Remove' d='ordercreation'}" data-target="tr-{$position}" href="#">
<i class="glyphicon glyphicon-trash"></i>
</a>
</div>
</caption>
<tbody>
<tr>
<td>
<label for="category{$position}" class="control-label">{intl l="Category" d="ordercreation"}</label>
<select id="category{$position}" required="required" class="form-control category-list" data-target="item{$position}" data-destination="tr-item{$position}">
<option>{intl l="Choose"}</option>
{loop name="cat-parent" type="category-tree" category="0" visible="*" product="0"}
<option value="{$ID}" style="padding-left: {3 + $LEVEL * 20}px">{$TITLE}</option>
{/loop}
</select>
</td>
<td></td>
</tr>
<tr id="tr-item{$position}" class="hide">
<td>
{form_field form=$form field='product_sale_element_id' value_key=$position}
<label for="item{$position}" class="control-label">{$label}</label>
<select id="item{$position}" class="form-control" name="{$name}"></select>
{/form_field}
</td>
<td>
{form_field form=$form field='quantity' value_key=$position}
<label for="quantity{$position}" class="control-label">{$label}</label>
<input type="text" class="form-control" name="{$name}" value="1">
{/form_field}
</td>
</tr>
</tbody>
</table>
</td>
<td></td>
</tr>
{/form}

View File

@@ -0,0 +1,107 @@
{form name="admin.order.creation.create.form"}
{* Capture the dialog body, to pass it to the generic dialog *}
{capture "order_create_dialog"}
{form_hidden_fields form=$form}
{form_field form=$form field='customer_id'}
<input type="hidden" name="{$name}" value="{$ID}">
{/form_field}
<table class="table">
<thead>
<tr>
<td>
{form_field form=$form field='delivery_address_id'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{$label} * : </label>
<select name="{$name}" id="{$label_attr.for}" class="form-control" required="required">
<option value="0">{intl l="Choose" d="ordercreation"}</option>
{loop type="address" name="address-delivery" customer=$ID}
<option value="{$ID}">{$LABEL}</option>
{/loop}
</select>
</div>
{/form_field}
</td>
<td>
{form_field form=$form field='invoice_address_id'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
<select name="{$name}" id="{$label_attr.for}" class="form-control">
{loop type="address" name="address-invoice" customer=$ID}
<option value="{$ID}">{$LABEL}</option>
{/loop}
</select>
</div>
{/form_field}
</td>
</tr>
</thead>
<tbody id="body-order-cart">
</tbody>
<tfoot>
<tr>
<td colspan="2">
<a id="add-cart-item" class="btn btn-default btn-primary action-btn" title="{intl l='Add product' d='ordercreation'}" href="#" data-toggle="modal">
<span>{intl l="Add product" d="ordercreation"}</span>
</a>
</td>
</tr>
<tr>
<td>
{form_field form=$form field='delivery_module_id'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{$label} * : </label><br />
<input type="hidden" name="{$name}" id="delivery_module_id" value="" />
<div id="list-delivery">
<div class="alert alert-danger">
{intl l="Choose a delivery address first" d="ordercreation"}
</div>
</div>
<!--
<select name="{$name}" id="{$label_attr.for}" class="form-control" required="required">
<option>{intl l="Choose" d="ordercreation"}</option>
{loop type="module" name="module-delivery" module_type="2" active="1"}
<option value="{$ID}">{$TITLE}</option>
{/loop}
</select>
-->
</div>
{/form_field}
</td>
<td>
{form_field form=$form field='payment_module_id'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
<select name="{$name}" id="{$label_attr.for}" class="form-control">
{loop type="module" name="module-payment" module_type="3" active="1"}
<option value="{$ID}">{$TITLE}</option>
{/loop}
</select>
</div>
{/form_field}
</td>
</tr>
</tfoot>
</table>
{/capture}
{include
file = "includes/generic-create-dialog.html"
dialog_id = "order_create_dialog"
dialog_title = {intl l="Generate a new order" d="ordercreation"}
dialog_body = {$smarty.capture.order_create_dialog nofilter}
dialog_ok_label = {intl l="Save"}
form_action = {url path='/admin/module/OrderCreation/order/create'}
form_enctype = {form_enctype form=$form}
form_error_message = $form_error_message
}
{/form}