EN
We consider a simplified version of the s-f model, supplemented by the intersite Cooper pairs interaction between conduction electrons with opposite spins to investigate ferromagnetic and superconducting properties of an alloy Re_{1-x}^{(1)}Re_{x}^{(2)}X (Re^{(1),(2)} - rare earth elements, X = Rh_{4}B_{4}) using the virtual crystal approximation. For a suitable choice of the model parameters we can reproduce the phase boundaries of the experimentally measured phase diagrams for Er_{1-x}Ho_{x}X, Er_{1-x}Gd_{x} X, Er_{1-x}Tm_{x}X, Ho_{x}Lu_{1-x}X, and Sm_{1-x}Er_{x}X alloys.