message-edit.html 1.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}

{% block title-page %}{% trans "Broadcast Messages" %}{% endblock %}

{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <div class="pull-right">
          <a href="{% url "dashboard.views.message-list" %}"
            class="btn btn-default btn-xs">
            {% trans "Back" %}
          </a>
          <a href="{% url "dashboard.views.message-delete" pk=object.pk %}"
             class="btn btn-danger btn-xs">
            {% trans "Delete" %}
          </a>
        </div>
        <h3 class="no-margin">
          <i class="fa fa-bullhorn"></i>
          {% trans "Edit message" %}
        </h3>
      </div>
      <div class="panel-body">
        {% crispy form %}
      </div><!-- .panel-body -->
    </div>
  </div>
</div>
Bach Dániel committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin">
          <i class="fa fa-eye"></i>
          {% trans "Preview" %}
        </h3>
      </div>
      <div class="panel-body">
        <div class="alert alert-{{ message.effect }} text-center broadcast-message">
          {{ message.message|safe }}
        </div>
      </div><!-- .panel-body -->
    </div>
  </div>
</div>

{% endblock %}

{% block broadcast_messages %}
56
{% endblock %}