This commit is contained in:
27
custom_auth/templates/custom_auth/login.html
Normal file
27
custom_auth/templates/custom_auth/login.html
Normal file
@ -0,0 +1,27 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Login</h2>
|
||||
|
||||
<!-- 로그인 실패 메시지 표시 -->
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Username</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required="required">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required="required">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary w-100">Login</button>
|
||||
</form>
|
||||
{% endblock %}
|
10
custom_auth/templates/custom_auth/login_django_default.html
Normal file
10
custom_auth/templates/custom_auth/login_django_default.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Login</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
{% endblock %}
|
6
custom_auth/templates/custom_auth/profile.html
Normal file
6
custom_auth/templates/custom_auth/profile.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Welcome, {{ user.username }}!</h2>
|
||||
<p>This is your profile page.</p>
|
||||
{% endblock %}
|
10
custom_auth/templates/custom_auth/signup.html
Normal file
10
custom_auth/templates/custom_auth/signup.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Sign Up</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn btn-primary">Sign Up</button>
|
||||
</form>
|
||||
{% endblock %}
|
23
custom_auth/templates/custom_auth/upload_ssh_key.html
Normal file
23
custom_auth/templates/custom_auth/upload_ssh_key.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block main_area %}
|
||||
<h1>Upload SSH Private Key</h1>
|
||||
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn btn-primary">Upload</button>
|
||||
</form>
|
||||
|
||||
<!-- 복호화된 SSH Key 표시 -->
|
||||
{% if decrypted_key %}
|
||||
<hr>
|
||||
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
||||
<h3>Stored SSH Private Key (Decrypted)</h3>
|
||||
<pre class="bg-light p-3">{{ decrypted_key }}</pre>
|
||||
{% else %}
|
||||
<!-- <p class="text-muted mt-4">No SSH Private Key stored.</p> -->
|
||||
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user