Skip to content

Commit

Permalink
Fixed message template class naming
Browse files Browse the repository at this point in the history
  • Loading branch information
muratcakir committed Feb 9, 2018
1 parent 91152c7 commit a3581cd
Show file tree
Hide file tree
Showing 60 changed files with 162 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ $content-padding-y: 15px;
&:not(:active):not(.active):focus,
&:not(:active):not(.active).focus {
@if $color == "secondary" or $color == "light" {
box-shadow: 0 0 0 0.125rem rgba($primary, .15);
box-shadow: 0 0 0 0.25em rgba($primary, .15);
}
@else {
box-shadow: 0 0 0 0.125rem rgba($value, .4);
box-shadow: 0 0 0 0.25em rgba($value, .4);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,5 +417,16 @@ public ActionResult CopyTemplate(MessageTemplateModel model)
return RedirectToAction("Edit", new { id = model.Id });
}
}

public ActionResult ImportAllTemplates()
{
// Hidden action for admins
var converter = new MessageTemplateConverter(Services.DbContext);
converter.ImportAll(Services.WorkContext.WorkingLanguage);

NotifySuccess("All file based message templates imported successfully.");

return RedirectToAction("List");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<p>
der Blog-Eintrag <a href="{{ BlogComment.PostUrl }}">{{ BlogComment.PostTitle }}</a> wurde von <a href="{{ Customer.EditUrl }}">{{ Customer.FullName }}</a> kommentiert:
</p>
<table class="w-100 brd bg-light m-t-4">
<table class="w-100 brd bg-light mt-4">
<tbody>
<tr>
<td class="p-3"><i>"{{ BlogComment.Text | Truncate: 400 }}"</i></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p>
der Artikel <b>{{ Product.Name }}</b> ist wieder verfügbar.
</p>
<p class="m-t-4">
<p class="mt-4">
<a href="{{ Product.Url }}" class="btn btn-primary">Zum Artikel</a>
</p>
{% endblock %}]]></Body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
bitte bestätigen Sie Ihre Registrierung mit einem Klick auf folgenden Link:
</p>
<p class="text-center m-t-4 m-b-4">
<p class="text-center mt-4 mb-4">
<a class="btn btn-primary" href="{{ Customer.AccountActivationURL }}">Registrierung bestätigen</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{ OrderNote.Text }}
</p>
{% if Order.Url %}
<p class="text-center m-t-4">
<p class="text-center mt-4">
<a href="{{ Order.Url }}" class="btn btn-primary">Zu den Bestelldetails</a>
</p>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
Sie haben eine neue private Nachricht von <b>{{ PrivateMessage.FromName }}</b> erhalten.
</p>
<p class="m-t-4 m-b-4">
<p class="mt-4 mb-4">
<a href="{{ PrivateMessage.Url }}" class="btn btn-primary">Zur Nachricht</a>
</p>
<table class="w-100 brd bg-light">
<tr>
<td class="p-3">
<h3 class="m-b-3">
<h3 class="mb-3">
{{ PrivateMessage.Subject }}
</h3>
<p class="message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
um Ihr Kennwort zurückzusetzen, klicken Sie bitte auf den folgenden Link:
</p>
<p class="text-center m-t-4 m-b-4">
<p class="text-center mt-4 mb-4">
<a class="btn btn-danger" href="{{ Customer.PasswordRecoveryURL }}">Kennwort zurücksetzen</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
im Forum <a href="{{ Forum.Url }}">{{ Forum.Name }}</a> wurde ein neuer Beitrag von <strong>{{ ForumPost.Author }}</strong> erstellt:
</p>
<p class="m-t-4 m-b-4">
<p class="mt-4 mb-4">
<a href="{{ ForumTopic.Url }}" class="btn btn-primary">Zum Beitrag</a>
</p>
<table class="w-100 brd bg-light">
<tr>
<td class="p-3">
<h3 class="m-b-3">
<h3 class="mb-3">
{{ ForumTopic.Subject }}
</h3>
<p class="message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
im Forum <a href="{{ Forum.Url }}">{{ Forum.Name }}</a> wurde ein neues Thema erstellt:
</p>
<p class="m-t-4 m-b-4">
<p class="mt-4 mb-4">
<a href="{{ ForumTopic.Url }}" class="btn btn-primary">Zum Thema</a>
</p>
<table class="w-100 brd bg-light">
<tr>
<td class="p-3">
<h3 class="m-b-3">
<h3 class="mb-3">
{{ ForumTopic.Subject }}
</h3>
<p class="message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<table class="w-100 brd bg-light">
<tr>
<td class="p-3">
<h3 class="m-b-3">
<h3 class="mb-3">
Persönliche Nachricht
</h3>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a href="mailto:{{ Customer.Email }}">{{ Customer.Email }}</span>
</p>
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-primary" href="{{ Customer.EditUrl }}">Zum Profil</a>
</p>
{% endblock %}]]></Body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<b>{{ Customer.FullName }}</b> hat eine Retouren-Anfrage geschickt.
</p>
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-primary" href="{{ ReturnRequest.Url }}">Anfrage bearbeiten</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<b>{{ Customer.FullName }}</b> (<a mailto:{{ Customer.Email }}>{{ Customer.Email }}</a>) hat eine neue Umsatzsteuer-ID übermittelt.
</p>
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-primary" href="{{ Customer.EditUrl }}">Zum Kundenprofil</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<table class="w-100 brd bg-light">
<tr>
<td class="p-3">
<h3 class="m-b-3">
<h3 class="mb-3">
{{ NewsComment.Title }}
</h3>
<p class="message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
um Ihre Newsletter-Anmeldung zu bestätigen, klicken Sie bitte auf den folgenden Link:
</p>
<p class="text-center m-t-4 m-b-4">
<p class="text-center mt-4 mb-4">
<a class="btn btn-success" href="{{ NewsLetterSubscription.ActivationUrl }}">Anmeldung bestätigen</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
um sich von unserem Newsletter abzumelden, klicken Sie bitte auf den folgenden Link:
</p>
<p class="text-center m-t-4 m-b-4">
<p class="text-center mt-4 mb-4">
<a class="btn btn-danger" href="{{ NewsLetterSubscription.DeactivationUrl }}">Abmeldung bestätigen</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
wir haben Ihre Bestellung mit der Nummer <b>{{ Order.OrderNumber }}</b> storniert.
</p>
<table class="w-100 m-b-3">
<table class="w-100 mb-3">
<thead>
<tr>
<th class="text-muted text-sm">Bestellt am</th>
Expand All @@ -33,12 +33,12 @@
</table>
{% if Order.Url %}
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-warning" href="{{ Order.Url }}">Details aufrufen</a>
</p>
{% endif %}
<table class="w-100 brd m-b-4">
<table class="w-100 brd mb-4">
<tbody>
<tr>
<td class="p-2">
Expand All @@ -50,7 +50,7 @@
<h3>Rechnungsanschrift</h3>
{% include 'address' with Order.Billing %}
{% if Order.PaymentMethod %}
<h3 class="m-t-2">Zahlart</h3>
<h3 class="mt-2">Zahlart</h3>
<div class="text-sm">{{ Order.PaymentMethod }}</div>
{% endif %}
</td>
Expand All @@ -62,7 +62,7 @@
<p class="text-muted text-sm">Wie Rechnungsanschrift</p>
{% endif %}
{% if Order.ShippingMethod %}
<h3 class="m-t-2">Versandart</h3>
<h3 class="mt-2">Versandart</h3>
<div class="text-sm">{{ Order.ShippingMethod }} </div>
{% endif %}
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
wir haben Ihre Bestellung mit der Nummer <b>{{ Order.OrderNumber }}</b> erfolgreich bearbeitet. Details finden Sie unten.
</p>
<table class="w-100 m-b-3">
<table class="w-100 mb-3">
<thead>
<tr>
<th class="text-muted text-sm">Bestellt am</th>
Expand All @@ -33,12 +33,12 @@
</table>
{% if Order.Url %}
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-success" href="{{ Order.Url }}">Details aufrufen</a>
</p>
{% endif %}
<table class="w-100 brd m-b-4">
<table class="w-100 brd mb-4">
<tbody>
<tr>
<td class="p-2">
Expand All @@ -50,7 +50,7 @@
<h3>Rechnungsanschrift</h3>
{% include 'address' with Order.Billing %}
{% if Order.PaymentMethod %}
<h3 class="m-t-2">Zahlart</h3>
<h3 class="mt-2">Zahlart</h3>
<div class="text-sm">{{ Order.PaymentMethod }}</div>
{% endif %}
</td>
Expand All @@ -62,7 +62,7 @@
<p class="text-muted text-sm">Wie Rechnungsanschrift</p>
{% endif %}
{% if Order.ShippingMethod %}
<h3 class="m-t-2">Versandart</h3>
<h3 class="mt-2">Versandart</h3>
<div class="text-sm">{{ Order.ShippingMethod }} </div>
{% endif %}
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
herzlichen Dank für Ihre Bestellung bei <a href="{{ Store.URL }}">{{ Store.Name }}</a>, deren Erhalt wir hiermit bestätigen. Eine Übersicht über Ihre Bestellung finden Sie unten.
</p>
<table class="w-100 m-b-3">
<table class="w-100 mb-3">
<thead>
<tr>
<th class="text-muted text-sm">Bestellt am</th>
Expand All @@ -32,7 +32,7 @@
</tbody>
</table>
<table class="w-100 brd m-b-4">
<table class="w-100 brd mb-4">
<tbody>
<tr>
<td class="p-2">
Expand All @@ -44,7 +44,7 @@
<h3>Rechnungsanschrift</h3>
{% include 'address' with Order.Billing %}
{% if Order.PaymentMethod %}
<h3 class="m-t-2">Zahlart</h3>
<h3 class="mt-2">Zahlart</h3>
<div class="text-sm">{{ Order.PaymentMethod }}</div>
{% endif %}
</td>
Expand All @@ -56,7 +56,7 @@
<p class="text-muted text-sm">Wie Rechnungsanschrift</p>
{% endif %}
{% if Order.ShippingMethod %}
<h3 class="m-t-2">Versandart</h3>
<h3 class="mt-2">Versandart</h3>
<div class="text-sm">{{ Order.ShippingMethod }} </div>
{% endif %}
</td>
Expand All @@ -71,21 +71,21 @@
{% include 'order' %}
<table id="conditions-of-use" class="m-t-5 m-b-4">
<table id="conditions-of-use" class="mt-5 mb-4">
<tr>
<td class="text-sm text-muted-all">
<h2 class="m-b-3">{{ Order.ConditionsOfUse.Title }} </h2>
<h2 class="mb-3">{{ Order.ConditionsOfUse.Title }} </h2>
{{ Order.ConditionsOfUse.Body }}
</td>
</tr>
</table>
<hr />
<table id="disclaimer" class="m-t-4">
<table id="disclaimer" class="mt-4">
<tr>
<td class="text-sm text-muted-all">
<h2 class="m-b-3">{{ Order.Disclaimer.Title }} </h2>
<h2 class="mb-3">{{ Order.Disclaimer.Title }} </h2>
{{ Order.Disclaimer.Body }}
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Neue Bestellung eingegangen,
</h1>
<table class="w-100 m-b-3">
<table class="w-100 mb-3">
<thead>
<tr>
<th class="text-muted text-sm">Bestellt am</th>
Expand All @@ -30,7 +30,7 @@
</tbody>
</table>
<table class="w-100 brd m-b-4">
<table class="w-100 brd mb-4">
<tbody>
<tr>
<td class="p-2">
Expand All @@ -42,7 +42,7 @@
<h3>Rechnungsanschrift</h3>
{% include 'address' with Order.Billing %}
{% if Order.PaymentMethod %}
<h3 class="m-t-2">Zahlart</h3>
<h3 class="mt-2">Zahlart</h3>
<div class="text-sm">{{ Order.PaymentMethod }}</div>
{% endif %}
</td>
Expand All @@ -54,7 +54,7 @@
<p class="text-muted text-sm">Wie Rechnungsanschrift</p>
{% endif %}
{% if Order.ShippingMethod %}
<h3 class="m-t-2">Versandart</h3>
<h3 class="mt-2">Versandart</h3>
<div class="text-sm">{{ Order.ShippingMethod }} </div>
{% endif %}
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</table>
{% if Customer.IsRegistered %}
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-primary" href="{{ Customer.Url }}">Zum Kundenprofil</a>
</p>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</p>
{% endif %}
<p class="m-t-4 m-b-4">
<p class="mt-4 mb-4">
<a href="{{ Product.Url }}" class="btn btn-primary">Zum Produkt</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<b>{{ Customer.FullName }}</b> hat ein Zahlungs-Abo storniert.
</p>
<p class="m-t-4 m-b-4 text-center">
<p class="mt-4 mb-4 text-center">
<a class="btn btn-primary" href="{{ RecurringPayment.Url }}">Abo aufrufen</a>
</p>
Expand Down
Loading

0 comments on commit a3581cd

Please sign in to comment.