We apply a density functional theory to describe properties of a restricted primitive model of an ionic fluid in slit-like pores. The pore walls are modified by grafted chains. The chains are built of uncharged or charged segments. We study the influence of modification of the pore walls on the structure, adsorption, ion selectivity, and the electric double layer capacitance of ionic fluid under confinement. The brush built of uncharged segments acts as a collection of obstacles in the walls vicinity. Consequently, separation of charges requires higher voltages, in comparison to the models without brushes. At high grafting densities the formation of crowding-type structure is inhibited. The double layer structure becomes more complex in various aspects, if the brushes are built of charged segments. In particular, the evolution of the brush height with the bulk fluid density and with the charge on the walls depends on the length of the blocks of charged spheres as well as on the distribution of charged species along chains. We also investigated how the dependence of the double layer capacitance on the electrostatic potential (or on the charge on the walls) changes with grafting density, the chain length, distribution of charges along the chain, the bulk fluid density, and, finally, with the pore width. The shape of the electric double layer capacitance vs. voltage changes from a camel-like to bell-like shape, if the bulk fluid density changes from low to moderate and high. If the bulk density is appropriately chosen, it is possible to alter the shape of this curve from the double hump to single hump by changing the grafting density. Moreover, in narrow pores one can observe the capacitance curve with even three humps for a certain set of parameters describing brush. This behavior illustrates how strong the influence of brushes on the electric double layer properties can be, particularly for ionic fluids in narrow pores.