Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fe13e5ef
authored
Jul 28, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refactor HTML structure and improve indentation in login template
1 parent
dee5edc6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
35 deletions
opensipkd/base/views/templates/login.pt
opensipkd/base/views/templates/login.pt
View file @
fe13e5e
<!DOCTYPE html>
<html
lang=
"en"
tal:define=
"home request.home;"
>
<html
lang=
"en"
tal:define=
"home request.home;"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
...
...
@@ -31,20 +31,20 @@
</head>
<body>
<div
id=
"content"
class=
"container"
>
<div
id=
"content"
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-xs-12 col-sm-12 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4"
style=
"margin-top:50px"
>
<div
class=
"well no-padding"
>
<form
id=
"deform"
method=
"POST"
enctype=
"multipart/form-data"
accept-charset=
"utf-8"
class=
"smart-form client-form panel form-signin"
style=
"border:0px;"
>
<header
class=
"bg-color-blue"
>
<h1
class=
"txt-color-white login-header-big"
align=
"center"
style=
"letter-spacing:1px;"
>
${request.app_name}
</h1>
<h1
class=
"txt-color-white login-header-big"
align=
"center"
style=
"letter-spacing:1px;"
>
${request.app_name}
</h1>
</header>
<fieldset
class=
"deformFormFieldset"
>
<input
type=
"hidden"
name=
"_charset_"
/>
<input
type=
"hidden"
name=
"__formid__"
value=
"deform"
/>
<input
type=
"hidden"
name=
"_charset_"
/>
<input
type=
"hidden"
name=
"__formid__"
value=
"deform"
/>
<div
tal:condition=
"request.session.peek_flash()"
>
<div
class=
"alert alert-success"
tal:repeat=
"message request.session.pop_flash()"
><i
class=
"fa fa-fw fa-lg fa-check-circle"
></i>
${message}
...
...
@@ -57,8 +57,8 @@
</div>
<div
class=
"col-md-12"
align=
"center"
>
<img
src=
"${home}/static/img/logo.png
"
class=
"img-float img-thumbnail"
style=
"height:auto;width:auto;border:none;"
/>
<img
src=
"${home}/static/img/logo.png"
class=
"img-float img-thumbnail
"
style=
"height:auto;width:auto;border:none;"
/>
</div>
<div
class=
"clearfix"
></div>
...
...
@@ -85,7 +85,7 @@
<label
class=
" checkbox checkbox-inline"
>
<input
id=
"show_password"
type=
"checkbox"
style=
"left: 20px;"
>
Show Password
</label>
<div
class=
"note"
>
<a
href=
"${home}/reset-password"
id=
"lupa"
>
Lupa Password?
</a>
<a
href=
"${home}/reset-password"
id=
"lupa"
>
Lupa Password?
</a>
</div>
</div>
</section>
...
...
@@ -106,13 +106,11 @@
<footer>
<section>
<div
class=
"row"
style=
"float:right"
>
<button
type=
"submit"
id=
"login-btn"
name=
"login"
class=
"btn btn-primary"
style=
"float:left"
<button
type=
"submit"
id=
"login-btn"
name=
"login"
class=
"btn btn-primary"
style=
"float:left"
value=
"Login"
>
Login
</button>
<button
tal:condition=
"request.allow_register"
id=
"register"
name=
"register"
class=
"btn btn-info"
<button
tal:condition=
"request.allow_register"
id=
"register"
name=
"register"
class=
"btn btn-info"
value=
"Register"
style=
"float:left"
>
Register
</button>
...
...
@@ -122,10 +120,8 @@
</footer>
<footer>
<section>
<div
class=
"row"
tal:condition=
"request.google_signin_client_id and allow_register(request)"
>
<div
id=
"g_id_onload"
data-client_id=
"${request.google_signin_client_id}"
data-callback=
"onSignIn"
>
<div
class=
"row"
tal:condition=
"request.google_signin_client_id and request.allow_register"
>
<div
id=
"g_id_onload"
data-client_id=
"${request.google_signin_client_id}"
data-callback=
"onSignIn"
>
</div>
<div
class=
"g_id_signin"
data-type=
"standard"
></div>
</div>
...
...
@@ -141,20 +137,20 @@
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/jquery-2.0.3.min.js"
></script>
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/deform.js"
></script>
<!--? <script tal:condition="request.google_signin_client_id"-->
<!--? src="https://apis.google.com/js/platform.js" async defer></script>-->
<script
tal:condition=
"request.google_signin_client_id"
src=
"https://accounts.google.com/gsi/client"
async
defer
></script>
<script
tal:condition=
"request.google_signin_client_id"
>
<!-- Placed at the end of the document so the pages load faster -->
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/jquery-2.0.3.min.js"
></script>
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"${home}/deform_static/scripts/deform.js"
></script>
<!--? <script tal:condition="request.google_signin_client_id"-->
<!--? src="https://apis.google.com/js/platform.js" async defer></script>-->
<script
tal:condition=
"request.google_signin_client_id"
src=
"https://accounts.google.com/gsi/client"
async
defer
></script>
<script
tal:condition=
"request.google_signin_client_id"
>
window
.
onload
=
function
(
e
)
{
const
value
=
document
.
cookie
;
const
parts
=
value
.
split
(
`g_state=`
);
...
...
@@ -197,18 +193,19 @@
}
});
});
</script>
<script>
</script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
"#show_password"
).
on
(
"click"
,
function
()
{
var
x
=
$
(
"#password"
);
if
(
x
.
attr
(
"type"
)
===
"password"
)
{
x
.
attr
(
"type"
,
"text"
);
x
.
attr
(
"type"
,
"text"
);
}
else
{
x
.
attr
(
"type"
,
"password"
);
x
.
attr
(
"type"
,
"password"
);
}
});
});
</script>
</script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment