<% if current_resource.persisted? %> <%= admin_form_for [:"admin", current_resource], :html => {:multipart => true} do |f| -%> <%= f.errors %> <%= f.inputs do %> <%= f.input :locale, :input_html => {:readonly => true} %> <%= f.input :key, :input_html => {:readonly => true} %> <% if current_resource.kind.to_s == "text" && current_resource.options[:markup] %> <%= f.input :"#{current_resource.kind}_value", :label => t('fullstack.admin.value', :default => "Value"), :as => :markup %> <% elsif current_resource.kind.to_s == "text" && current_resource.options[:simple_markup] %> <%= f.input :"#{current_resource.kind}_value", :label => t('fullstack.admin.value', :default => "Value"), :as => :simple_markup %> <% else %> <%= f.input :"#{current_resource.kind}_value", :label => t('fullstack.admin.value', :default => "Value") %> <% end %> <% end -%> <%= f.actions do %> <%= f.resource_submit %> <% end %> <% end -%> <% end %>