Skip to content

Commit

Permalink
[Backoffice] Simplify adding content.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Aug 30, 2015
1 parent ee3ef5a commit 082a9e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

.btn-add {
background-color: #3498db;
border-radius: 15px 5px 5px 15px;
border-radius: 17px;
color: #fff;
display: inline-block;
font-size: 13px;
font-size: 16px;
margin-bottom: -4px;
overflow: hidden;
padding: 5px 8px;
padding: 5px 10px;
&:hover {
color: #fff;
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

{% trans_default_domain 'clastic' %}

{% block page_title %}{{ 'dashboard.title'|trans }}{% endblock %}
{% block page_title -%}
{{ 'dashboard.title'|trans }}

<div class="btn-group">
<button type="button" class="btn dropdown-toggle btn-add" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-plus"></i>
</button>
<ul class="dropdown-menu">
{% for module in moduleManager.getContentModules %}
<li><a href="{{ path('clastic_node_form', {type: module.identifier}) }}">{{ module.name }}</a></li>
{% endfor %}
</ul>
</div>
{%- endblock %}

{% block content %}
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% block page_title -%}
{{ module.name }}

<a class="btn-add" href="{{ path('clastic_node_form', {type: type}) }}"><i class="fa fa-plus"></i> Add</a>
<a class="btn-add" href="{{ path('clastic_node_form', {type: type}) }}"><i class="fa fa-plus"></i></a>
{%- endblock %}

{% block header_actions %}
Expand Down

0 comments on commit 082a9e1

Please sign in to comment.