diff --git a/app/views/records/_inline_form.html.erb b/app/views/records/_inline_form.html.erb new file mode 100644 index 0000000..9fb29ce --- /dev/null +++ b/app/views/records/_inline_form.html.erb @@ -0,0 +1,14 @@ +
+<%= bootstrap_form_for([@domain, @record], layout: :inline) do |f| %> + + <%= f.text_field :name, value: @record.short, label: '', append: name_field_append(@record), skip_label: true %> + <%= f.text_field :ttl, skip_label: true, placeholder: 'ttl' %> + IN + <%= f.select :type, record_types_for_domain(@domain), skip_label: true %> + <%= f.text_field :prio, placeholder: 'prio', skip_label: true, class: 'autodisable', disabled: !@record.supports_prio? %> + <%= f.text_field :content, skip_label: true %> + + <%= f.submit 'Add', class: 'btn btn-primary' %> + +<% end %> +