decoding error fixed

This commit is contained in:
ARvind Tiwari 2017-07-27 19:45:55 +05:30
parent c4dd366997
commit c6a3928638
3 changed files with 13 additions and 9 deletions

View file

@ -117,8 +117,8 @@ h2,h3,h4,h5{
} }
.choice-container div h3{ .choice-container div h3{
margin: auto; margin: auto;
width: 95%; width: 100%;
text-align: center; /* text-align: center; */
font-family: 'Lato-Light', sans-serif; font-family: 'Lato-Light', sans-serif;
} }
.choice-container div h3 img:hover{ .choice-container div h3 img:hover{
@ -127,7 +127,7 @@ h2,h3,h4,h5{
.choice-container div.choice-container-line{ .choice-container div.choice-container-line{
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
border: 1px solid #c9c6c6; background: #c9c6c6;
height: 250px; height: 250px;
width:1px; width:1px;
} }
@ -147,11 +147,11 @@ h2,h3,h4,h5{
} }
.dashboard-choice-container { .dashboard-choice-container {
max-width: 930px !important; max-width: 834px !important;
} }
.choice-button{ .choice-button{
width: 192px; width: 172px;
height: 45px; height: 42px;
border-radius: 0; border-radius: 0;
color: white; color: white;
margin-top: 70px; margin-top: 70px;
@ -291,4 +291,8 @@ h2,h3,h4,h5{
display: none; display: none;
} }
} }
}}
} }
}}
}
}}

View file

@ -28,7 +28,7 @@
</div> </div>
<div class="choice-container-line"></div> <div class="choice-container-line"></div>
<div class="right-choice-container"> <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' %}"> <form action="{% url 'hosting:create_ssh_key' %}">
<button type="submit" class="btn btn-primary choice-button upload-btn"> <button type="submit" class="btn btn-primary choice-button upload-btn">
{% trans "Upload"%} {% trans "Upload"%}

View file

@ -442,7 +442,7 @@ class SSHKeyCreateView(LoginRequiredMixin, FormView):
manager = OpenNebulaManager() manager = OpenNebulaManager()
# Get user ssh key # 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 # Add ssh key to user
try: try:
manager.add_public_key( manager.add_public_key(