Skip to content

Commit bd79fc5

Browse files
committed
feat(wizard): replace home pictogram with text and move below category tree
1 parent 8cb1bc3 commit bd79fc5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

inc/form.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ public function showServiceCatalog() : void {
639639
public function showWizard() : void {
640640
echo '<div id="plugin_formcreator_wizard_categories" class="card">';
641641
echo '<div><h2 class="card-title">'._n("Category", "Categories", 2, 'formcreator').'</h2></div>';
642-
echo '<div><a href="#" id="wizard_seeall"><i class="fas fa-home"></i></a></div>';
642+
echo '<div class="slinky-menu"></div>';
643+
echo '<div><a href="#" id="wizard_seeall">' . __('See all', 'formcreator') . '</a></div>';
643644
echo '</div>';
644645

645646
echo '<div id="plugin_formcreator_wizard_right" class="card">';

js/scripts.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,13 @@ function updateCategoriesView() {
149149
data: {wizard: 'categories'},
150150
dataType: "json"
151151
}).done(function(response) {
152-
var html = '<div class="slinky-menu">';
153-
html = html + buildCategoryList(response);
154-
html = html + '</div>';
152+
var html = buildCategoryList(response);
155153

156154
//Display categories
157-
$('#plugin_formcreator_wizard_categories .slinky-menu').remove();
158-
$('#plugin_formcreator_wizard_categories').append(html);
155+
$('#plugin_formcreator_wizard_categories .slinky-menu').html(html);
159156

160157
// Setup slinky
161-
slinkyCategories = $('#plugin_formcreator_wizard_categories div:nth(2)').slinky({
158+
slinkyCategories = $('#plugin_formcreator_wizard_categories .slinky-menu').slinky({
162159
label: true
163160
});
164161

0 commit comments

Comments
 (0)