Skip to content

Commit 25cb6b7

Browse files
committed
feat: use font awesome for all icons
Signed-off-by: Thierry Bugier <[email protected]>
1 parent c032181 commit 25cb6b7

23 files changed

+9
-13
lines changed

inc/fields/descriptionfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ public function isAnonymousFormCompatible() {
132132
}
133133

134134
public function getHtmlIcon() {
135-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-description-field.png" title="" />';
135+
return '<i class="fas fa-align-left" aria-hidden="true"></i>';
136136
}
137137
}

inc/fields/dropdownfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public function parseObjectProperties(
655655
}
656656

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

661661
/**

inc/fields/floatfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,6 @@ public function isAnonymousFormCompatible() {
277277
}
278278

279279
public function getHtmlIcon() {
280-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-float-field.png" title="" />';
280+
return '<i class="fas fa-square-root-alt" aria-hidden="true"></i>';
281281
}
282282
}

inc/fields/glpiselectfield.class.php

-4
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,4 @@ public function lessThan($value) {
180180
public function isAnonymousFormCompatible() {
181181
return false;
182182
}
183-
184-
public function getHtmlIcon() {
185-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-glpiselect-field.png" title="" />';
186-
}
187183
}

inc/fields/integerfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,6 @@ public function isAnonymousFormCompatible() {
277277
}
278278

279279
public function getHtmlIcon() {
280-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-integer-field.png" title="" />';
280+
return '<i class="fas fa-square-root-alt" aria-hidden="true"></i>';
281281
}
282282
}

inc/fields/multiselectfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,6 @@ public function isAnonymousFormCompatible() {
321321
}
322322

323323
public function getHtmlIcon() {
324-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-multiselect-field.png" title="" />';
324+
return '<i class="fas fa-check-double" aria-hidden="true"></i>';
325325
}
326326
}

inc/fields/selectfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ public function isAnonymousFormCompatible() {
161161
}
162162

163163
public function getHtmlIcon() {
164-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-select-field.png" title="" />';
164+
return '<i class="fas fa-caret-square-down" aria-hidden="true"></i>';
165165
}
166166
}

inc/fields/tagfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,6 @@ public function isAnonymousFormCompatible() {
226226
}
227227

228228
public function getHtmlIcon() {
229-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-tag-field.png" title="" />';
229+
return '<i class="fas fa-tag" aria-hidden="true"></i>';
230230
}
231231
}

inc/fields/textareafield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ public function isAnonymousFormCompatible() {
213213
}
214214

215215
public function getHtmlIcon() {
216-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-textarea-field.png" title="" />';
216+
return '<i class="far fa-comment-dots" aria-hidden="true"></i>';
217217
}
218218
}

inc/fields/textfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ public function isAnonymousFormCompatible() {
262262
}
263263

264264
public function getHtmlIcon() {
265-
return '<img src="' . FORMCREATOR_ROOTDOC . '/pics/ui-text-field.png" title="" />';
265+
return '<i class="far fa-comment-dots" aria-hidden="true"></i>';
266266
}
267267
}

pics/calendar.gif

-523 Bytes
Binary file not shown.

pics/ui-description-field.png

-432 Bytes
Binary file not shown.

pics/ui-float-field.png

-359 Bytes
Binary file not shown.

pics/ui-glpiselect-field.png

-454 Bytes
Binary file not shown.

pics/ui-integer-field.png

-359 Bytes
Binary file not shown.

pics/ui-multiselect-field.png

-3.03 KB
Binary file not shown.

pics/ui-password-field.png

-455 Bytes
Binary file not shown.

pics/ui-phone-field.png

-579 Bytes
Binary file not shown.

pics/ui-radio-field.png

-478 Bytes
Binary file not shown.

pics/ui-select-field.png

-454 Bytes
Binary file not shown.

pics/ui-tag-field.png

-3.03 KB
Binary file not shown.

pics/ui-text-field.png

-359 Bytes
Binary file not shown.

pics/ui-textarea-field.png

-491 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)