Skip to content

Commit

Permalink
feat(wizard): replace sort label by icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored May 10, 2022
1 parent b5ce782 commit f7320a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1039,3 +1039,8 @@ a.plugin_formcreator_formTile_title {
.formcreator_dashboard_container .dashboard .big-number .label {
font-size: 12px !important;
}

.plugin_formcreator_sort .fa {
padding-left: 5px;
color: #717171;
}
8 changes: 6 additions & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,17 @@ public function showWizard() : void {
$sort_order = PluginFormcreatorEntityconfig::getUsedConfig('sort_order', Session::getActiveEntity());
$selected = $sort_order == PluginFormcreatorEntityconfig::CONFIG_SORT_POPULARITY ? 'checked="checked"' : '';
echo '<input type="radio" class="-check-input" id="plugin_formcreator_mostPopular" name="sort" value="mostPopularSort" '.$selected.' onclick="showTiles(tiles)"/>';
echo '<label for="plugin_formcreator_mostPopular">&nbsp;'.$sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_POPULARITY] .'</label>';
echo '<label for="plugin_formcreator_mostPopular">';
echo '<a title="' . $sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_POPULARITY] . '"><i class="fa fa-star" aria-hidden="true"></i></a>';
echo '</label>';
echo '</span>';
echo '&nbsp;';
echo '<span class="radios">';
$selected = $sort_order == PluginFormcreatorEntityconfig::CONFIG_SORT_ALPHABETICAL ? 'checked="checked"' : '';
echo '<input type="radio" class="-check-input" id="plugin_formcreator_alphabetic" name="sort" value="alphabeticSort" '.$selected.' onclick="showTiles(tiles)"/>';
echo '<label for="plugin_formcreator_alphabetic">&nbsp;'.$sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_ALPHABETICAL].'</label>';
echo '<label for="plugin_formcreator_alphabetic">';
echo '<a title="' . $sort_settings[PluginFormcreatorEntityConfig::CONFIG_SORT_ALPHABETICAL] . '"><i class="fa fa-arrow-down-a-z"></i></a>';
echo '</label>';
echo '</span>';
echo '</div>';
echo '<div id="plugin_formcreator_wizard_forms">';
Expand Down

0 comments on commit f7320a5

Please sign in to comment.