2017-01-12 23:54:15 +08:00
|
|
|
<% provide(:head_title, t("my_modules.results.head_title", project: h(@project.name), module: h(@my_module.name)).html_safe) %>
|
2018-11-29 18:28:36 +08:00
|
|
|
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= render partial: "shared/secondary_navigation" %>
|
2017-06-07 19:29:39 +08:00
|
|
|
<%= render partial: 'shared/drag_n_drop_overlay' %>
|
2019-03-18 02:23:17 +08:00
|
|
|
<%= render partial: 'assets/wopi/create_wopi_file_modal' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="content-pane">
|
|
|
|
<div id="results-toolbar">
|
|
|
|
<div class="pull-right">
|
|
|
|
<button class="btn btn-default" id="results-collapse-btn">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-caret-square-up"></span>
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs-custom"><%= t'my_modules.results.collapse_label' %></button></span>
|
|
|
|
<button class="btn btn-default" id="results-expand-btn">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-caret-square-down"></span>
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs-custom"><%= t'my_modules.results.expand_label' %></button></span>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<% if can_manage_module?(@my_module) %>
|
2018-12-13 19:43:12 +08:00
|
|
|
<div class="help_tooltips" style="display:inline-block"
|
2018-09-14 19:07:09 +08:00
|
|
|
data-tooltiplink="<%= I18n.t('tooltips.link.task.results') %>"
|
|
|
|
data-tooltipcontent="<%= I18n.t('tooltips.text.task.results') %>">
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs"><%= t'my_modules.results.add_label' %></span>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
id="new-result-text"
|
|
|
|
data-href="<%= new_my_module_result_text_path(my_module_id: @my_module.id) %>"
|
|
|
|
href="#">
|
2018-07-09 19:13:44 +08:00
|
|
|
<span class="fas fa-font"></span>
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs"><%= t("my_modules.results.new_text_result") %></span>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
id="new-result-table"
|
|
|
|
data-href="<%= new_my_module_result_table_path(my_module_id: @my_module.id) %>"
|
|
|
|
href="#">
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-table"></span>
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs"><%= t("my_modules.results.new_table_result") %></span>
|
|
|
|
</a>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
id="new-result-asset"
|
|
|
|
data-href="<%= new_my_module_result_asset_path(my_module_id: @my_module.id) %>"
|
|
|
|
href="#">
|
2018-08-27 19:07:18 +08:00
|
|
|
<span class="fas fa-paperclip"></span>
|
2018-05-08 22:33:42 +08:00
|
|
|
<span class="hidden-xs"><%= t("my_modules.results.new_asset_result") %></span>
|
|
|
|
</a>
|
2019-03-18 02:23:17 +08:00
|
|
|
<%= render partial: "assets/wopi/create_wopi_file_button",
|
|
|
|
locals: { element_id: @my_module.id, element_type: 'Result' } %>
|
2018-08-20 19:03:30 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<div style="height: 15px;"></div>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<div id="results" data-module-id="<%= @my_module.id %>">
|
|
|
|
<% ordered_result_of(@my_module).each do |result| %>
|
2018-11-23 22:07:08 +08:00
|
|
|
<%= render partial: "result", locals: { result: result } %>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= javascript_include_tag "handsontable.full.min" %>
|
2016-09-05 19:54:20 +08:00
|
|
|
|
|
|
|
<!-- Libraries for formulas -->
|
2019-05-13 16:45:12 +08:00
|
|
|
<%= render partial: "shared/formulas_libraries.html.erb" %>
|
2018-11-26 21:05:02 +08:00
|
|
|
|
|
|
|
<%= javascript_include_tag("canvas-to-blob.min") %>
|
2019-03-18 02:23:17 +08:00
|
|
|
<%= javascript_include_tag "assets/wopi/create_wopi_file" %>
|
2018-11-26 21:05:02 +08:00
|
|
|
<%= javascript_include_tag "my_modules/results" %>
|
|
|
|
<%= javascript_include_tag "results/result_texts" %>
|
|
|
|
<%= javascript_include_tag "results/result_tables" %>
|
|
|
|
<%= javascript_include_tag "results/result_assets" %>
|