Domain editing for client

This commit is contained in:
Martin Lensment 2014-09-23 17:26:38 +03:00
parent ef0eb7cbc6
commit 92984e19dd
29 changed files with 358 additions and 54 deletions

View file

@ -1,5 +1,5 @@
= form_for([:admin, @domain]) do |f|
= render 'admin/shared/errors', object: @domain
= render 'shared/errors', object: @domain
- unless @domain.parent_valid?
%hr
.row
@ -27,6 +27,15 @@
= button_tag(t('shared.save'), class: 'btn btn-primary')
:javascript
$(function () {
$(function() {
$('#tabs a:first').tab('show')
})
$("#domain_contacts").nestedAttributes({
bindAddTo: $(".add-domain-contact"),
afterAdd: function(item) {
item.find('.errors').html('');
item.find('.js-contact-id').val('')
Autocomplete.bindAdminContactSearch();
}
});