scinote-web/app/views/dashboards/_create_task_modal.html.erb
2023-08-17 14:01:26 +02:00

57 lines
2.9 KiB
Text

<div class="modal" id="create-task-modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><i class="sn-icon sn-icon-close"></i></button>
<h2 class="modal-title">
<%= t("dashboard.create_task_modal.title") %>
</h2>
</div>
<div class="modal-body">
<div class="description">
<%= t("dashboard.create_task_modal.description") %>
</div>
<div class="select-block" data-error-object="Project" data-error="">
<label><%= t("dashboard.create_task_modal.project") %></label>
<select class="project-filter"
data-ajax-url="<%= dashboard_quick_start_project_filter_path %>"
data-placeholder="<%= t("dashboard.create_task_modal.project_placeholder") %>"></select>
</div>
<div class="new-projects-visibility" style="display: none;">
<div class="down-arrow"></div>
<div class="project-visibility-container">
<div class="project-visibility-title"><%= t("dashboard.create_task_modal.project_visibility_label") %></div>
<div class="sci-toggles-group" data-toggle="buttons">
<input type="radio" name="projects-visibility-selector" class="sci-toggle-item" value="hidden" checked="checked">
<label class="sci-toggle-item-label">
<%= t("dashboard.create_task_modal.project_visibility_members") %>
</label>
<input type="radio" name="projects-visibility-selector" class="sci-toggle-item" value="visible">
<label class="sci-toggle-item-label">
<%= t("dashboard.create_task_modal.project_visibility_all") %>
</label>
</div>
</div>
</div>
<div class="select-block" data-error-object="Experiment" data-error="">
<label><%= t("dashboard.create_task_modal.experiment") %></label>
<select class="experiment-filter"
data-ajax-url="<%= dashboard_quick_start_experiment_filter_path %>"
data-disable-on-load="true"
data-disable-placeholder="<%= t("dashboard.create_task_modal.experiment_disabled_placeholder") %>"
data-placeholder="<%= t("dashboard.create_task_modal.experiment_placeholder") %>"></select>
</div>
</div>
<div class="modal-footer">
<button type="button"
class="create-task-button btn btn-primary"
data-ajax-url="<%= dashboard_quick_start_create_task_path %>"
data-dismiss="modal"
disabled>
<%= t("dashboard.create_task_modal.create_task") %>
</button>
</div>
</div>
</div>
</div>