Projet

Général

Profil

« Précédent | Suivant » 

Révision c7da4c3f

Ajouté par Serghei Mihai il y a plus de 7 ans

re-style unsubscription pages (#13614)

Voir les différences:

corbo/static/css/corbo.css
143 143
}
144 144

  
145 145
.unsubscription {
146
    background: #e6db74;
147
    border: 1px solid #aaa;
146
    background: #eee;
147
    border: 1px solid #efefef;
148 148
    padding: 5px;
149
    margin-top: 5em;
150
    border-radius: 0.3em;
151
    font-size: 1.1em;
152
    text-align: center;
153
}
154

  
155
.unsubscription h2 {
156
    border-bottom: 1px solid #fff;
157
}
158

  
159
.unsubscription button {
160
    background: #000;
161
    color: #fff;
162
    border: 1px solid #fff;
163
    padding: 10px;
164
    border-radius: 0.3em;
165
    text-transform: uppercase;
149 166
}
corbo/templates/corbo/subscription_confirm_delete.html
7 7

  
8 8
{% block content %}
9 9
<div class="unsubscription">
10
{% blocktrans with object.category as category and object.get_identifier_display as identifier %}
11
Are you sure you want to unsubscribe {{ identifier }} from "{{ category }}"?
12
{% endblocktrans %}
13
<form method='POST'>
14
  {% csrf_token %}
15
  <button>{% trans "Unsubscribe" %}</button>
16
</form>
10
  <h2>{{ object.category }}</h2>
11
  <p>{% trans 'Click on "Unsubscribe" to stop receiving emails to this address:' %}
12
  <strong>{{ object.get_identifier_display }}</strong></p>
13
    <form method='POST'>
14
      {% csrf_token %}
15
      <button>{% trans "Unsubscribe" %}</button>
16
    </form>
17 17
</div>
18 18
{% endblock %}
corbo/templates/corbo/unsubscription_done.html
6 6
{% endblock %}
7 7

  
8 8
{% block content %}
9
<div class="info">{% trans "You were successfully unsubcribed." %}</div>
9
{{ object }}
10
<div class="unsubscription">{% trans "You were successfully unsubscribed." %}</div>
10 11
{% endblock %}

Formats disponibles : Unified diff