display customer edit form

This commit is contained in:
Manuel Raynaud
2013-10-04 12:22:22 +02:00
parent 4ec9c54fbe
commit e2ccf3714b
3 changed files with 12 additions and 11 deletions

View File

@@ -27,7 +27,7 @@
<select name="{$name}" id="{$label_attr.for}" class="form-control">
{loop type="title" name="title1"}
<option value="{$ID}">{$LONG}</option>
<option value="{$ID}" {if $value == $ID}selected{/if}>{$LONG}</option>
{/loop}
</select>
</div>
@@ -85,7 +85,7 @@
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
<select name="{$name}" id="{$label_attr.for}" class="form-control">
{loop type="country" name="country1"}
<option value="{$ID}">{$TITLE}</option>
<option value="{$ID}" {if $value == $ID}selected{/if}>{$TITLE}</option>
{/loop}
</select>
</div>

View File

@@ -295,13 +295,11 @@
width: auto;
}
.loading-global{
background: url("@{imgDir}/ajax-loader.gif") no-repeat;
height: 30px;
display: inline-block;
line-height: 30px;
padding-left: 40px;
width: auto;
.modal-backdrop .loading {
left: 50%;
top: 50%;
right: auto;
position: absolute;
}

View File

@@ -390,16 +390,19 @@
$("a.customer-update-address").click(function(e){
var baseUrl = "{url path="/admin/address/update/"}";
//$('body').html('<div class="loading" ></div>');
$('body').append('<div class="modal-backdrop fade in" id="loading-event"><div class="loading"></div></div>');
$.ajax({
method: 'get',
url: baseUrl+$(this).data('id')
}).done(function(data){
//$(".loading").remove();
$("#loading-event").remove();
$("#address-update-modal").html(data);
$("#edit_address_dialog").modal("show");
});
});
$(document).on("hidden.bs.modal", "#edit_address_dialog", function(ev){
$("#edit_address_dialog").remove();
});
});
})(jQuery);