LoginSignup
0

More than 1 year has passed since last update.

ActiveAdminでhas_manyな要素の追加するボタンの表示制御

Posted at
active_admin.scss
/* ActiveAdminでhas_manyな要素の追加するボタンの表示制御 */
  li.has_many_container {
    .inputs.has_many_fields + a {
      display: display;
    }
    .inputs.has_many_fields:nth-of-type(5) + a.has_many_add {
      display: none;
    }
    .inputs.has_many_fields:nth-of-type(5) + input + a.has_many_add {
      display: none;
    }
  }

nth-childではまったので注意

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0