Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIGIPUS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
PMPL
Class Project
DIGIPUS
Commits
4a8b9a90
Commit
4a8b9a90
authored
4 years ago
by
Rahmat Fadhilah
Browse files
Options
Downloads
Plain Diff
Merge branch '1706074902-11' into 'master'
[11] Bugfix: Delete Admin Closes
#11
See merge request
!5
parents
a7293dd9
0acac0a2
Branches
Branches containing commit
No related tags found
1 merge request
!5
[11] Bugfix: Delete Admin
Pipeline
#57862
passed
4 years ago
Stage: test
Stage: sonarqube
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
administration/templates/kelola_admin.html
+24
-5
24 additions, 5 deletions
administration/templates/kelola_admin.html
with
24 additions
and
5 deletions
administration/templates/kelola_admin.html
+
24
−
5
View file @
4a8b9a90
...
@@ -62,12 +62,21 @@
...
@@ -62,12 +62,21 @@
</button>
</button>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<p>
Sila konfirmasi penghapusan akun dengan tekan tombol hapus di bawah
</p>
<p>
Anda akan menghapus akun admin dengan email
</div>
<span
class=
"bg-danger pr-1 pl-1 text-white"
style=
"text-transform: lowercase"
>
{{current.email}}
</span>
<div
class=
"modal-footer"
>
. Lakukan konfirmasi penghapusan dengan mengetik:
</p>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Batal
</button>
<p
class=
"bg-danger text-white p-1"
>
{{current.email}}
</p>
<a
href=
"/administration/hapus-admin/{{current.id}}/"
type=
"button"
class=
"btn btn-danger"
>
Hapus
</a>
</div>
</div>
<form/>
{% csrf_token %}
<div
class=
"form-group pl-3 pr-3"
>
<input
name=
"{{ current.email }}"
class=
"form-control"
id=
"{{ current.id }}"
required
pattern=
"{{current.email}}"
oninput=
"checkValue(this)"
>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Batal
</button>
<a
href=
"/administration/hapus-admin/{{current.id}}/"
id=
"btn-hapus-{{current.id}}"
type=
"button"
class=
"btn btn-danger disabled"
>
Hapus
</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -118,4 +127,14 @@
...
@@ -118,4 +127,14 @@
</div>
</div>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
function
checkValue
(
element
){
buttonElement
=
document
.
getElementById
(
"
btn-hapus-
"
+
element
.
id
)
if
(
element
.
value
!=
element
.
name
)
{
buttonElement
.
classList
.
add
(
"
disabled
"
);
}
else
{
buttonElement
.
classList
.
remove
(
"
disabled
"
);
}
}
</script>
{% endblock %}
{% endblock %}
\ No newline at end of file
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