fix ask setting
This commit is contained in:
parent
81f546c902
commit
905020f18d
|
@ -85,7 +85,7 @@ class Admin::AsksController < OrbitAdminController
|
||||||
redirect_to "/#{locale}/admin/asks/category_setting"
|
redirect_to "/#{locale}/admin/asks/category_setting"
|
||||||
end
|
end
|
||||||
def setting
|
def setting
|
||||||
@ask_setting = AskSetting.first
|
@default_ask_setting = AskSetting.first
|
||||||
@url = setting_save_admin_asks_path
|
@url = setting_save_admin_asks_path
|
||||||
end
|
end
|
||||||
def backend_table_setting
|
def backend_table_setting
|
||||||
|
|
|
@ -28,6 +28,6 @@
|
||||||
$('.add_new_options').sortable({'handle':'.icons-list-2'});
|
$('.add_new_options').sortable({'handle':'.icons-list-2'});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<%= form_for @ask_setting,method: 'post',url: @url,html: { class: 'form-horizontal main-forms previewable' } do |f| %>
|
<%= form_for @default_ask_setting,method: 'post',url: @url,html: { class: 'form-horizontal main-forms previewable' } do |f| %>
|
||||||
<%= render partial: 'ask_setting',locals:{ask_setting: @ask_setting,f: f,submit_text: t('submit'), :@has_email_regex => true} %>
|
<%= render partial: 'ask_setting',locals:{ask_setting: @default_ask_setting,f: f,submit_text: t('submit'), :@has_email_regex => true} %>
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue