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

View File

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

View File

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