Project

General

Profile

Actions

Refactor #12979

closed

Add a helper for primary buttons

Added by Alon Goldboim over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Fixed in Releases:
Found in Releases:

Description

In most of the views there is a create button(example "New Host") that we need to apply btn-success css class on it(btn-primary once patterfly will be merged), we are now doing so automatically by using JavaScript which is considered bad practice(application.js:66), we need to remove it.

In order to achieve that:
  • create a helper for create_button.
  • apply it in needed views.
  • remove js functionality (application.js:66).

Related issues 7 (0 open7 closed)

Related to Discovery - Refactor #14360: Use new_link for new buttonsClosedOri Rabin03/28/2016Actions
Related to Foreman Remote Execution - Bug #14506: Use new button helpersClosedStephen Benjamin04/06/2016Actions
Related to Foreman - Bug #14555: Welcome pages missing use of new_link helperClosedStephen Benjamin04/08/2016Actions
Related to Foreman - Bug #14564: some buttons are no longer visible as buttonsClosedTomer Brisker04/11/2016Actions
Related to Foreman - Bug #14977: report show toolbar buttons are just linksClosedOndřej Pražák05/10/2016Actions
Related to Foreman - Bug #15431: smart proxy show buttons are missing css classes.ClosedDominic Cleal06/16/2016Actions
Related to Foreman Remote Execution - Bug #15475: btn misses css class under console viewRejected06/21/2016Actions
Actions

Also available in: Atom PDF