Address: changed country to country_id with Country table
This commit is contained in:
@@ -122,12 +122,16 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="owner_country">Land</label>
|
||||
<input type="text" class="form-control" name="owner_country" id="owner_country" value="<?=$order->owner_country?>" />
|
||||
<label class="form-label" for="owner_country_id">Land</label>
|
||||
<select name="owner_country_id" id="owner_country_id" class="form-control">
|
||||
<?php foreach($countries as $country): ?>
|
||||
<option value="<?=$country->id?>" <?=(($order && $order->owner_country_id == $country->id) || ((!$order || !$order->owner_country_id) && $country->name == "Österreich")) ? "selected='selected'" : ""?>><?=$country->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="form-group">
|
||||
@@ -241,12 +245,16 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="billing_country">Land</label>
|
||||
<input type="text" class="form-control" name="billing_country" id="billing_country" value="<?=$order->billing_country?>" />
|
||||
<label class="form-label" for="billing_country_id">Land</label>
|
||||
<select name="billing_country_id" id="billing_country_id" class="form-control">
|
||||
<?php foreach($countries as $country): ?>
|
||||
<option value="<?=$country->id?>" <?=(($order && $order->billing_country_id == $country->id) || ((!$order || !$order->billing_country_id) && $country->name == "Österreich")) ? "selected='selected'" : ""?>><?=$country->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="form-group">
|
||||
@@ -362,8 +370,12 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="techcontact_country">Land</label>
|
||||
<input type="text" class="form-control" name="techcontact_country" id="techcontact_country" value="<?=$order->techcontact_country?>" />
|
||||
<label class="form-label" for="techcontact_country_id">Land</label>
|
||||
<select name="techcontact_country_id" id="techcontact_country_id" class="form-control">
|
||||
<?php foreach($countries as $country): ?>
|
||||
<option value="<?=$country->id?>" <?=(($order && $order->techcontact_country_id == $country->id) || ((!$order || !$order->techcontact_country_id) && $country->name == "Österreich")) ? "selected='selected'" : ""?>><?=$country->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1360,8 +1372,8 @@
|
||||
|
||||
function validateOrderForm() {
|
||||
var allFields = [
|
||||
"owner_company", "owner_firstname", "owner_lastname", "owner_street", "owner_zip", "owner_city", "owner_country", "owner_phone", "owner_email",
|
||||
"billing_company", "billing_firstname", "billing_lastname", "billing_street", "billing_zip", "billing_city", "billing_country", "billing_phone", "billing_email",
|
||||
"owner_company", "owner_firstname", "owner_lastname", "owner_street", "owner_zip", "owner_city", "owner_country_id", "owner_phone", "owner_email",
|
||||
"billing_company", "billing_firstname", "billing_lastname", "billing_street", "billing_zip", "billing_city", "billing_country_id", "billing_phone", "billing_email",
|
||||
"order_date", "finish_after", "finish_after_comment", "billing_type", "bank_account_bank", "bank_account_owner", "bank_account_iban", "bank_account_bic"
|
||||
];
|
||||
var checkEmpty = [];
|
||||
|
||||
Reference in New Issue
Block a user