Commit 2108a322 by benjaoming

grid layout on all form-action occurences

parent 5a90cfe0
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -31,6 +33,7 @@ ...@@ -31,6 +33,7 @@
{% trans "Delete it!" %} {% trans "Delete it!" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% else %} {% else %}
...@@ -43,6 +46,8 @@ ...@@ -43,6 +46,8 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -52,6 +57,7 @@ ...@@ -52,6 +57,7 @@
{% trans "Remove reference" %} {% trans "Remove reference" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% endif %} {% endif %}
......
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -41,6 +43,7 @@ ...@@ -41,6 +43,7 @@
{% trans "Upload replacement" %} {% trans "Upload replacement" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% endblock %} {% endblock %}
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
<form method="POST" class="form-horizontal" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default"> <a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -25,6 +27,7 @@ ...@@ -25,6 +27,7 @@
{% trans "Remove it completely!" %} {% trans "Remove it completely!" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% endblock %} {% endblock %}
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
<form method="POST" class="form-horizontal" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default"> <a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -25,6 +27,7 @@ ...@@ -25,6 +27,7 @@
{% trans "Upload replacement" %} {% trans "Upload replacement" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% endblock %} {% endblock %}
......
...@@ -28,11 +28,14 @@ ...@@ -28,11 +28,14 @@
{% endfor %} {% endfor %}
{% if formset.forms %} {% if formset.forms %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<button type="submit" class="btn btn-primary"> <button type="submit" class="btn btn-primary">
<span class="icon-ok"></span> <span class="icon-ok"></span>
{% trans "Save changes" %} {% trans "Save changes" %}
</button> </button>
</div> </div>
</div>
{% endif %} {% endif %}
</form> </form>
......
...@@ -7,10 +7,13 @@ ...@@ -7,10 +7,13 @@
<form method="POST" class="form-horizontal"> <form method="POST" class="form-horizontal">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<button type="submit" name="save_changes" class="btn btn-primary btn-large"> <button type="submit" name="save_changes" class="btn btn-primary btn-large">
<span class="icon-plus"></span> <span class="icon-plus"></span>
{% trans "Sign me up..." %} {% trans "Sign me up..." %}
</button> </button>
</div>
</div> </div>
</form> </form>
{% addtoblock "js" %} {% addtoblock "js" %}
......
...@@ -29,8 +29,11 @@ ...@@ -29,8 +29,11 @@
<form method="POST" class="form-horizontal"> <form method="POST" class="form-horizontal">
{% wiki_form create_form %} {% wiki_form create_form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<input type="submit" name="save_changes" value="{% trans "Create root" %} &raquo;" class="btn btn-primary btn-large" /> <input type="submit" name="save_changes" value="{% trans "Create root" %} &raquo;" class="btn btn-primary btn-large" />
</div> </div>
</div>
</form> </form>
{% endblock %} {% endblock %}
......
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
<form method="POST" class="form-horizontal"> <form method="POST" class="form-horizontal">
{% wiki_form delete_form %} {% wiki_form delete_form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-default btn-large"> <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-default btn-large">
<span class="icon-circle-arrow-left"></span> <span class="icon-circle-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
...@@ -50,6 +52,7 @@ ...@@ -50,6 +52,7 @@
{% trans "Delete article" %} {% trans "Delete article" %}
</button> </button>
</div> </div>
</div>
</form> </form>
{% endif %} {% endif %}
......
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