Skip to content

Commit

Permalink
feat: use font awesome for all icons
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 8, 2020
1 parent c032181 commit 25cb6b7
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion inc/fields/descriptionfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-description-field.png" title="" />';
return '<i class="fas fa-align-left" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public function parseObjectProperties(
}

public function getHtmlIcon() {
return '<i class="fa fa-caret-down" aria-hidden="true"></i>';
return '<i class="fas fa-caret-square-down" aria-hidden="true"></i>';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/fields/floatfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-float-field.png" title="" />';
return '<i class="fas fa-square-root-alt" aria-hidden="true"></i>';
}
}
4 changes: 0 additions & 4 deletions inc/fields/glpiselectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,4 @@ public function lessThan($value) {
public function isAnonymousFormCompatible() {
return false;
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-glpiselect-field.png" title="" />';
}
}
2 changes: 1 addition & 1 deletion inc/fields/integerfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-integer-field.png" title="" />';
return '<i class="fas fa-square-root-alt" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/multiselectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-multiselect-field.png" title="" />';
return '<i class="fas fa-check-double" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/selectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-select-field.png" title="" />';
return '<i class="fas fa-caret-square-down" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/tagfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-tag-field.png" title="" />';
return '<i class="fas fa-tag" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/textareafield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-textarea-field.png" title="" />';
return '<i class="far fa-comment-dots" aria-hidden="true"></i>';
}
}
2 changes: 1 addition & 1 deletion inc/fields/textfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,6 @@ public function isAnonymousFormCompatible() {
}

public function getHtmlIcon() {
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-text-field.png" title="" />';
return '<i class="far fa-comment-dots" aria-hidden="true"></i>';
}
}
Binary file removed pics/calendar.gif
Binary file not shown.
Binary file removed pics/ui-description-field.png
Binary file not shown.
Binary file removed pics/ui-float-field.png
Binary file not shown.
Binary file removed pics/ui-glpiselect-field.png
Binary file not shown.
Binary file removed pics/ui-integer-field.png
Binary file not shown.
Binary file removed pics/ui-multiselect-field.png
Binary file not shown.
Binary file removed pics/ui-password-field.png
Binary file not shown.
Binary file removed pics/ui-phone-field.png
Binary file not shown.
Binary file removed pics/ui-radio-field.png
Binary file not shown.
Binary file removed pics/ui-select-field.png
Binary file not shown.
Binary file removed pics/ui-tag-field.png
Binary file not shown.
Binary file removed pics/ui-text-field.png
Binary file not shown.
Binary file removed pics/ui-textarea-field.png
Binary file not shown.

0 comments on commit 25cb6b7

Please sign in to comment.