mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Domain editing for client
This commit is contained in:
parent
ef0eb7cbc6
commit
92984e19dd
29 changed files with 358 additions and 54 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue