   def build_item(%{type: :input, resource: resource, name: field_name, opts: opts}, 
        _resource, model_name, errors) do
     errors = get_errors(errors, field_name)
-    label = Map.get opts, :label, field_name
+    label = get_label(field_name, opts)
     wrap_item(field_name, model_name, label, errors, fn(ext_name) -> 
       Map.put_new(opts, :type, :text)
       |> Map.put_new(:maxlength, "255")

        #   IO.puts "----> form_view item: #{inspect i}"
        # end
        # IO.puts "----------------------------"
        ExAdmin.Form.build_form(conn, var!(resource), items, var!(params), script_block)
      end
    end
  end

    end

    quote location: :keep, bind_quoted: [resource: escape(resource), contents: escape(contents)] do
      def form_view(var!(conn), unquote(resource) = var!(resource), var!(params) = params) do 
        import ExAdmin.Register, except: [actions: 1]
        # var!(query_options) = []
        var!(input_blocks, ExAdmin.Form) = [] 
