mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Merge branch 'ux-release-1' into ml-sci-2405
This commit is contained in:
commit
2bce62cab8
7 changed files with 17 additions and 33 deletions
|
@ -43,6 +43,10 @@
|
|||
});
|
||||
});
|
||||
});
|
||||
}).fail(function(error) {
|
||||
HelperModule.flashAlertMsg(
|
||||
"<%= I18n.t("libraries.repository_columns.no_permissions") %>",
|
||||
'danger');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -58,6 +62,10 @@
|
|||
modal_html.modal('show');
|
||||
_initSubmitAction(modal_html, $(modal_html.find('form')));
|
||||
});
|
||||
}).fail(function(error) {
|
||||
HelperModule.flashAlertMsg(
|
||||
"<%= I18n.t("libraries.repository_columns.no_permissions") %>",
|
||||
'danger');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
function show() {
|
||||
$('#sideBarLeft').show();
|
||||
$('#sideBarRight').hide();
|
||||
$('#sidebar-wrapper').show(
|
||||
'slide', { direction: 'right', easing: 'linear' }, 400
|
||||
);
|
||||
$('#wrapper').css('paddingLeft', '280px');
|
||||
$('#wrapper').removeClass('hidden2');
|
||||
$('.navbar-secondary').css(
|
||||
{ 'margin-left': '-280px', 'padding-left': '294px' }
|
||||
);
|
||||
|
@ -17,10 +14,7 @@
|
|||
function hide() {
|
||||
$('#sideBarLeft').hide();
|
||||
$('#sideBarRight').show();
|
||||
$('#sidebar-wrapper').hide(
|
||||
'slide', { direction: 'left', easing: 'linear'}, 400
|
||||
);
|
||||
$('#wrapper').css('paddingLeft', '0');
|
||||
$('#wrapper').addClass('hidden2');
|
||||
$('.navbar-secondary').css({
|
||||
'margin-left': '0',
|
||||
'padding-left': '14px'
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
<p data-hook="general-no-teams-text"><%=t 'general.no_teams.text' %></p>
|
||||
</div>
|
||||
<% else %>
|
||||
<%= yield :flash_messages_div %>
|
||||
<%= yield :content %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<% content_for :sidebar do %>
|
||||
<div id="slide-panel" class="visible">
|
||||
|
||||
<div class="sidebar-header">
|
||||
<div class="sidebar-header-title">
|
||||
<h5><%=t "projects.reports.new.sidebar_title" %></h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sidebar-header-toggle">
|
||||
<a href="" class="toggle-sidebar-link">
|
||||
<span class="glyphicon glyphicon-play-circle"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="tree report-tree">
|
||||
<ul id="report-sidebar-tree">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_include_tag("sidebar") %>
|
|
@ -1,5 +1,7 @@
|
|||
<% provide(:head_title, t('libraries.repository_columns.head_title', repository: @repository.name)) %>
|
||||
|
||||
<% provide(:flash_messages_div) do %>
|
||||
<div id="notifications"></div>
|
||||
<% end %>
|
||||
<div class="content-pane">
|
||||
<div class="repository-columns-header container">
|
||||
<div class="row">
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<% end -%>
|
||||
|
||||
<div class="actions" style="margin-top: 10px; margin-bottom: 10px;">
|
||||
<%= f.submit t("devise.sessions.new.submit"), class: "btn btn-default" %>
|
||||
<%= f.submit t("devise.sessions.new.submit"), class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@ en:
|
|||
global_sort: "Sorting whole report will undo any custom sorting you might have done. Proceed?"
|
||||
unsaved_work: "Are you sure you want to leave this page? All unsaved data will be lost."
|
||||
no_content_for_PDF_html: "<h1>No content</h1>"
|
||||
no_permissions: "You don't have permissions on that repository"
|
||||
no_permissions: "You don't have permission to manage this column"
|
||||
save_PDF_to_inventory_modal:
|
||||
description_one: "Here you can save PDF report to an inventory item."
|
||||
description_two: "First select an inventory, then a column and finally the item within the inventory to which you would like to save the PDF report to. Note that the column has to be of type \"file\"."
|
||||
|
@ -1038,6 +1038,7 @@ en:
|
|||
repository_columns:
|
||||
head_title: '%{repository} | Manage Columns'
|
||||
repository_list_items_limit: "Dropdown items limit reached max. %{limit}"
|
||||
no_permissions: "You don't have permissions on that repository"
|
||||
update:
|
||||
success_flash: "Column %{name} was successfully updated."
|
||||
create:
|
||||
|
|
Loading…
Add table
Reference in a new issue