Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
f3c01a3a
Commit
f3c01a3a
authored
5 years ago
by
Chris Lawton
Committed by
Fredrik Jonsson
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add skip report confirmation modal (#1657)
* add skip report confirmation modal
parent
1242ac5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/projects/templates/application_projects/includes/report_line.html
+19
-4
19 additions, 4 deletions
.../templates/application_projects/includes/report_line.html
with
19 additions
and
4 deletions
opentech/apply/projects/templates/application_projects/includes/report_line.html
+
19
−
4
View file @
f3c01a3a
...
...
@@ -22,10 +22,25 @@
{% endif %}
{% if request.user.is_apply_staff and report.can_submit %}
<form
action=
"{% url "
apply:projects:reports:skip
"
pk=
report.pk
%}"
method=
"post"
>
{% csrf_token %}
<input
type=
"submit"
value=
"Skip"
class=
"btn data-block__action-link"
></input>
</form>
<input
data-fancybox
data-src=
"#skip-report-{{report.id}}"
type=
"button"
value=
"Skip"
class=
"btn data-block__action-link"
></input>
<!-- Skip report confirmation modal -->
<div
class=
"modal"
id=
"skip-report-{{report.id}}"
>
<h4
class=
"modal__header-bar modal__header-bar--no-bottom-space"
>
Skip report
</h4>
<div
class=
"modal__copy"
>
<p>
You're skipping the report for
<b>
{{report.start_date}}
</b>
–
<b>
{{report.end_date}}
</b></p>
<p>
This will result in a gap in reporting for the project. You can undo this at any time.
</p>
</div>
<form
action=
"{% url "
apply:projects:reports:skip
"
pk=
report.pk
%}"
method=
"post"
>
{% csrf_token %}
<div
class=
"modal__buttons"
>
<input
type=
"submit"
value=
"Continue"
class=
"button button--primary button--submit"
></input>
<button
data-fancybox-close
class=
"button button--submit button--white"
>
Cancel
</button>
</div>
</form>
</div>
{% endif %}
</div>
</li>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment