From b683998b1a02ba75a404ba16e4fc4d18cab7d3a8 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 8 Oct 2025 14:01:31 +0300 Subject: [PATCH] update icons on forms --- www/common/common-icons.js | 2 +- www/form/inner.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/common/common-icons.js b/www/common/common-icons.js index ed19b6c61..6cf07275b 100644 --- a/www/common/common-icons.js +++ b/www/common/common-icons.js @@ -116,7 +116,6 @@ define([ "minus": "minus", "alert": "triangle-alert", "sort-amount-desc": "arrow-down-wide-narrow", - "export-sheet": "sheet", "announcement": "megaphone", "reply": "reply", "comment": "message-square-text", @@ -163,6 +162,7 @@ define([ "calendar-reminder": "bell-ring", "calendar-location": "map-pin", "calendar-description": "align-justify", + "closing-date": "calendar-x", // Contacts "contacts": "contact-round", "contacts-book": "book-user", diff --git a/www/form/inner.js b/www/form/inner.js index c14fa98d5..79c2cab2c 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -2886,7 +2886,7 @@ define([ }]; var dropdownExport = { buttonContent: [ - Icons.get('download'), + Icons.get('export'), h('span', Messages.exportButton) ], buttonCls: 'btn btn-primary', @@ -2898,7 +2898,7 @@ define([ // Export in "sheet" var export2Button = h('button.btn.btn-primary', [ - Icons.get('export-sheet'), + Icons.get('sheet'), Messages.form_exportSheet ]); $(export2Button).appendTo($controls); @@ -2918,7 +2918,7 @@ define([ if (!Array.isArray(owners) || !owners.length) { return; } var owned = APP.common.isOwned(owners); if (!owned) { return; } - var button = h('button.btn.btn-danger.cp-form-results-delete', Messages.form_deleteAll); + var button = h('button.btn.btn-danger.cp-form-results-delete', [Icons.get('trash-full'), Messages.form_deleteAll]); UI.confirmButton(button, {classes:'danger'}, function () { var sframeChan = framework._.sfCommon.getSframeChannel(); sframeChan.query('Q_FORM_DELETE_ALL_ANSWERS', { @@ -2935,7 +2935,7 @@ define([ var summary = true; var form = content.form; - var switchMode = h('button.btn.btn-secondary', Messages.form_showIndividual); + var switchMode = h('button.btn.btn-secondary', [Icons.get('list'), Messages.form_showIndividual]); $controls.hide().append(switchMode); @@ -5042,7 +5042,7 @@ define([ $endDateStr.text(text); - var button = h('button.btn.btn-secondary', [Icons.get('expire'), buttonTxt]); + var button = h('button.btn.btn-secondary', [Icons.get('closing-date'), buttonTxt]); var $button = $(button).click(function () { $button.attr('disabled', 'disabled');