Homogeneize edit buttons UX
This commit is contained in:
parent
ee83c1c69f
commit
56cc558ca4
|
@ -9,7 +9,7 @@
|
|||
<h1>{{ talk.title }}</h1>
|
||||
|
||||
{% if edit_perm %}
|
||||
<a class="btn btn-primary" href="{% url 'edit-talk' talk.slug %}">edit</a><br />
|
||||
<a class="btn btn-success" href="{% url 'edit-talk' talk.slug %}">{% trans "Edit" %}</a><br />
|
||||
{% endif %}
|
||||
|
||||
<p>{{ talk.get_event_display }}</p>
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
|
||||
<h1>{{ profile }}</h1>
|
||||
|
||||
{% if request|edit_profile:profile %}
|
||||
<a href="{% url 'edit-participant' profile.user.username %}" class="btn btn-success">{% trans "Edit" %}</a>
|
||||
{% endif %}
|
||||
|
||||
<img class="pull-right" src="{% avatar_url profile.user 160 %}" />
|
||||
|
||||
<h2>{% trans "Biography" %}</h2>
|
||||
|
@ -18,7 +22,6 @@
|
|||
{% if request|edit_profile:profile %}
|
||||
<h2>{% trans "Notes" %}</h2>
|
||||
<p>{{ profile.notes }}</p>
|
||||
<a href="{% url 'edit-participant' profile.user.username %}" class="btn btn-success">{% trans "Edit" %}</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue