Commit fac811d4 authored by Robert's avatar Robert

Replace text by button

parent b428901f
Pipeline #1407 failed with stage
in 1 minute and 39 seconds
......@@ -5,10 +5,11 @@
{% csrf_token %}
{{ form.in_reply_to }}
{% field form.text hide_label=True %}
<button class="btn btn-primary">{{ submit_label }}</button>
<span class="media-instruction">
Post wird
<strong>{% if not association.public %}nicht {% endif %}öffentlich</strong> sein.
<span class="btn has-state has-square-icon has-hover-title is-unresponsive float-right"
data-state="{% if association.public %}in{% endif %}active">
<i class="sg sg-xl sg-privacy-{% if association.public %}public{% else %}private{% endif %}"></i>
<span class="btn-htitle" data-position="right" title="
Post wird {% if not association.public %}nicht {% endif %}öffentlich sein.
Benachrichtigungen werden an
{% if association.entity.is_group %}Mitglieder der Gruppe{% endif %}
@{{ association.entity.slug }}
......@@ -17,8 +18,10 @@
{% elif association.entity.user == user %}
und @{{ association.container.contributions.first.author }}
{% endif %}
versendet.
versendet.">
</span>
</span>
<button class="btn btn-primary">{{ submit_label }}</button>
</form>
{% endblock %}
......
......@@ -12,15 +12,19 @@
{% endif %}
{% field form.subject %}
{% field form.text %}
<button class="btn btn-primary" data-publish-submit>
Nachricht senden
</button>
<span class="media-instruction">
Gespräch wird <strong>nicht öffentlich</strong> sein.
<span class="btn has-state has-square-icon has-hover-title is-unresponsive float-right"
data-state="active">
<i class="sg sg-xl sg-privacy-private"></i>
<span class="btn-htitle" data-position="right" title="
Gespräch wird nicht öffentlich sein.
{% if view.entity %}
Benachrichtigungen werden nur an
{% if view.entity.is_group %}Mitglieder der Gruppe{% endif %}
@{{ view.entity.slug }} versendet.
{% endif %}
{% endif %}">
</span>
</span>
<button class="btn btn-primary" data-publish-submit>
Nachricht senden
</button>
</form>
......@@ -572,3 +572,12 @@
}
}
}
.btn.float-right {
@size: 2.25rem;
width: @size;
height: @size;
float: right;
clear: both;
margin-top: .25rem;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment