New icons implementation [SCI-8366]

This commit is contained in:
Giga Chubinidze 2023-06-08 10:33:37 +04:00
parent 1ccfb0b592
commit a777fd5584
208 changed files with 450 additions and 447 deletions

View file

@ -38,7 +38,9 @@
//= require_directory ./access_permissions
//= require sidebar
//= require turbolinks
//= require scinote/enterprise/organization_management/application
//= require scinote/enterprise/audit_trails/application
//= require scinote/enterprise/electronic_signatures/application
// Initialize links for submitting forms. This is useful for submitting
// forms with clicking on links outside form in cases when other than
// GET method is used.
@ -334,7 +336,7 @@ const renderUserNamePopover = (url, fullName, email, html) => {
<h5 class='full-name'>${fullName}</h5>
</div>
<div class='col-xs-3 text-right'>
<span class='fas fa-times' aria-hidden='true'></span>
<span class='sn-icon sn-icon-close-remove' aria-hidden='true'></span>
</div>
</div>
<div class='row'>

View file

@ -6,11 +6,11 @@ var DasboardCalendarWidget = (function() {
return `<script id="calendar-template" type="text/template">
<div class="controls">
<div class="clndr-previous-button">
<div class="btn btn-light icon-btn"><i class="fas fa-angle-double-left"></i></div>
<div class="btn btn-light icon-btn"><i class="sn-icon sn-icon-double-navigate-before"></i></div>
</div>
<div class="clndr-title"><%= month %> <%= year %></div>
<div class="clndr-next-button">
<div class="btn btn-light icon-btn"><i class="fas fa-angle-double-right"></i></div>
<div class="btn btn-light icon-btn"><i class="sn-icon sn-icon sn-icon-double-navigate-after"></i></div>
</div>
</div>
<div class="days-container">

View file

@ -31,7 +31,7 @@ var DasboardQuickStartWidget = (function() {
selectAppearance: 'simple',
optionLabel: (data) => {
if (data.value === 0) {
return `<i class="fas fa-plus"></i>
return `<i class="sn-icon sn-icon-new-task"></i>
<span class="create-new">${I18n.t('dashboard.create_task_modal.filter_create_new')}</span>
<span>"${data.label}"</span>`;
}
@ -61,7 +61,7 @@ var DasboardQuickStartWidget = (function() {
selectAppearance: 'simple',
optionLabel: (data) => {
if (data.value === 0) {
return `<i class="fas fa-plus"></i>
return `<i class="sn-icon sn-icon-new-task"></i>
<span class="create-new">${I18n.t('dashboard.create_task_modal.filter_create_new')}</span>
<span>"${data.label}"</span>`;
}

View file

@ -80,7 +80,7 @@
return `<span class="my-module-tags-color" style="background:${data.params.color}"></span>
${data.label}`;
}
return `<span class="my-module-tags-color new"><i class="fas fa-plus"></i></span>
return `<span class="my-module-tags-color new"><i class="sn-icon sn-icon-new-task"></i></span>
${data.label + ' '}
<span class="my-module-tags-create-new"> ${I18n.t('my_modules.details.create_new_tag')}</span>`;
},

View file

@ -119,7 +119,7 @@ var ExperimnetTable = {
<div ref="dropdown" class="dropdown my-module-menu" data-url="${data.urls.actions_dropdown}">
<div class="btn btn-ligh icon-btn open-my-module-menu" tabindex="0"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" >
<i class="fas fa-ellipsis-h"></i>
<i class="sn-icon sn-icon-more-hori"></i>
</div>
<div class="dropdown-menu dropdown-menu-right">
<a class="open-access-modal hidden" data-action="remote-modal" href="${data.urls.access}"></a>

View file

@ -228,7 +228,7 @@ var globalActivities = (function() {
${dateContainer[0].dataset.periodLabel}
${$('.ga-side .date-selector.filter-block')[0].dataset.periodSelect}
</div>
<i class="fas fa-times"></i>
<i class="sn-icon sn-icon-close-remove"></i>
</div>`).appendTo('.ga-top .ga-tags')
.find('.fa-times').click(() => {
$('.date-selector .date.clear').click();

View file

@ -20,7 +20,7 @@
}
function renderDefaultTemplateHTML(data) {
return data ? '<i class="fas fa-thumbtack"></i>' : '';
return data ? '<i class="sn-icon sn-icon-dashboard"></i>' : '';
}
function renderNameHTML(data, type, row) {

View file

@ -148,7 +148,7 @@
return `<span class="my-module-tags-color" style="background:${data.params.color}"></span>
${data.label}`;
}
return `<span class="my-module-tags-color new"><i class="fas fa-plus"></i></span>
return `<span class="my-module-tags-color new"><i class="sn-icon sn-icon-new-task"></i></span>
${data.label + ' '}
<span class="my-module-tags-create-new"> ${I18n.t('my_modules.details.create_new_tag')}</span>`;
},

View file

@ -188,7 +188,7 @@ var MyModuleRepositories = (function() {
if (row.hasActiveReminders) {
recordName = `<div class="dropdown row-reminders-dropdown"
data-row-reminders-url="${row.rowRemindersUrl}" tabindex='-1'>
<i class="fas fa-bell dropdown-toggle row-reminders-icon"
<i class="sn-icon sn-icon-notifications dropdown-toggle row-reminders-icon"
data-toggle="dropdown" id="rowReminders${row.DT_RowId}}"></i>
<ul class="dropdown-menu" role="menu" aria-labelledby="rowReminders${row.DT_RowId}">
</ul>
@ -286,7 +286,7 @@ var MyModuleRepositories = (function() {
var dataTableWrapper = $(tableContainer).closest('.dataTables_wrapper');
DataTableHelpers.initLengthAppearance(dataTableWrapper);
DataTableHelpers.initSearchField(dataTableWrapper, I18n.t('repositories.show.filter_inventory_items'));
$('<img class="barcode-scanner" src="/images/icon_small/barcode.png"></img>').appendTo($('.search-container'));
$("<i class='sn-icon sn-icon-barcode'></i>").appendTo($('.search-container'));
dataTableWrapper.find('.main-actions, .pagination-row').removeClass('hidden');
if (options.assign_mode) {
renderFullViewAssignButtons();

View file

@ -44,7 +44,7 @@
if (data.preview_url) {
return `<a href="#" class="file-preview-link docx" data-preview-url="${data.preview_url}">
<i class="fas fa-file-word"></i>
<i class="sn-icon sn-icon-file-word"></i>
${I18n.t('projects.reports.index.docx')}
</a>`;
}

View file

@ -67,9 +67,9 @@ var AssetColumnHelper = (function() {
value=""
data-type="RepositoryAssetValue">
<div class="file-upload-button ${empty ? 'new-file' : ''}">
<i class="fas fa-paperclip icon"></i>
<i class="sn-icon sn-icon-files icon"></i>
<label data-placeholder="${placeholder}" for="repository_file_${columnId}_${rowId}">${fileName}</label>
<span class="delete-action fas fa-trash"> </span>
<span class="delete-action sn-icon sn-icon-delete"> </span>
</div>
</div>`);
}

View file

@ -141,7 +141,7 @@ var DateTimeHelper = (function() {
data-datetime-part="date"
data-selected-date="${dateDataValue}"
value='${value}'/>
<i class="fas fa-calendar-alt"></i>
<i class="sn-icon sn-icon-calendar"></i>
</div>
`;
}
@ -154,7 +154,7 @@ var DateTimeHelper = (function() {
data-mask-type="time"
value='${value}'
placeholder="HH:mm"/>
<i class="fas fa-clock"></i>
<i class="sn-icon sn-icon-created"></i>
</div>
`;
}

View file

@ -185,7 +185,7 @@ $.fn.dataTable.render.AssignedTasksValue = function(data, row) {
<div class="sci-input-container right-icon">
<input id="searchAssignedTasks" type="text" class="sci-input-field search-tasks"
placeholder="${I18n.t('repositories.table.assigned_search')}"></input>
<i class="fas fa-times-circle clear-search"></i>
<i class="sn-icon sn-icon-close-remove clear-search"></i>
</div>
<div class="tasks"></div>
</div>
@ -195,7 +195,7 @@ $.fn.dataTable.render.AssignedTasksValue = function(data, row) {
}
if (row.hasActiveReminders) {
return `<div class="dropdown row-reminders-dropdown" data-row-reminders-url="${row.rowRemindersUrl}" tabindex='-1'>
<i class="fas fa-bell dropdown-toggle row-reminders-icon" data-toggle="dropdown"
<i class="sn-icon sn-icon-notifications dropdown-toggle row-reminders-icon" data-toggle="dropdown"
id="rowReminders${row.DT_RowId}}"></i>
<ul class="dropdown-menu" role="menu" aria-labelledby="rowReminders${row.DT_RowId}">
</ul>

View file

@ -528,9 +528,9 @@ var RepositoryDatatable = (function(global) {
let content = $.fn.dataTable.render.AssignedTasksValue(data, row);
let icon;
if (!row.recordEditable) {
icon = `<i class="repository-row-lock-icon fas fa-lock" title="${I18n.t('repositories.table.locked_item')}"></i>`;
icon = `<i class="repository-row-lock-icon sn-icon sn-icon-locked-task" title="${I18n.t('repositories.table.locked_item')}"></i>`;
} else if (EDITABLE) {
icon = '<i class="repository-row-edit-icon fas fa-pencil-alt" data-view-mode="active"></i>';
icon = '<i class="repository-row-edit-icon sn-icon sn-icon-edit" data-view-mode="active"></i>';
} else {
icon = '';
}

View file

@ -12,7 +12,7 @@ var RepositoryStatusColumnType = (function() {
<input placeholder=${I18n.t('libraries.manange_modal_column.name_placeholder')}
class="status-item-field"
type="text"/>
<span class="status-item-icon-trash fas fa-trash"></span>
<span class="status-item-icon-trash sn-icon sn-icon-delete"></span>
</div>`;
}

View file

@ -287,7 +287,7 @@ var RepositoryColumns = (function() {
let colId = $(el).attr('id');
let colIndex = $(el).attr('data-column-index');
let visible = TABLE.column(colIndex).visible();
let visClass = (visible) ? 'fa-eye' : 'fa-eye-slash';
let visClass = (visible) ? 'sn-icon-visibility-show' : 'sn-icon-visibility-hide';
let visLi = (visible) ? '' : 'col-invisible';
let visText = $(TABLE_ID).data('columns-visibility-text');
let customColumn = ($(el).attr('data-type')) ? 'editable' : '';
@ -311,14 +311,14 @@ var RepositoryColumns = (function() {
destroyButton = `<button class="btn icon-btn btn-light delete-repo-column manage-repo-column"
data-action="destroy"
data-modal-url="${destroyUrl}">
<span class="fas fa-trash" title="Delete"></span>
<span class="sn-icon sn-icon-delete" title="Delete"></span>
</button>`;
}
let listItem = `<li class="col-list-el ${visLi} ${customColumn} ${editableRow}" data-position="${colIndex}" data-id="${colId}">
<i class="grippy"></i>
<span class="vis-controls">
<span class="vis fas ${visClass}" title="${visText}"></span>
<span class="vis sn-icon ${visClass}" title="${visText}"></span>
</span>
<span class="text">${generateColumnNameTooltip(thederName)}</span>
<span class="column-type pull-right">${getColumnTypeText(el, colId)}</span>
@ -326,7 +326,7 @@ var RepositoryColumns = (function() {
<button class="btn icon-btn btn-light edit-repo-column manage-repo-column"
data-action="edit"
data-modal-url="${editUrl}">
<span class="fas fa-pencil-alt" title="Edit"></span>
<span class="sn-icon sn-icon-edit" title="Edit"></span>
</button>
${destroyButton}
</span>

View file

@ -30,10 +30,10 @@ var DataTableHelpers = (function() {
$('.dataTables_filter').append(`
<button class="btn btn-light icon-btn search-icon"
title="${I18n.t('repositories.show.button_tooltip.search')}">
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</button>
<div class="sci-input-container right-icon search-container">
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>`).find('.sci-input-container').prepend(tableFilterInput);
$('.dataTables_filter').find('label').remove();

View file

@ -318,11 +318,11 @@
function uploadedAssetPreview(asset, i) {
var html = `<div class="panel panel-default panel-result-attachment-new" data-item-uuid="${asset.uuid}">
<div class="panel-heading">
<span class="fas fa-paperclip"></span>
<span class="sn-icon sn-icon-files"></span>
${I18n.t('assets.drag_n_drop.file_label')}
<div class="pull-right">
<a data-item-id="${asset.uuid}" href="#">
<span class="fas fa-times"></span>
<span class="sn-icon sn-icon-close-remove"></span>
</a>
</div>
</div>

View file

@ -218,7 +218,7 @@ var dropdownSelector = (function() {
if (config.customDropdownIcon) {
return config.customDropdownIcon();
}
return '<i class="fas fa-caret-down right-icon"></i><i class="fas fa-search right-icon simple-dropdown"></i>';
return '<i class="sn-icon sn-icon-close-hide right-icon"></i><i class="sn-icon sn-icon-search right-icon simple-dropdown"></i>';
}
// Set new data
@ -741,7 +741,7 @@ var dropdownSelector = (function() {
var tag = $(`<div class="${tagAppearance} ${customClass}" style="${customStyle ? customStyle(data) : ''}" >
<div class="tag-label">
</div>
<i class="fas fa-times ${selector.data('config').singleSelect ? 'hidden' : ''}"></i>
<i class="sn-icon sn-icon-close-remove ${selector.data('config').singleSelect ? 'hidden' : ''}"></i>
</div>`).insertBefore(container.find('.input-field .search-field'));

View file

@ -1,7 +1,7 @@
function initShowPassword() {
$('.fas.fa-eye.show-password').remove();
$.each($('input[type="password"]'), function(i, e) {
$(`<i class="fas fa-eye show-password"
$(`<i class="sn-icon sn-icon-visibility-show show-password"
style="
cursor: pointer;
z-index: 10;

View file

@ -45,7 +45,7 @@
tagClass: 'users-dropdown-list',
inputTagMode: true,
selectKeys: [13, 32, 44, 188],
customDropdownIcon: () => { return '<i class="fas fa-search right-icon"></i>'; },
customDropdownIcon: () => { return '<i class="sn-icon sn-icon-search right-icon"></i>'; },
onChange: () => {
let values = dropdownSelector.getValues(emailsInput);
if (values.length > 0) {

View file

@ -29,6 +29,7 @@ $font-fas-plus: "\f02b";
.sn-icon {
font-size: 24px !important;
vertical-align: middle;
&.mini {
font-size: 16px !important;

View file

@ -40,7 +40,7 @@
<hr>
<div class="sci-toggles-group">
<input type="radio" name="test1" class="sci-toggle-item">
<span class="sci-toggle-item-label"><i class="fas fa-th-large"></i></span>
<span class="sci-toggle-item-label"><i class="sn-icon sn-icon-grid-view"></i></span>
<input type="radio" name="test1" class="sci-toggle-item">
<span class="sci-toggle-item-label"><i class="fas fa-th-list"></i></span>
<input type="radio" name="test1" class="sci-toggle-item">
@ -53,19 +53,19 @@
<hr>
<div class="sci-input-container left-icon" style="width: 300px">
<input type="text" class="sci-input-field" placeholder="Placeholder"></input>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<hr>
<div class="sci-input-container right-icon" style="width: 300px">
<label>Right icon</label>
<input type="text" class="sci-input-field" placeholder="Placeholder"></input>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<hr>
<div class="sci-input-container right-icon success" style="width: 300px">
<label>Success and icon</label>
<input type="text" class="sci-input-field" placeholder="Placeholder"></input>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<hr>
<div class="sci-input-container error" data-error-text="Error text" style="width: 300px">

View file

@ -2,7 +2,7 @@
<div class="sci-input-container">
<%= label_tag @name, @label %>
<div class="datetime-picker-container">
<span class="fas fa-calendar-alt"></span>
<span class="sn-icon sn-icon-calendar"></span>
<input type="datetime"
name="<%= @name %>"
data-toggle='date-time-picker'

View file

@ -57,19 +57,19 @@ class ProtocolLinkedChildrenDatatable < CustomDatatable
def record_html(record)
res = ''
res += "<ol class='breadcrumb'>"
res += "<li><span class='fas fa-folder'></span>&nbsp;"
res += "<li><span class='sn-icon sn-icon-projects'></span>&nbsp;"
res += @controller.render_to_string(
partial: 'search/results/partials/project_text.html.erb',
locals: { project: record.my_module.experiment.project }
)
res += '</li>'
res += "<li><i class='fas fa-flask'></i>&nbsp;"
res += "<li><i class='sn-icon sn-icon-experiment'></i>&nbsp;"
res += @controller.render_to_string(
partial: 'search/results/partials/experiment_text.html.erb',
locals: { experiment: record.my_module.experiment }
)
res += '</li>'
res += "<li><span class='fas fa-credit-card'></span>&nbsp;"
res += "<li><span class='sn-icon sn-icon-task'></span>&nbsp;"
res += @controller.render_to_string(
partial: 'search/results/partials/my_module_text.html.erb',
locals: { my_module: record.my_module, link_to_page: :protocols }

View file

@ -87,7 +87,7 @@ class TeamsDatatable < CustomDatatable
# If user is last admin of team, don't allow
# him/her to leave team
def leave_team_button(record)
button = "<span class=\"fas fa-sign-out-alt\"></span>
button = "<span class=\"sn-icon sn-icon-sign-out\"></span>
<span class=\"hidden-xs\">
#{I18n.t('users.settings.teams.index.leave')}
</span>"

View file

@ -42,7 +42,7 @@ module BootstrapFormHelper
if options[:clear]
res << "<span class='input-group-addon' data-toggle='clear-date-time-picker' data-target='#{id}'>" \
"<i class='fas fa-times'></i></span></div>"
"<i class='sn-icon sn-icon-close-remove'></i></span></div>"
end
res << '</div></div></div></div>'

View file

@ -18,7 +18,7 @@ module GlobalActivitiesHelper
end
if key == 'comment' && parameters[key].strip.present?
parameters[key] = '<i class="fas fa-comment"></i>' + parameters[key]
parameters[key] = '<i class="sn-icon sn-icon-comments"></i>' + parameters[key]
end
end

View file

@ -42,17 +42,17 @@ module ResultsHelper
end
def result_icon_class(result)
return 'fas fa-table' unless result
return 'sn-icon sn-icon-tables' unless result
if result.is_asset
'fas fa-paperclip'
'sn-icon sn-icon-files'
elsif result.is_text
'fas fa-font'
elsif result.is_table
'fas fa-table'
'sn-icon sn-icon-tables'
else
# just return table for any other result
'fas fa-table'
'sn-icon sn-icon-tables'
end
end
end

View file

@ -74,7 +74,7 @@ window.TinyMCE = (() => {
const lastUpdated = $(selector).data('last-updated');
let notificationBar;
const restoreBtn = $('<button class="btn restore-draft-btn">Restore Draft</button>');
const cancelBtn = $('<span class="fas fa-times"></span>');
const cancelBtn = $('<span class="sn-icon sn-icon-close-remove"></span>');
// Check whether we have draft stored

View file

@ -4,7 +4,7 @@
<div id="savedFiltersContainer" class="dropdown saved-filters-container" @click="toggleSavedFilters">
<div class="title" id="savedFilterDropdown">
{{ i18n.t('repositories.show.bmt_search.title') }}
<i v-if="savedFilters.length" class="fas fa-caret-down"></i>
<i v-if="savedFilters.length" class="sn-icon sn-icon-close-hide"></i>
</div>
<div v-if="savedFilters.length" class="dropdown-menu saved-filters-list">
<SavedFilterElement
@ -18,7 +18,7 @@
</div>
</div>
<button class="btn btn-light clear-filters-btn" @click="closeSavedFilters() && clearFilters()">
<i class="fas fa-times-circle"></i>
<i class="sn-icon sn-icon-close-remove"></i>
{{ i18n.t('repositories.show.bmt_search.clear_all') }}
</button>
</div>
@ -38,7 +38,7 @@
</div>
<div class="footer" @click="closeSavedFilters">
<button class="btn btn-light add-filter" @click="addFilter">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
{{ i18n.t('repositories.show.bmt_search.add_filter') }}
</button>
<button @click="fetchCIDs" class="btn btn-primary">

View file

@ -19,7 +19,7 @@
</div>
<div class="filter-remove">
<button class="btn btn-light icon-btn " @click="$emit('filter:delete')">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
<hr>

View file

@ -2,7 +2,7 @@
<div class="saved-filters-element">
<span @click="loadFilters">{{ savedFilter.attributes.name }}</span>
<button v-if="canManageFilters" class="btn btn-light icon-btn" @click="deleteFilter">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
</template>

View file

@ -25,7 +25,7 @@
@click="insertTag(field)"
>
{{ field.key }}
<i class="fas fa-plus-square"></i>
<i class="sn-icon sn-icon-plus-square"></i>
</div>
<div v-if="filteredFields.common.length" class="block-title">
{{ i18n.t('label_templates.show.insert_dropdown.common_fields') }}
@ -40,7 +40,7 @@
>
<i v-if="field.icon" :class="field.icon"></i>
{{ field.key }}
<i class="fas fa-plus-square"></i>
<i class="sn-icon sn-icon-plus-square"></i>
</div>
<template v-for="(repository, index) in filteredFields.repositories">
<div :key="`repository_${index}`" class="block-title">
@ -55,7 +55,7 @@
@click="insertTag(field)"
>
{{ field.key }}
<i class="fas fa-plus-square"></i>
<i class="sn-icon sn-icon-plus-square"></i>
</div>
</template>
<div class="no-results" v-if="this.noResults">

View file

@ -2,7 +2,7 @@
<div class="sci--navigation--notificaitons-flyout">
<div class="sci--navigation--notificaitons-flyout-title">
{{ i18n.t('nav.notifications.title') }}
<i class="fas fa-times" @click="$emit('close')"></i>
<i class="sn-icon sn-icon-close-remove" @click="$emit('close')"></i>
</div>
<div class="sci--navigation--notificaitons-flyout-tabs">
<div class="sci--navigation--notificaitons-flyout-tab"

View file

@ -18,11 +18,11 @@
</div>
<div v-if="user" class="sci--navigation--top-menu-search left-icon sci-input-container" :class="{'disabled' : !currentTeam}">
<input type="text" class="sci-input-field" :placeholder="i18n.t('nav.search')" @change="searchValue"/>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<div v-if="user" class="dropdown">
<button class="btn btn-light icon-btn" data-toggle="dropdown">
<i class="fas fa-question-circle"></i>
<i class="sn-icon sn-icon-help"></i>
</button>
<ul v-if="user" class="dropdown-menu dropdown-menu-right">
<li v-for="(item, i) in helpMenu" :key="i">
@ -34,7 +34,7 @@
</div>
<div v-if="user" class="dropdown">
<button class="btn btn-light icon-btn" data-toggle="dropdown">
<i class="fas fa-cog"></i>
<i class="sn-icon sn-icon-settings"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li v-for="(item, i) in settingsMenu" :key="i">
@ -55,7 +55,7 @@
:data-unseen="unseenNotificationsCount"
data-toggle="dropdown"
@click="notificationsOpened = !notificationsOpened">
<i class="fas fa-bell"></i>
<i class="sn-icon sn-icon-notifications"></i>
</button>
<div v-if="notificationsOpened" class="sci--navigation--notificaitons-flyout-backdrop" @click="notificationsOpened = false"></div>
<NotificationsFlyout

View file

@ -17,7 +17,7 @@
<li class="divider-label">{{ i18n.t("protocols.steps.attachments.add") }}</li>
<li>
<a class="action-link attachments-view-mode" @click="$emit('attachments:openFileModal')">
<i class="fas fa-upload"></i>
<i class="sn-icon sn-icon-import"></i>
{{ i18n.t('protocols.steps.attachments.menu.file_from_pc') }}
</a>
</li>

View file

@ -19,11 +19,11 @@
@keyup.enter="addStep(steps.length)"
@click="addStep(steps.length)"
tabindex="0">
<span class="fas fa-plus" aria-hidden="true"></span>
<span class="sn-icon sn-icon-new-task" aria-hidden="true"></span>
<span>{{ i18n.t("protocols.steps.new_step") }}</span>
</a>
<button class="btn btn-secondary" data-toggle="modal" data-target="#print-protocol-modal" tabindex="0">
<span class="fas fa-print" aria-hidden="true"></span>
<span class="sn-icon sn-icon-printer" aria-hidden="true"></span>
<span>{{ i18n.t("protocols.print.button") }}</span>
</button>
<ProtocolOptions
@ -104,11 +104,11 @@
<div id="protocol-steps-container" :class=" inRepository ? 'protocol-steps collapse in' : ''">
<div v-if="steps.length > 0" class="protocol-step-actions">
<button class="btn btn-light" @click="collapseSteps" tabindex="0">
<span class="fas fa-caret-up"></span>
<span class="sn-icon sn-icon-open-show"></span>
{{ i18n.t("protocols.steps.collapse_label") }}
</button>
<button class="btn btn-light" @click="expandSteps" tabindex="0">
<span class="fas fa-caret-down"></span>
<span class="sn-icon sn-icon-close-hide"></span>
{{ i18n.t("protocols.steps.expand_label") }}
</button>
<a v-if="urls.reorder_steps_url"
@ -126,7 +126,7 @@
<template v-for="(step, index) in steps">
<div class="step-block" :key="step.id">
<div v-if="index > 0 && urls.add_step_url" class="insert-step" @click="addStep(index)">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
</div>
<Step
:step.sync="steps[index]"
@ -143,7 +143,7 @@
</template>
</div>
<button v-if="(steps.length > 0 || inRepository) && urls.add_step_url" :class="!inRepository ? 'btn btn-primary' : 'btn btn-secondary'" @click="addStep(steps.length)">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
{{ i18n.t("protocols.steps.new_step") }}
</button>
</div>

View file

@ -18,7 +18,7 @@
>
<div v-for="(item, index) in reorderedItems" :key="item.id" class="step-element-header">
<div class="step-element-grip step-element-grip--draggable">
<i class="fas fa-grip-vertical"></i>
<i class="sn-icon sn-icon-drag"></i>
</div>
<div class="step-element-name">
<strong v-if="includeNumbers" class="step-element-number">{{ index + 1 }}</strong>

View file

@ -14,7 +14,7 @@
</div>
<div class="actions-block">
<a class="btn btn-light icon-btn pull-right" :href="protocol.attributes.urls.print_protocol_url" target="_blank">
<span class="fas fa-print" aria-hidden="true"></span>
<span class="sn-icon sn-icon-printer" aria-hidden="true"></span>
</a>
<button class="btn btn-light" @click="openVersionsModal">{{ i18n.t("protocols.header.versions") }}</button>
<button v-if="protocol.attributes.urls.publish_url" @click="$emit('publish')" class="btn btn-primary">{{ i18n.t("protocols.header.publish") }}</button>

View file

@ -10,7 +10,7 @@
aria-expanded="true"
tabindex="0"
>
<span class="fas fa-cog"></span>
<span class="sn-icon sn-icon-settings"></span>
<span>{{ i18n.t("my_modules.protocol.options_dropdown.title") }}</span>
<span class="caret"></span>
</button>
@ -24,7 +24,7 @@
data-action="load-from-repository"
@click="loadProtocol"
>
<span class="fas fa-edit"></span>
<span class="sn-icon sn-icon-protocols-templates"></span>
<span>{{ i18n.t("my_modules.protocol.options_dropdown.load_from_repo") }}</span>
</a>
</li>
@ -46,7 +46,7 @@
:href="protocol.attributes.urls.export_url"
:class="{ disabled: !protocol.attributes.urls.export_url }"
>
<span class="fas fa-upload"></span>
<span class="sn-icon sn-icon-import"></span>
<span>{{
i18n.t("my_modules.protocol.options_dropdown.export")
}}</span>
@ -82,7 +82,7 @@
data-action="revert"
@click="revertProtocol"
>
<span class="fas fa-undo"></span>
<span class="sn-icon sn-icon-restore"></span>
<span>{{
i18n.t("my_modules.protocol.options_dropdown.revert_protocol")
}}</span>
@ -93,7 +93,7 @@
data-turbolinks="false"
@click.prevent="openStepsDeletingModal()"
>
<span class="fas fa-trash"></span>
<span class="sn-icon sn-icon-delete"></span>
<span>{{
i18n.t("my_modules.protocol.options_dropdown.delete_steps")
}}</span>

View file

@ -67,11 +67,11 @@
{{ i18n.t('protocols.steps.insert.title') }}
</li>
<li class="action" @click="createElement('table')">
<i class="fas fa-table"></i>
<i class="sn-icon sn-icon-tables"></i>
{{ i18n.t('protocols.steps.insert.table') }}
</li>
<li class="action dropdown-submenu-item">
<i class="fas fa-table"></i>
<i class="sn-icon sn-icon-tables"></i>
{{ i18n.t('protocols.steps.insert.well_plate') }}
<span class="caret"></span>
@ -82,7 +82,7 @@
</ul>
</li>
<li class="action" @click="createElement('checklist')">
<i class="fas fa-list"></i>
<i class="sn-icon sn-icon-activities"></i>
{{ i18n.t('protocols.steps.insert.checklist') }}
</li>
<li class="action" @click="createElement('text')">
@ -90,7 +90,7 @@
{{ i18n.t('protocols.steps.insert.text') }}
</li>
<li v-if="attachmentsReady" class="action" @click="showFileModal = true">
<i class="fas fa-paperclip"></i>
<i class="sn-icon sn-icon-files"></i>
{{ i18n.t('protocols.steps.insert.attachment') }}
</li>
</ul>
@ -103,7 +103,7 @@
data-object-type="Step"
@click="openCommentsSidebar"
:data-object-id="step.id">
<i class="fas fa-comment"></i>
<i class="sn-icon sn-icon-comments"></i>
<span class="comments-counter"
:id="`comment-count-${step.id}`"
:class="{'unseen': step.attributes.unseen_comments}"
@ -114,7 +114,7 @@
<div v-if="urls.update_url" class="step-actions-container">
<div ref="actionsDropdownButton" class="dropdown">
<button class="btn btn-light dropdown-toggle insert-button" type="button" :id="'stepOptionsMenu_' + step.id" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="true">
<i class="fas fa-ellipsis-h"></i>
<i class="sn-icon sn-icon-more-hori"></i>
</button>
<ul ref="actionsDropdown" class="dropdown-menu dropdown-menu-right insert-element-dropdown" :aria-labelledby="'stepOptionsMenu_' + step.id">
<li class="title">
@ -125,11 +125,11 @@
{{ i18n.t('protocols.steps.options_dropdown.rearrange') }}
</li>
<li v-if="urls.duplicate_step_url" class="action" @click="duplicateStep">
<i class="fas fa-clone"></i>
<i class="sn-icon sn-icon-duplicate"></i>
{{ i18n.t('protocols.steps.options_dropdown.duplicate') }}
</li>
<li v-if="urls.delete_url" class="action" @click="showDeleteModal">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
{{ i18n.t('protocols.steps.options_dropdown.delete') }}
</li>
</ul>

View file

@ -1,7 +1,7 @@
<template>
<div class="dropdown asset-context-menu" ref="menu">
<button class="btn btn-light dropdown-toggle icon-btn" type="button" id="dropdownAssetContextMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fas fa-ellipsis-h"></i>
<i class="sn-icon sn-icon-more-hori"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right"
@ -43,13 +43,13 @@
:data-image-mime-type="attachment.attributes.image_context.type"
:data-image-start-edit-url="attachment.attributes.urls.start_edit_image"
>
<span class="fas fa-pencil-alt"></span>
<span class="sn-icon sn-icon-edit"></span>
{{ i18n.t('assets.file_preview.edit_in_scinote') }}
</a>
</li>
<li>
<a :href="attachment.attributes.urls.download" data-turbolinks="false">
<span class="fas fa-download"></span>
<span class="sn-icon sn-icon-export"></span>
{{ i18n.t('Download') }}
</a>
</li>
@ -71,7 +71,7 @@
<li role="separator" class="divider"></li>
<li>
<a @click.prevent.stop="deleteModal = true">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
{{ i18n.t("assets.context_menu.delete") }}
</a>
</li>

View file

@ -22,7 +22,7 @@
>
<input type="file" class="hidden" ref=fileSelector @change="uploadFiles" multiple />
<div class="title btn btn-light" @click="$refs.fileSelector.click()" tabindex="0" @keyup.enter="$refs.fileSelector.click()">
<i class="fas fa-upload"></i>
<i class="sn-icon sn-icon-import"></i>
{{ i18n.t("protocols.steps.attachments.file_modal.drag_zone_title") }}
</div>
<div class="description">

View file

@ -17,7 +17,7 @@
{{ attachment.error }}
</div>
<div v-if="attachment.error" class="remove-button" @click="$emit('attachment:delete')">
<i class="fas fa-times"></i>
<i class="sn-icon sn-icon-close-remove"></i>
</div>
</div>
</template>

View file

@ -26,10 +26,10 @@
<i class="fas fa-pen"></i>
</button>
<button v-if="element.attributes.orderable.urls.duplicate_url" class="btn icon-btn btn-light" tabindex="0" @click="duplicateElement">
<i class="fas fa-clone"></i>
<i class="sn-icon sn-icon-duplicate"></i>
</button>
<button v-if="element.attributes.orderable.urls.delete_url" class="btn icon-btn btn-light" @click="showDeleteModal" tabindex="0">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
</div>
@ -66,7 +66,7 @@
tabindex="0"
@keyup.enter="addItem"
@click="addItem">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
{{ i18n.t('protocols.steps.insert.checklist_item') }}
</div>
</div>

View file

@ -2,7 +2,7 @@
<div class="step-checklist-item" :class="{ 'step-element--locked': !checklistItem.attributes.isNew && !(updateUrl || toggleUrl) }">
<div class="step-element-header" :class="{ 'locked': locked || editingText, 'editing-name': editingText }">
<div v-if="reorderChecklistItemUrl" class="step-element-grip step-element-grip--draggable" :class="{ 'step-element-grip--disabled': !draggable }">
<i class="fas fa-grip-vertical"></i>
<i class="sn-icon sn-icon-drag"></i>
</div>
<div v-else class="step-element-grip-placeholder"></div>
<div class="step-element-name" :class="{ 'done': checklistItem.attributes.checked }">
@ -43,7 +43,7 @@
<i class="fas fa-pen"></i>
</button>
<button v-if="!checklistItem.attributes.urls || deleteUrl" class="btn icon-btn btn-light" @click="showDeleteModal" tabindex="0">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
</div>

View file

@ -23,10 +23,10 @@
<i class="fas fa-pen"></i>
</button>
<button v-if="element.attributes.orderable.urls.duplicate_url" class="btn icon-btn btn-light" tabindex="0" @click="duplicateElement">
<i class="fas fa-clone"></i>
<i class="sn-icon sn-icon-duplicate"></i>
</button>
<button v-if="element.attributes.orderable.urls.delete_url" class="btn icon-btn btn-light" @click="showDeleteModal" tabindex="0">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
</div>
@ -50,7 +50,7 @@
<i class="fas fa-check"></i>
</button>
<button class="btn icon-btn btn-light" @click="disableTableEdit">
<i class="fas fa-times"></i>
<i class="sn-icon sn-icon-close-remove"></i>
</button>
</div>
<deleteElementModal v-if="confirmingDelete" @confirm="deleteElement" @cancel="closeDeleteModal"/>

View file

@ -9,10 +9,10 @@
<i class="fas fa-pen"></i>
</button>
<button v-if="element.attributes.orderable.urls.duplicate_url" class="btn icon-btn btn-light" tabindex="0" @click="duplicateElement">
<i class="fas fa-clone"></i>
<i class="sn-icon sn-icon-duplicate"></i>
</button>
<button v-if="element.attributes.orderable.urls.delete_url" class="btn icon-btn btn-light" @click="showDeleteModal" tabindex="0">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
<Tinymce

View file

@ -6,7 +6,7 @@
<span class="filter-name">
{{ filterName || i18n.t('repositories.show.filters.title') }}
</span>
<i v-if="savedFilters.length" class="fas fa-caret-down"></i>
<i v-if="savedFilters.length" class="sn-icon sn-icon-close-hide"></i>
</div>
<div v-if="savedFilters.length" class="dropdown-menu saved-filters-list">
<SavedFilterElement
@ -32,7 +32,7 @@
<div class="footer">
<div id="filtersColumnsDropdown" class="dropup filters-columns-dropdown" @click="toggleColumnsFilters">
<button class="btn btn-secondary add-filter prevent-shrink" >
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
{{ i18n.t('repositories.show.filters.add_filter') }}
</button>
<div class="dropdown-menu filters-columns-list">

View file

@ -11,7 +11,7 @@
</div>
<div class="filter-remove">
<button class="btn btn-light icon-btn" @click="$emit('filter:delete')">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
</button>
</div>
</div>

View file

@ -2,7 +2,7 @@
<div class="saved-filters-element">
<span class="saved-filter-name" @click="loadFilters">{{ savedFilter.attributes.name }}</span>
<button v-if="canManageFilters" class="btn btn-light icon-btn" @click="deleteFilter">
<i :title="i18n.t('repositories.show.filters.delete_saved_filter')" class="fas fa-trash"></i>
<i :title="i18n.t('repositories.show.filters.delete_saved_filter')" class="sn-icon sn-icon-delete"></i>
</button>
</div>
</template>

View file

@ -1,7 +1,7 @@
<template>
<div class="flex items-center mr-3 flex-nowrap">
<button v-if="!searchOpened" class="btn btn-light icon-btn" @click="openSearch">
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</button>
<div v-if="searchOpened || barcodeSearchOpened" class="w-52 flex">
<div v-if="searchOpened" class="sci-input-container right-icon">
@ -13,7 +13,7 @@
@keyup="setValue"
@blur="closeSearch"
/>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<div v-if="barcodeSearchOpened" class="sci-input-container right-icon ml-2">
<input
@ -24,11 +24,11 @@
@change="setBarcodeValue"
@blur="closeBarcodeSearch"
/>
<img class="barcode-scanner" src="/images/icon_small/barcode.png"/>
<i class='sn-icon sn-icon-barcode barcode-scanner'></i>
</div>
</div>
<button v-if="!barcodeSearchOpened" class="btn btn-light icon-btn ml-2" @click="openBarcodeSearch">
<img class="barcode-scanner" src="/images/icon_small/barcode.png"/>
<i class='sn-icon sn-icon-barcode barcode-scanner'></i>
</button>
</div>
</template>

View file

@ -1,7 +1,7 @@
<template>
<div class="datepicker sci-input-container right-icon">
<input @change="update" type="datetime" class="form-control calendar-input sci-input-field" :id="this.selectorId" placeholder="" />
<i class="fas fa-calendar-alt"></i>
<i class="sn-icon sn-icon-calendar"></i>
</div>
</template>

View file

@ -24,7 +24,7 @@
<i class="fas fa-check"></i>
</div>
<div class="sci-inline-edit__control btn btn-light icon-btn" @mousedown="cancelEdit">
<i class="fas fa-times"></i>
<i class="sn-icon sn-icon-close-remove"></i>
</div>
</template>
</div>

View file

@ -19,7 +19,7 @@
<span class="total-page">...</span>
</div>
<button class="btn btn-light icon-btn next-page">
<i class="fas fa-arrow-right"></i>
<i class="sn-icon sn-icon-move"></i>
</button>
<div class="divider"></div>
<div class="zoom-page">
@ -35,10 +35,10 @@
</div>
<div class="sci-btn-group">
<button class="btn btn-light icon-btn zoom-out">
<i class="fas fa-search-minus"></i>
<i class="sn-icon sn-icon-search-minus"></i>
</button>
<button class="btn btn-light icon-btn zoom-in">
<i class="fas fa-search-plus"></i>
<i class="sn-icon sn-icon-search-plus"></i>
</button>
</div>
</div>

View file

@ -7,7 +7,7 @@
data-mask-type="time"
v-model="value"
placeholder="HH:mm"/>
<i class="fas fa-clock"></i>
<i class="sn-icon sn-icon-created"></i>
</div>
</template>

View file

@ -5,7 +5,7 @@
<input type="hidden" name="_method" value="patch">
<div class="hidden tinymce-cancel-button tox-mbtn" tabindex="-1">
<button type="button" tabindex="-1">
<span class="fas fa-times"></span>
<span class="sn-icon sn-icon-close-remove"></span>
<span class="mce-txt">{{ i18n.t('general.cancel') }}</span>
</button>
</div>

View file

@ -38,7 +38,7 @@ module Toolbars
{
name: 'restore',
label: I18n.t('experiments.toolbar.restore_button'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
button_class: 'restore-experiments-btn',
path: restore_group_project_experiments_path(project_id: @experiments.first.project_id),
type: :request,
@ -56,7 +56,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('experiments.index.edit_option'),
icon: 'fa fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_class: 'edit-btn',
path: edit_experiment_path(experiment),
type: 'remote-modal'
@ -96,7 +96,7 @@ module Toolbars
{
name: 'move',
label: I18n.t('experiments.toolbar.move_button'),
icon: 'fas fa-arrow-right',
icon: 'sn-icon sn-icon-move',
button_class: 'move-experiments-btn',
path: move_modal_experiments_path(id: experiment.id),
type: 'remote-modal'
@ -113,7 +113,7 @@ module Toolbars
{
name: 'duplicate',
label: I18n.t('experiments.toolbar.duplicate_button'),
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
button_class: 'clone-experiment-btn',
path: clone_modal_experiments_path(id: experiment.id),
type: 'remote-modal',
@ -127,7 +127,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('experiments.toolbar.archive_button'),
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
button_class: 'archive-experiments-btn',
path: archive_group_project_experiments_path(project_id: @experiments.first.project_id),
type: :request,

View file

@ -39,7 +39,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('label_templates.index.toolbar.edit'),
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
path: label_template_path(@label_templates.first),
type: :link
}
@ -55,7 +55,7 @@ module Toolbars
{
name: 'set_as_default',
label: I18n.t("label_templates.index.toolbar.set_#{@label_templates.first.type}_default"),
icon: 'fas fa-thumbtack',
icon: 'sn-icon sn-icon-dashboard',
button_id: 'setZplDefaultLabelTemplate',
type: :legacy
}
@ -69,7 +69,7 @@ module Toolbars
{
name: 'duplicate',
label: I18n.t('label_templates.index.toolbar.duplicate'),
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
button_id: 'duplicateLabelTemplate',
path: duplicate_label_templates_path,
type: :legacy
@ -86,7 +86,7 @@ module Toolbars
{
name: 'delete',
label: I18n.t('label_templates.index.toolbar.delete'),
icon: 'fas fa-trash',
icon: 'sn-icon sn-icon-delete',
button_id: 'deleteLabelTemplate',
type: :legacy
}

View file

@ -40,7 +40,7 @@ module Toolbars
{
name: 'restore',
label: I18n.t('experiments.table.toolbar.restore'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
button_class: 'restore-my-modules-btn',
button_id: 'restoreTask',
path: restore_my_modules_experiment_path(experiment),
@ -58,7 +58,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('experiments.table.toolbar.edit'),
icon: 'fa fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_id: 'editTask',
type: :legacy
}
@ -97,7 +97,7 @@ module Toolbars
{
name: 'move',
label: I18n.t('experiments.table.toolbar.move'),
icon: 'fas fa-arrow-right',
icon: 'sn-icon sn-icon-move',
button_id: 'moveTask',
button_class: 'move-my-modules-btn',
type: :legacy
@ -113,7 +113,7 @@ module Toolbars
{
name: 'duplicate',
label: I18n.t('experiments.table.toolbar.duplicate'),
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
button_id: 'duplicateTasks',
button_class: 'duplicate-tasks-btn',
path: batch_clone_my_modules_experiment_path(experiment),
@ -129,7 +129,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('experiments.table.toolbar.archive'),
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
button_id: 'archiveTask',
path: archive_my_modules_experiment_path(experiment),
type: :legacy

View file

@ -56,7 +56,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('projects.index.edit_option'),
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_class: 'edit-btn',
path: edit_project_path(project),
type: :legacy
@ -69,7 +69,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('projects.index.edit_option'),
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_class: 'edit-btn',
path: edit_project_folder_path(project_folder),
type: :legacy
@ -95,7 +95,7 @@ module Toolbars
{
name: 'access',
label: I18n.t('general.access'),
icon: 'fas fa-door-open',
icon: 'sn-icon sn-icon-project-member-access',
button_class: 'access-btn',
path: path,
type: 'remote-modal'
@ -108,7 +108,7 @@ module Toolbars
{
name: 'move',
label: I18n.t('projects.index.move_button'),
icon: 'fas fa-arrow-right',
icon: 'sn-icon sn-icon-move',
button_class: 'move-projects-btn',
path: move_to_modal_project_folders_path,
type: :legacy
@ -121,7 +121,7 @@ module Toolbars
{
name: 'export',
label: I18n.t('projects.export_projects.export_button'),
icon: 'fas fa-file-export',
icon: 'sn-icon sn-icon-export',
button_class: 'export-projects-btn',
path: export_projects_modal_team_path(@items.first.team),
type: :legacy
@ -136,7 +136,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('projects.index.archive_button'),
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
button_class: 'archive-projects-btn',
path: archive_group_projects_path,
type: :request,
@ -152,7 +152,7 @@ module Toolbars
{
name: 'restore',
label: I18n.t('projects.index.restore_button'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
button_class: 'restore-projects-btn',
path: restore_group_projects_path,
type: :request,
@ -168,7 +168,7 @@ module Toolbars
{
name: 'delete_folders',
label: I18n.t('general.delete'),
icon: 'fas fa-trash',
icon: 'sn-icon sn-icon-delete',
button_class: 'delete-folders-btn',
path: destroy_modal_project_folders_path(project_folder_ids: @items.map(&:id)),
type: 'remote-modal'
@ -187,7 +187,7 @@ module Toolbars
{
name: 'comments',
label: I18n.t('Comments'),
icon: 'fas fa-comment',
icon: 'sn-icon sn-icon-comments',
button_class: 'open-comments-sidebar',
item_type: 'Project',
item_id: project.id,
@ -209,7 +209,7 @@ module Toolbars
{
name: 'activities',
label: I18n.t('nav.label.activities'),
icon: 'fas fa-list',
icon: 'sn-icon sn-icon-activities',
button_class: 'project-activities-btn',
path: "/global_activities?#{activity_url_params}",
type: :link

View file

@ -53,7 +53,7 @@ module Toolbars
{
name: 'duplicate',
label: I18n.t('protocols.index.toolbar.duplicate'),
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
path: clone_protocols_path,
type: :request,
request_method: :post
@ -74,7 +74,7 @@ module Toolbars
{
name: 'access',
label: I18n.t('protocols.index.toolbar.access'),
icon: 'fas fa-door-open',
icon: 'sn-icon sn-icon-project-member-access',
button_class: 'access-btn',
path: path,
type: 'remote-modal'
@ -89,7 +89,7 @@ module Toolbars
{
name: 'export',
label: I18n.t('protocols.index.toolbar.export'),
icon: 'fas fa-download',
icon: 'sn-icon sn-icon-export',
path: export_protocols_path(protocol_ids: @protocols.pluck(:id)),
type: :download
}
@ -101,7 +101,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('protocols.index.toolbar.archive'),
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
path: archive_protocols_path,
type: :request,
request_method: :post
@ -114,7 +114,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('protocols.index.toolbar.restore'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
path: restore_protocols_path,
type: :request,
request_method: :post

View file

@ -33,7 +33,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('projects.reports.index.edit'),
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_id: 'edit-report-btn',
path: edit_project_report_path(@report.project_id, @report.id),
type: :link
@ -72,7 +72,7 @@ module Toolbars
{
name: 'generate_docx_action',
label: label,
icon: 'fas fa-file-word',
icon: 'sn-icon sn-icon-file-word',
button_id: button_id
}
end
@ -83,7 +83,7 @@ module Toolbars
{
name: 'delete',
label: I18n.t('projects.reports.index.delete'),
icon: 'fas fa-trash',
icon: 'sn-icon sn-icon-delete',
button_id: 'delete-reports-btn',
type: :link
}

View file

@ -36,7 +36,7 @@ module Toolbars
name: 'rename',
label: I18n.t('libraries.index.buttons.edit'),
button_id: 'renameRepoBtn',
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
path: team_repository_rename_modal_path(@current_team, repository_id: @repository),
type: 'remote-modal'
}
@ -49,7 +49,7 @@ module Toolbars
name: 'duplicate',
label: I18n.t('libraries.index.buttons.duplicate'),
button_id: 'copyRepoBtn',
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
path: team_repository_copy_modal_path(@current_team, repository_id: @repository),
type: 'remote-modal'
}
@ -62,7 +62,7 @@ module Toolbars
name: 'archive',
label: I18n.t('libraries.index.buttons.archive'),
button_id: 'archiveRepoBtn',
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
path: archive_team_repositories_path(@current_team),
type: :request,
request_method: :post
@ -75,7 +75,7 @@ module Toolbars
{
name: 'share',
label: I18n.t('repositories.index.share_inventory'),
icon: 'fas fa-user-plus',
icon: 'sn-icon sn-icon-user-menu-plus',
button_class: 'share-repository-button',
path: team_repository_share_modal_path(@current_team, repository_id: @repository),
type: 'remote-modal'
@ -88,7 +88,7 @@ module Toolbars
{
name: 'restore',
label: I18n.t('libraries.index.buttons.restore'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
button_id: 'restoreRepoBtn',
path: restore_team_repositories_path(@current_team),
type: :request,
@ -102,7 +102,7 @@ module Toolbars
{
name: 'delete',
label: I18n.t('libraries.index.buttons.delete'),
icon: 'fas fa-trash',
icon: 'sn-icon sn-icon-delete',
button_id: 'deleteRepoBtn',
path: team_repository_destroy_modal_path(@current_team, repository_id: @repository),
type: 'remote-modal'

View file

@ -49,7 +49,7 @@ module Toolbars
{
name: 'restore',
label: I18n.t('repositories.restore_record'),
icon: 'fas fa-undo',
icon: 'sn-icon sn-icon-restore',
button_class: 'resotre-repository-row-btn',
button_id: 'restoreRepositoryRecords',
type: :legacy
@ -64,7 +64,7 @@ module Toolbars
{
name: 'edit',
label: I18n.t('repositories.edit_record'),
icon: 'fas fa-pencil-alt',
icon: 'sn-icon sn-icon-edit',
button_class: 'edit-repository-row-btn',
button_id: 'editRepositoryRecord',
type: :legacy
@ -79,7 +79,7 @@ module Toolbars
{
name: 'assign',
label: I18n.t('repositories.assign_record'),
icon: 'fas fa-paperclip',
icon: 'sn-icon sn-icon-files',
button_class: 'assign-repository-rows-btn',
button_id: 'assignRepositoryRecords',
type: :legacy
@ -94,7 +94,7 @@ module Toolbars
{
name: 'duplicate',
label: I18n.t('repositories.copy_record'),
icon: 'fas fa-copy',
icon: 'sn-icon sn-icon-duplicate',
button_class: 'copy-repository-row-btn',
button_id: 'copyRepositoryRecords',
type: :legacy
@ -107,7 +107,7 @@ module Toolbars
{
name: 'export',
label: I18n.t('repositories.export_record'),
icon: 'fas fa-file-export',
icon: 'sn-icon sn-icon-export',
button_class: 'export-repository-row-btn',
button_id: 'exportRepositoriesButton',
type: :legacy
@ -120,7 +120,7 @@ module Toolbars
{
name: 'print_label',
label: I18n.t('repositories.print_label'),
icon: 'fas fa-print',
icon: 'sn-icon sn-icon-printer',
button_class: 'print-label-button',
button_id: 'toolbarPrintLabel',
type: :legacy
@ -135,7 +135,7 @@ module Toolbars
{
name: 'archive',
label: I18n.t('repositories.archive_record'),
icon: 'fas fa-archive',
icon: 'sn-icon sn-icon-archive',
button_class: 'resotre-repository-row-btn',
button_id: 'archiveRepositoryRecordsButton',
type: :legacy
@ -150,7 +150,7 @@ module Toolbars
{
name: 'delete',
label: I18n.t('repositories.delete_record'),
icon: 'fas fa-trash',
icon: 'sn-icon sn-icon-delete',
button_class: 'resotre-repository-row-btn',
button_id: 'deleteRepositoryRecords',
type: :legacy

View file

@ -22,7 +22,7 @@
<% if assignable.top_level_assignable? %>
<div class="modal-footer">
<%= link_to new_assignment_path, class: 'btn btn-default pull-right', data: { action: 'swap-remote-container', target: '#user_assignments_modal' } do %>
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
<%= t('access_permissions.grant_access') %>
<% end %>
</div>

View file

@ -17,7 +17,7 @@
placeholder: t('.find_people_html'),
class: 'sci-input-field new-assignment-user-search',
data: { action: 'filter-list', target: 'new-user-assignment-form' } %>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<% if assignable.visibility && assignable.visibility == 'hidden' %>
<%= f.fields_for :users, UserAssignment.new do |user_form| %>

View file

@ -1,7 +1,7 @@
<% if can_manage_asset?(asset) %>
<div class="dropdown asset-context-menu">
<button class="btn btn-light dropdown-toggle icon-btn" type="button" id="dropdownAssetContextMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fas fa-ellipsis-h"></i>
<i class="sn-icon sn-icon-more-hori"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right"
aria-labelledby="dropdownAssetContextMenu"
@ -57,13 +57,13 @@
data-image-mime-type="<%= asset.file.content_type %>"
data-image-start-edit-url="<%= start_edit_image_path(asset) %>"
>
<span class="fas fa-pencil-alt"></span>
<span class="sn-icon sn-icon-edit"></span>
<%= t('assets.file_preview.edit_in_scinote') %>
</a>
</li>
<li>
<a class="btn btn-light file-download-link" href="<%= rails_blob_path(asset.file, disposition: 'attachment') %>" data-turbolinks="false">
<span class="fas fa-download"></span>
<span class="sn-icon sn-icon-export"></span>
<%= t('Download') %>
</a>
</li>
@ -82,7 +82,7 @@
<li role="separator" class="divider"></li>
<li>
<a class="delete-asset" href="<%= asset_destroy_path(asset) %>" data-file-name="<%= asset.render_file_name %>">
<i class="fas fa-trash"></i>
<i class="sn-icon sn-icon-delete"></i>
<%= t("assets.context_menu.delete") %>
</a>
</li>

View file

@ -1,6 +1,6 @@
<div class="attachment-container pull-left new">
<div class="attachment-preview no-shadow">
<i class="fas fa-image"></i>
<i class="sn-icon sn-icon-result-image"></i>
</div>
<div class="attachment-label"><%= truncate(file_name || file_url, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
</div>

View file

@ -12,7 +12,7 @@
<% if @experiment_managable %>
<%=link_to "", type: "button", class: "btn btn-primary", id: "canvas-new-module" do %>
<span class="hbtn-default">
<span class="fas fa-plus"></span>
<span class="sn-icon sn-icon-new-task"></span>
<%= t("experiments.canvas.edit.new_module") %>
</span>
<span class="hbtn-hover">
@ -24,7 +24,7 @@
<div class="sci-btn-group pull-right" role="group">
<%= link_to canvas_experiment_path(@experiment), type: "button", class: "btn btn-secondary cancel-edit-canvas" do %>
<span class="hidden-xs"><%= t("experiments.canvas.edit.cancel") %></span>
<span class="fas fa-times visible-xs" style="height: 16px;margin-top: 4px;">&nbsp;</span>
<span class="sn-icon sn-icon-close-remove visible-xs" style="height: 16px;margin-top: 4px;">&nbsp;</span>
<% end %>
<%= f.submit class: "btn btn-primary", id: "canvas-save" do %>
<span class="visibile-xs"><%= t("experiments.canvas.edit.save_short") %></span>

View file

@ -12,7 +12,7 @@
<div class="dropdown module-options-dropdown pull-right module-options" data-dropdown-menu-path="<%= canvas_dropdown_menu_my_module_path(my_module) %>">
<a class="dropdown-toggle" id="<%= my_module.id %>_options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fas fa-caret-down" aria-hidden="true"></span>
<span class="sn-icon sn-icon-close-hide" aria-hidden="true"></span>
</a>
<ul class="dropdown-menu custom-dropdown-menu no-scale" aria-labelledby="<%= my_module.id %>_options">
</ul>

View file

@ -80,7 +80,7 @@
<ul class="nav nav-tabs nav-tabs-less" role="tablist">
<li role="presentation">
<a class="btn btn-link task-card-view-users" href="<%= designated_users_my_module_user_my_modules_url(my_module_id: my_module.id, format: :json) %>" aria-controls="<%= my_module.id %>_users" role="tab" data-remote="true">
<span class="fas fa-users" aria-hidden="true"></span>
<span class="sn-icon sn-icon-users" aria-hidden="true"></span>
<span class="badge badge-indicator users-badge-indicator <%= 'hidden' unless my_module.designated_users_count.positive? %>"
data-linked-id="<%= my_module.id %>">
<%= my_module.designated_users_count %>
@ -89,13 +89,13 @@
</li>
<li role="presentation">
<a class="btn btn-link task-card-view-activities" href="<%= activities_my_module_url(id: my_module.id) %>" aria-controls="<%= my_module.id %>_activities" role="tab">
<span class="fas fa-list" aria-hidden="true"></span>
<span class="sn-icon sn-icon-activities" aria-hidden="true"></span>
</a>
</li>
<li role="presentation">
<a href="#" class="btn btn-link open-comments-sidebar" tabindex=0
data-object-type="MyModule" data-object-id="<%= my_module.id %>">
<span class="fas fa-comment" aria-hidden="true"></span>
<span class="sn-icon sn-icon-comments" aria-hidden="true"></span>
<span id="comment-count-<%= my_module.id %>" class="badge badge-indicator comments-badge-indicator <%= 'hidden' unless my_module.task_comments_count.positive? %>">
<%= my_module.task_comments_count %>
</span>

View file

@ -9,7 +9,7 @@
data-module-conns="<%= construct_module_connections(my_module) %>"
>
<div class="panel-body">
<i class="fas fa-eye-slash"></i>
<i class="sn-icon sn-icon-visibility-hide"></i>
<span class="description">
<%= t('experiments.canvas.full_zoom.no_access') %>
</span>

View file

@ -9,7 +9,7 @@
data-module-conns="<%= construct_module_connections(my_module) %>"
>
<div class="panel-body">
<i class="fas fa-eye-slash"></i>
<i class="sn-icon sn-icon-visibility-hide"></i>
<span class="description">
<%= t('experiments.canvas.medium_zoom.no_access') %>
</span>

View file

@ -8,5 +8,5 @@
data-module-y="<%= my_module.y %>"
data-module-conns="<%= construct_module_connections(my_module) %>"
>
<i class="fas fa-eye-slash"></i>
<i class="sn-icon sn-icon-visibility-hide"></i>
</div>

View file

@ -3,7 +3,7 @@
<div class="widget-title"><%= t("dashboard.current_tasks.title") %></div>
<div class="actions-container">
<div class="filter-container dropdown">
<div class="btn btn-light icon-btn filter-button" data-toggle="dropdown"><i class="fas fa-filter"></i></div>
<div class="btn btn-light icon-btn filter-button" data-toggle="dropdown"><i class="sn-icon sn-icon-filter"></i></div>
<div class="dropdown-menu current-tasks-filters" role="menu" data-team-id="<%= current_team.id %>">
<div class="header">
<div class="title"><%= t("dashboard.current_tasks.filter.title") %></div>
@ -60,7 +60,7 @@
<div class="search-container">
<div class="sci-input-container left-icon ">
<input type="text" class="sci-input-field task-search-field" placeholder="<%= t("dashboard.current_tasks.search") %>"></input>
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
</div>
</div>

View file

@ -1,13 +1,13 @@
<div class="quick-start-buttons">
<div class="new-task btn btn-secondary"><i class="fas fa-plus"></i><%= t("dashboard.quick_start.new_task") %></div>
<div class="new-task btn btn-secondary"><i class="sn-icon sn-icon-new-task"></i><%= t("dashboard.quick_start.new_task") %></div>
<% if can_create_protocols_in_repository?(current_team) %>
<button data-toggle="modal" data-target="#newProtocolModal" class="btn btn-secondary">
<i class="fas fa-edit"></i><%= t("dashboard.quick_start.new_protocol") %>
<i class="sn-icon sn-icon-protocols-templates"></i><%= t("dashboard.quick_start.new_protocol") %>
</button>
<% end %>
<% if can_create_reports?(current_team) %>
<%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %>
<i class="fas fa-clipboard-check"></i><%= t("dashboard.quick_start.new_report") %>
<i class="sn-icon sn-icon-reports"></i><%= t("dashboard.quick_start.new_report") %>
<% end %>
<% end %>
</div>

View file

@ -11,7 +11,7 @@
</div>
<div class="task-due-date row-border <%= task_date[:span_class]%>">
<% if task_date[:date] %>
<i class="fas fa-calendar-day"></i>
<i class="sn-icon sn-icon-calendar-small"></i>
<%= t("dashboard.current_tasks.#{task_date[:translation_key]}", date: l(task_date[:date], format: :full_date)) %>
<% end %>
</div>

View file

@ -16,14 +16,14 @@
<% end %>
<% if can_manage_my_module_designated_users?(user, my_module) %>
<span class="new-user avatar-container">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
</span>
<% end %>
</div>
<div class="dropdown-menu">
<div class="sci-input-container left-icon">
<input type="text" class="sci-input-field user-search" placeholder="<%= I18n.t('experiments.table.search') %>">
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
<div class="users-list"
data-list-url="<%= search_my_module_user_my_module_path(my_module, my_module_id: my_module.id, skip_unassigned: skip_unassigned) %>">

View file

@ -25,7 +25,7 @@
<%= link_to clone_modal_experiment_url(experiment),
remote: true, type: 'button',
class: 'clone-experiment' do %>
<i class="fas fa-copy"></i>
<i class="sn-icon sn-icon-duplicate"></i>
<span><%= t('experiments.clone.label_title') %></span>
<% end %>
</li>
@ -35,7 +35,7 @@
<%= link_to move_modal_experiment_url(experiment),
remote: true, type: 'button',
class: 'move-experiment' do %>
<i class="fas fa-arrow-right"></i>
<i class="sn-icon sn-icon-move"></i>
<span><%= t('experiments.move.label_title') %></span>
<% end %>
</li>
@ -44,14 +44,14 @@
<% if can_manage_experiment_users?(experiment) %>
<li>
<%= link_to edit_access_permissions_experiment_path(experiment), data: { action: 'remote-modal'} do %>
<i class="fas fa-door-open"></i>
<i class="sn-icon sn-icon-project-member-access"></i>
<span><%= t('experiments.index.experiment_access') %></span>
<% end %>
</li>
<% else %>
<li>
<%= link_to access_permissions_experiment_path(experiment), data: { action: 'remote-modal'} do %>
<i class="fas fa-door-open"></i>
<i class="sn-icon sn-icon-project-member-access"></i>
<span><%= t('experiments.index.experiment_access') %></span>
<% end %>
</li>
@ -62,7 +62,7 @@
type: 'button',
method: :post,
data: { confirm: t('experiments.canvas.archive_confirm') } do %>
<i class="fas fa-archive"></i>
<i class="sn-icon sn-icon-archive"></i>
<span><%= t('experiments.archive.label_title') %></span>
<% end %>
</li>
@ -74,7 +74,7 @@
<%= f.hidden_field :archived, value: false %>
<% end %>
<li><a href="#" class="form-submit-link" data-turbolinks="false" data-submit-form="<%= experiment_form.options[:html][:id] %>">
<i class="fas fa-undo"></i><%= t "projects.experiment_archive.restore_option" %></a></li>
<i class="sn-icon sn-icon-restore"></i><%= t "projects.experiment_archive.restore_option" %></a></li>
<% end %>
<div class="divider-label footer">

View file

@ -3,7 +3,7 @@
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
<h1 class="experimnet-name" data-toggle="tooltip" data-placement="bottom" title="<%= @experiment.name %>">
<% if @experiment.archived_branch? %>
<i class="fas fa-archive" data-view-mode="archived"></i>
<i class="sn-icon sn-icon-archive" data-view-mode="archived"></i>
<% end %>
<% if @inline_editable_title_config.present? %>
<%= render partial: "shared/inline_editing",

View file

@ -12,9 +12,9 @@
<% Experiments::TableViewService::COLUMNS.each do |col| %>
<div class="column-container <%= col %> visible">
<% if col == :archived && params[:view_mode] != 'archived' %>
<i class="fas fa-eye-slash disabled" data-column="<%= col %>"></i>
<i class="sn-icon sn-icon-visibility-hide disabled" data-column="<%= col %>"></i>
<% elsif col != :task_name %>
<i class="fas fa-<%= col.to_s.in?(@my_module_visible_table_columns) ? 'eye' : 'eye-slash' %>" data-column="<%= col %>"></i>
<i class="sn-icon sn-icon-<%= col.to_s.in?(@my_module_visible_table_columns) ? 'visibility-show' : 'visibility-hide' %>" data-column="<%= col %>"></i>
<% end %>
<%= t("experiments.table.column_display_modal.#{col}") %>
</div>

View file

@ -24,7 +24,7 @@
data-positioning-vertical="bottom"
value="<%= my_module.due_date ? l(my_module.due_date, format: :full) : '' %>"/>
</div>
<div class="fas fa-times-circle clear-date"
<div class="sn-icon sn-icon-close-remove clear-date"
data-toggle='clear-date-time-picker'
data-target='calendarDueDate<%= my_module.id %>'>
</div>

View file

@ -2,7 +2,7 @@
<% if can_restore_my_module?(my_module) %>
<li>
<a href="<%= restore_my_modules_experiment_path(my_module.experiment) %>" class="restore-my-module" data-id="<%= my_module.id %>">
<i class="fas fa-undo"></i>
<i class="sn-icon sn-icon-restore"></i>
<%= t("experiments.table.my_module_actions.restore") %>
</a>
</li>
@ -22,14 +22,14 @@
<% end %>
<li>
<a class="open-access-modal" data-action="remote-modal" href="<%= task_access_path %>">
<i class="fas fa-door-open"></i>
<i class="sn-icon sn-icon-project-member-access"></i>
<%= t("experiments.table.my_module_actions.access") %>
</a>
</li>
<% if can_move_my_module?(my_module) %>
<li>
<a href="" class="move-my-module" data-id="<%= my_module.id %>">
<i class="fas fa-arrow-right"></i>
<i class="sn-icon sn-icon-move"></i>
<%= t("experiments.table.my_module_actions.move") %>
</a>
</li>
@ -37,7 +37,7 @@
<% if can_manage_experiment?(my_module.experiment) && my_module.active? %>
<li>
<a href="" class="duplicate-my-module" data-id="<%= my_module.id %>">
<i class="fas fa-copy"></i>
<i class="sn-icon sn-icon-duplicate"></i>
<%= t("experiments.table.my_module_actions.duplicate") %>
</a>
</li>
@ -45,7 +45,7 @@
<% if can_archive_my_module?(my_module) %>
<li>
<a href="<%= archive_my_modules_experiment_path(my_module.experiment) %>" class="archive-my-module" data-id="<%= my_module.id %>">
<i class="fas fa-archive"></i>
<i class="sn-icon sn-icon-archive"></i>
<%= t("experiments.table.my_module_actions.archive") %>
</a>
</li>

View file

@ -6,7 +6,7 @@
id: 'createTask',
data: { view_mode: 'active' },
remote: true do %>
<span class="fas fa-plus"></span>
<span class="sn-icon sn-icon-new-task"></span>
<span class="hidden-xs"><%= t('experiments.table.toolbar.new') %></span>
<% end %>
<% end %>
@ -19,11 +19,11 @@
<% if action_name == 'table' %>
<%= render partial: 'table_filters.html.erb' %>
<button id="taskDataDisplay" class="btn btn-light" data-toggle="modal" data-target="#tableDisplayModal">
<i class="fas fa-columns"></i>
<i class="sn-icon sn-icon sn-icon-reports"></i>
</button>
<div class="dropdown sort-menu">
<button class="btn btn-light icon-btn dropdown-toggle" type="button" id="sortMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fas fa-sort-amount-up"></i>
<i class="sn-icon sn-icon-sort-up"></i>
</button>
<ul id="sortMenuDropdown" class="dropdown-menu sort-task-menu <%= params[:view_mode] %> dropdown-menu-right" aria-labelledby="sortMenu">
<% %w(atoz ztoa due_first due_last archived_old archived_new).each_with_index do |sort, i| %>

View file

@ -16,7 +16,7 @@
class: 'btn btn-primary new-my-module-button',
data: { view_mode: 'active' },
remote: true do %>
<span class="fas fa-plus"></span>
<span class="sn-icon sn-icon-new-task"></span>
<span class="hidden-sm hidden-xs"><%= t('experiments.canvas.new_my_module') %></span>
<% end %>
<%=link_to canvas_edit_experiment_url(@experiment),
@ -25,7 +25,7 @@
id: 'edit-canvas-button',
data: { action: 'edit' },
class: 'ajax btn btn-light' do %>
<span class="fas fa-pencil-alt"></span>
<span class="sn-icon sn-icon-edit"></span>
<span class="hidden-sm hidden-xs"><%= t('experiments.canvas.canvas_edit') %></span>
<% end %>
<% end %>

View file

@ -14,13 +14,13 @@
<span class="left">
<div class="move-button-container collapse">
<button class="btn btn-light">
<span class="fas fa-arrow-right"></span>
<span class="sn-icon sn-icon-move"></span>
<%= t('experiments.module_archive.move_option') %>
</button>
</div>
<div class="restore-button-container collapse">
<%= button_to restore_my_modules_experiment_path(@experiment), class: 'btn btn-light', method: :post do %>
<span class="fas fa-undo"></span>
<span class="sn-icon sn-icon-restore"></span>
<%= t('experiments.module_archive.restore_option') %>
<% end %>
</div>

View file

@ -5,7 +5,7 @@
<% if label %>
<label class="control-label required" for="calendar-<%= id %>"><%= label %></label>
<% end %>
<span class="fas fa-calendar-alt"></span>
<span class="sn-icon sn-icon-calendar"></span>
<input type="datetime" class="form-control calendar-input" name="calendar[<%= id %>]" id="calendar-<%= id %>" readonly="" data-ts="" placeholder="<%= placeholder %>" value="<%= defined?(setDate) ? setDate : '' %>"/>
<%= javascript_include_tag 'global_activities/date_picker', nonce: true %>

View file

@ -4,15 +4,15 @@
<div class="ga-actions">
<div class="sci-btn-group">
<a id="global-activities-expand-all" class="hide-actions btn btn-light" href="#" data-turbolinks="false">
<i class="fas fa-caret-down"></i><%= t('activities.index.expand_all') %>
<i class="sn-icon sn-icon-close-hide"></i><%= t('activities.index.expand_all') %>
</a>
<a id="global-activities-colapse-all" class="hide-actions btn btn-light" href="#" data-turbolinks="false">
<i class="fas fa-caret-up"></i><%= t('activities.index.collapse_all') %>
<i class="sn-icon sn-icon-open-show"></i><%= t('activities.index.collapse_all') %>
</a>
</div>
<div class="ga-search-container">
<input type="text" class="search-field" placeholder="Search..." aria-describedby="basic-addon1">
<i class="fas fa-search"></i>
<i class="sn-icon sn-icon-search"></i>
</div>
</div>
<div class="ga-tags-container">
@ -23,6 +23,6 @@
</div>
<% end %>
<div class="btn btn-light clear-container">
<i class="fas fa-times-circle"></i><%= t('global_activities.index.clear_filters') %>
<i class="sn-icon sn-icon-close-remove"></i><%= t('global_activities.index.clear_filters') %>
</div>
</div>

View file

@ -1,7 +1,7 @@
<%= render partial: "global_activities/references/team.html.erb",
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
<div class="ga-breadcrumb">
<span class="fas fa-folder"></span>
<span class="sn-icon sn-icon-projects"></span>
<% if subject %>
<% path = project_folder_path(subject, team: team) %>

View file

@ -8,7 +8,7 @@
<% if subject %>
<% if subject.in_repository? %>
<div class="ga-breadcrumb">
<span class="fas fa-edit"></span>
<span class="sn-icon sn-icon-protocols-templates"></span>
<%= route_to_other_team protocols_path(team: subject.team),
team,
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
@ -17,7 +17,7 @@
<% end %>
<% else %>
<div class="ga-breadcrumb">
<span class="fas fa-edit"></span>
<span class="sn-icon sn-icon-protocols-templates"></span>
<span title="<%= breadcrumbs['protocol'] %>">
<%= breadcrumbs['protocol']&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
</span>

View file

@ -1,7 +1,7 @@
<%= render partial: "global_activities/references/team.html.erb",
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
<div class="ga-breadcrumb">
<span class="fas fa-clipboard-check"></span>
<span class="sn-icon sn-icon-reports"></span>
<% if subject %>
<%= route_to_other_team(reports_path(subject, team: subject.team.id, preview_report_id: subject.id, preview_type: :pdf),
team,

View file

@ -1,7 +1,7 @@
<%= render partial: "global_activities/references/team.html.erb",
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
<div class="ga-breadcrumb">
<span class="fas fa-list-alt"></span>
<span class="sn-icon sn-icon-inventory"></span>
<% if subject %>
<%= route_to_other_team(repository_path(subject.id, team: subject.team.id),
team,

View file

@ -1,7 +1,7 @@
<%= render partial: "global_activities/references/team.html.erb",
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
<div class="ga-breadcrumb">
<span class="fas fa-list-alt"></span>
<span class="sn-icon sn-icon-inventory"></span>
<% if subject %>
<%= route_to_other_team(repository_path(subject.repository.id, team: subject.repository.team.id),
team,

View file

@ -1,5 +1,5 @@
<div class="ga-breadcrumb">
<span class="fas fa-users"></span>
<span class="sn-icon sn-icon-users"></span>
<% if team %>
<%= route_to_other_team projects_path(team: team.id),
team,

View file

@ -1,7 +1,7 @@
<ul>
<li>
<div class="collapse-row">
<i class="fas fa-caret-down" data-toggle="collapse" href="#fluicsInstructionsSection" aria-expanded="false"></i>
<i class="sn-icon sn-icon-close-hide" data-toggle="collapse" href="#fluicsInstructionsSection" aria-expanded="false"></i>
<div class="row-title"><%= t("users.settings.account.label_printer.instructions") %></div>
</div>
<ul class="collapse in" id="fluicsInstructionsSection">
@ -25,7 +25,7 @@
<% if can_manage_label_printers? %>
<li>
<div class="collapse-row">
<i class="fas fa-caret-down" data-toggle="collapse" href="#SettingsSection" aria-expanded="false"></i>
<i class="sn-icon sn-icon-close-hide" data-toggle="collapse" href="#SettingsSection" aria-expanded="false"></i>
<div class="row-title"><%= t("users.settings.account.label_printer.settings") %></div>
</div>
<ul class="collapse in" id="SettingsSection">
@ -49,7 +49,7 @@
<% end %>
<li>
<div class="collapse-row">
<i class="fas fa-caret-down" data-toggle="collapse" href="#PrintersSection" aria-expanded="false"></i>
<i class="sn-icon sn-icon-close-hide" data-toggle="collapse" href="#PrintersSection" aria-expanded="false"></i>
<div class="row-title">Printers</div>
<% if can_manage_label_printers? %>
<div class="update-printers">

View file

@ -1,7 +1,7 @@
<ul>
<li class="zebra-settings-collapse">
<div class="collapse-row">
<i class="fas fa-caret-down collapsed" data-toggle="collapse" href="#zebraInstructionsSection" aria-expanded="false"></i>
<i class="sn-icon sn-icon-close-hide collapsed" data-toggle="collapse" href="#zebraInstructionsSection" aria-expanded="false"></i>
<div class="row-title"><%= t("users.settings.account.label_printer.instructions") %></div>
</div>
<ul class="collapse" id="zebraInstructionsSection">
@ -64,7 +64,7 @@
<li class="zebra-settings-collapse">
<div class="collapse-row">
<i class="fas fa-caret-down" data-toggle="collapse" href="#PrintersSection" aria-expanded="false"></i>
<i class="sn-icon sn-icon-close-hide" data-toggle="collapse" href="#PrintersSection" aria-expanded="false"></i>
<div class="row-title">Printers</div>
<div class="update-printers">
<%= button_tag type: 'submit', class: "btn btn-light zebra-printer-refresh" do %>

View file

@ -2,7 +2,7 @@
<% if can_manage_label_templates?(current_team) %>
<button data-url="<%= label_templates_path %>" title="<%= t('label_templates.index.toolbar.new') %>"
class="btn btn-primary auto-shrink-button" id="newLabelTemplate">
<i class="fas fa-plus"></i>
<i class="sn-icon sn-icon-new-task"></i>
<span class="button-text"><%= t('label_templates.index.toolbar.new') %></span>
</button>
<button title="<%= t('label_templates.index.toolbar.update_fluics_labels') %>"

View file

@ -33,7 +33,7 @@
<span class="sci-checkbox-label"></span>
</div>
</th>
<th id="label-template-selected"><i class="fas fa-thumbtack"></i></th>
<th id="label-template-selected"><i class="sn-icon sn-icon-dashboard"></i></th>
<th id="label-template-name"><%= t('label_templates.index.thead_name') %></th>
<th id="label-template-format"><%= t('label_templates.index.format') %></th>
<th id="label-template-description"><%= t('label_templates.index.description') %></th>

Some files were not shown because too many files have changed in this diff Show more