Merge pull request #437 from ungleich/tiwariav-bugfix/modal_icons

Tiwariav bugfix/modal icons

Added missing modal icons
This commit is contained in:
Pcoder 2017-08-04 20:42:51 +02:00 committed by GitHub
commit 2ae0d3186c
4 changed files with 20 additions and 16 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-03 03:31+0530\n"
"POT-Creation-Date: 2017-08-04 18:25+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -39,6 +39,9 @@ msgstr "Meine virtuellen Maschinen"
msgid "My Orders"
msgstr "Meine Bestellungen"
msgid "SSH Keys"
msgstr "SSH Key"
msgid "Notifications "
msgstr "Benachrichtigungen"
@ -212,9 +215,6 @@ msgstr "Als gelesen markieren"
msgid "All notifications"
msgstr "Alle Benachrichtigungen"
msgid "Confirm Order"
msgstr "Bestellung Bestätigen"
msgid "Date"
msgstr "Datum"
@ -390,12 +390,12 @@ msgstr ""
msgid "Private Key"
msgstr ""
msgid "Delete SSH Key"
msgstr "SSH Key löschen"
msgid "Do You want to delete this key?"
msgstr "Möchtest Du den Schlüssel löschen?"
msgid "Close"
msgstr "Schliessen"
msgid "Show"
msgstr "Anzeigen"
@ -474,11 +474,17 @@ msgstr "Du kannst dich nun"
msgid "Sorry. Your request is invalid."
msgstr "Entschuldigung, deine Anfrage ist ungültig."
msgid "Confirm Order"
msgstr "Bestellung Bestätigen"
msgid ""
"We could not find the requested VM. Please "
"contact Data Center Light Support."
msgstr ""
#~ msgid "Close"
#~ msgstr "Schliessen"
#~ msgid "Cancel"
#~ msgstr "Beenden"

View File

@ -140,10 +140,11 @@
.btn-custom-delete a, .btn-custom-download a{
text-decoration: none;
}
.modal-body p{
.modal-body p.ssh-key{
width: 100%;
word-wrap: break-word;
text-align: left;
margin-top: 10px;
}
@media screen and (max-width: 768px) {

View File

@ -59,7 +59,7 @@
action="{% url 'hosting:delete_order' order.id %}">
{% csrf_token %}
<div class="modal-footer">
<button type="submit" class="btn btn-primary">{% trans "Delete"%}
<button type="submit" class="btn btn-danger">{% trans "Delete"%}
</button>
</div>
</form>

View File

@ -38,7 +38,6 @@
<span class="pc-only">{% trans "Delete" %}</span>
<span class="mob-only"><i class="fa fa-trash"></i></span>
</button>
<div class="modal fade" id="Modal{{user_key.id }}" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
@ -49,11 +48,13 @@
</button>
</div>
<div class="modal-body">
<h4 class="modal-title" id="ModalLabel">{% trans "Do You want to delete this key?" %}</h4>
<div class="modal-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
<h4 class="modal-title" id="ModalLabel">{% trans "Delete SSH Key"%}</h4>
<p class="modal-text">{% trans "Do You want to delete this key?"%}</p>
<form method="post" action="{% url 'hosting:delete_ssh_key' user_key.id %}">
{% csrf_token %}
<div class="modal-footer">
<button type="submit" class="btn btn-primary">{% trans "Delete" %}
<button type="submit" class="btn btn-danger">{% trans "Delete"%}
</button>
</div>
</form>
@ -79,10 +80,6 @@
<h4 class="modal-title" id="ModalLabel_Public_Key">{% trans "Public ssh key" %}</h4>
<p style="margin-top: 10px;">{{ user_key.public_key }}</p>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">
{% trans "Close" %}
</button>
</div>
</div>
</div>