decoding error fixed
This commit is contained in:
parent
c4dd366997
commit
c6a3928638
3 changed files with 13 additions and 9 deletions
|
@ -117,8 +117,8 @@ h2,h3,h4,h5{
|
|||
}
|
||||
.choice-container div h3{
|
||||
margin: auto;
|
||||
width: 95%;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
/* text-align: center; */
|
||||
font-family: 'Lato-Light', sans-serif;
|
||||
}
|
||||
.choice-container div h3 img:hover{
|
||||
|
@ -127,7 +127,7 @@ h2,h3,h4,h5{
|
|||
.choice-container div.choice-container-line{
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
border: 1px solid #c9c6c6;
|
||||
background: #c9c6c6;
|
||||
height: 250px;
|
||||
width:1px;
|
||||
}
|
||||
|
@ -147,11 +147,11 @@ h2,h3,h4,h5{
|
|||
}
|
||||
|
||||
.dashboard-choice-container {
|
||||
max-width: 930px !important;
|
||||
max-width: 834px !important;
|
||||
}
|
||||
.choice-button{
|
||||
width: 192px;
|
||||
height: 45px;
|
||||
width: 172px;
|
||||
height: 42px;
|
||||
border-radius: 0;
|
||||
color: white;
|
||||
margin-top: 70px;
|
||||
|
@ -291,4 +291,8 @@ h2,h3,h4,h5{
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
}}
|
||||
}
|
||||
}}
|
||||
}
|
||||
}}
|
|
@ -28,7 +28,7 @@
|
|||
</div>
|
||||
<div class="choice-container-line"></div>
|
||||
<div class="right-choice-container">
|
||||
<h3>{% trans "I want to use my existing public key"%}</h3>
|
||||
<h3 class="text-center">{% trans "I want to use my existing public key"%}</h3>
|
||||
<form action="{% url 'hosting:create_ssh_key' %}">
|
||||
<button type="submit" class="btn btn-primary choice-button upload-btn">
|
||||
{% trans "Upload"%}
|
||||
|
|
|
@ -442,7 +442,7 @@ class SSHKeyCreateView(LoginRequiredMixin, FormView):
|
|||
manager = OpenNebulaManager()
|
||||
|
||||
# Get user ssh key
|
||||
public_key = form.cleaned_data.get('public_key', '')
|
||||
public_key = str(form.cleaned_data.get('public_key', ''))
|
||||
# Add ssh key to user
|
||||
try:
|
||||
manager.add_public_key(
|
||||
|
|
Loading…
Reference in a new issue