mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
21 lines
733 B
Text
21 lines
733 B
Text
= form_for([:admin, @domain], html: { class: 'form-horizontal' }) do |f|
|
|
= render 'shared/errors', object: @domain
|
|
- unless @domain.parent_valid?
|
|
%hr
|
|
.row
|
|
.col-md-12
|
|
%ul.nav.nav-tabs{:role => "tablist", id: 'tabs'}
|
|
- li_class = @domain.statuses_tab_valid? ? nil : 'error-tab'
|
|
%li{class: li_class}
|
|
%a{"data-toggle" => "tab", :href => "#statuses-tab", :role => "tab"}= t('statuses')
|
|
/ Tab panes
|
|
.tab-content{style:'margin-top: 20px;'}
|
|
#general-tab.tab-pane.active
|
|
= render 'admin/domains/form_partials/statuses', f: f
|
|
.row
|
|
.col-md-12.text-right
|
|
= button_tag(t('save'), class: 'btn btn-primary')
|
|
|
|
:coffee
|
|
$ ->
|
|
$("#tabs a:first").tab "show"
|