kopia lustrzana https://github.com/wagtail/wagtail
fixing save button on page creation
rodzic
6acb81dc78
commit
280d960829
|
@ -257,6 +257,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.icon.icon-larger:before{
|
||||
font-size:1.5em;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<li>
|
||||
<div class="row row-flush">
|
||||
<div class="col6">
|
||||
<a href="{% url 'wagtailadmin_pages_create' content_type.app_label content_type.model parent_page.id %}" class="icon icon-plus-inverse">{{ content_type.model_class.get_verbose_name }}</a>
|
||||
<a href="{% url 'wagtailadmin_pages_create' content_type.app_label content_type.model parent_page.id %}" class="icon icon-plus-inverse icon-larger">{{ content_type.model_class.get_verbose_name }}</a>
|
||||
</div>
|
||||
|
||||
<small class="col6" style="text-align:right">
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<footer>
|
||||
<ul>
|
||||
<li class="actions">
|
||||
<div class="dropdown dropup button match-width">
|
||||
<div class="dropdown dropup dropdown-button match-width">
|
||||
<input type="submit" value="{% trans 'Save as draft' %}" class="button" />
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul role="menu">
|
||||
|
@ -37,11 +37,11 @@
|
|||
</div>
|
||||
</li>
|
||||
|
||||
<li class="actions">
|
||||
<li class="actions preview">
|
||||
{% trans 'Preview' as preview_label %}
|
||||
{% if display_modes|length > 1 %}
|
||||
<div class="dropdown dropup button match-width">
|
||||
{% include "wagtailadmin/pages/_preview_button_on_create.html" with label=preview_label %}
|
||||
{% include "wagtailadmin/pages/_preview_button_on_create.html" with label=preview_label icon=1 %}
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul role="menu">
|
||||
{% for mode_name, mode_display_name in display_modes %}
|
||||
|
@ -52,7 +52,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
{% include "wagtailadmin/pages/_preview_button_on_create.html" with label=preview_label %}
|
||||
{% include "wagtailadmin/pages/_preview_button_on_create.html" with label=preview_label icon=1 %}
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Ładowanie…
Reference in New Issue