Skip to content

Commit f7320a5

Browse files
authored
feat(wizard): replace sort label by icon
1 parent b5ce782 commit f7320a5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

css/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,3 +1039,8 @@ a.plugin_formcreator_formTile_title {
10391039
.formcreator_dashboard_container .dashboard .big-number .label {
10401040
font-size: 12px !important;
10411041
}
1042+
1043+
.plugin_formcreator_sort .fa {
1044+
padding-left: 5px;
1045+
color: #717171;
1046+
}

inc/form.class.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,13 +662,17 @@ public function showWizard() : void {
662662
$sort_order = PluginFormcreatorEntityconfig::getUsedConfig('sort_order', Session::getActiveEntity());
663663
$selected = $sort_order == PluginFormcreatorEntityconfig::CONFIG_SORT_POPULARITY ? 'checked="checked"' : '';
664664
echo '<input type="radio" class="-check-input" id="plugin_formcreator_mostPopular" name="sort" value="mostPopularSort" '.$selected.' onclick="showTiles(tiles)"/>';
665-
echo '<label for="plugin_formcreator_mostPopular">&nbsp;'.$sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_POPULARITY] .'</label>';
665+
echo '<label for="plugin_formcreator_mostPopular">';
666+
echo '<a title="' . $sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_POPULARITY] . '"><i class="fa fa-star" aria-hidden="true"></i></a>';
667+
echo '</label>';
666668
echo '</span>';
667669
echo '&nbsp;';
668670
echo '<span class="radios">';
669671
$selected = $sort_order == PluginFormcreatorEntityconfig::CONFIG_SORT_ALPHABETICAL ? 'checked="checked"' : '';
670672
echo '<input type="radio" class="-check-input" id="plugin_formcreator_alphabetic" name="sort" value="alphabeticSort" '.$selected.' onclick="showTiles(tiles)"/>';
671-
echo '<label for="plugin_formcreator_alphabetic">&nbsp;'.$sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_ALPHABETICAL].'</label>';
673+
echo '<label for="plugin_formcreator_alphabetic">';
674+
echo '<a title="' . $sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_ALPHABETICAL] . '"><i class="fa fa-arrow-down-a-z"></i></a>';
675+
echo '</label>';
672676
echo '</span>';
673677
echo '</div>';
674678
echo '<div id="plugin_formcreator_wizard_forms">';

0 commit comments

Comments
 (0)