update icons on forms

This commit is contained in:
daria 2025-10-08 14:01:31 +03:00
parent 175f9870f0
commit b683998b1a
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
2 changed files with 6 additions and 6 deletions

View File

@ -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",

View File

@ -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');