Commit bde254c8 authored by Serge S. Koval's avatar Serge S. Koval

Adjusted button styles

parent b6614b7d
...@@ -87,17 +87,17 @@ ...@@ -87,17 +87,17 @@
<div class="btn-toolbar"> <div class="btn-toolbar">
{% if admin_view.can_upload %} {% if admin_view.can_upload %}
<div class="btn-group"> <div class="btn-group">
<a class="btn btn-primary btn-large" href="{{ get_dir_url('.upload', path=dir_path) }}">{{ _gettext('Upload File') }}</a> <a class="btn btn-large" href="{{ get_dir_url('.upload', path=dir_path) }}">{{ _gettext('Upload File') }}</a>
</div> </div>
{% endif %} {% endif %}
{% if admin_view.can_mkdir %} {% if admin_view.can_mkdir %}
<div class="btn-group"> <div class="btn-group">
<a class="btn btn-primary btn-large" href="{{ get_dir_url('.mkdir', path=dir_path) }}">{{ _gettext('Create Directory') }}</a> <a class="btn btn-large" href="{{ get_dir_url('.mkdir', path=dir_path) }}">{{ _gettext('Create Directory') }}</a>
</div> </div>
{% endif %} {% endif %}
{% if actions %} {% if actions %}
<div class="btn-group"> <div class="btn-group">
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-primary btn-large') }} {{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-large') }}
</div> </div>
{% endif %} {% endif %}
</div> </div>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% block body %} {% block body %}
{% macro extra() %} {% macro extra() %}
<input name="_add_another" type="submit" class="btn btn-primary btn-large" value="{{ _gettext('Save and Add') }}" /> <input name="_add_another" type="submit" class="btn btn-large" value="{{ _gettext('Save and Add') }}" />
{% endmacro %} {% endmacro %}
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
......
...@@ -97,58 +97,60 @@ ...@@ -97,58 +97,60 @@
<table class="table table-striped table-bordered model-list"> <table class="table table-striped table-bordered model-list">
<thead> <thead>
<tr> <tr>
{% if actions %} {% block list_header scoped %}
<th class="span1"> {% if actions %}
<input type="checkbox" name="rowtoggle" class="action-rowtoggle" /> <th class="span1">
</th> <input type="checkbox" name="rowtoggle" class="action-rowtoggle" />
{% endif %} </th>
<th class="span1">&nbsp;</th> {% endif %}
{% set column = 0 %} <th class="span1">&nbsp;</th>
{% for c, name in list_columns %} {% set column = 0 %}
<th> {% for c, name in list_columns %}
{% if admin_view.is_sortable(c) %} <th>
{% if sort_column == column %} {% if admin_view.is_sortable(c) %}
<a href="{{ sort_url(column, True) }}"> {% if sort_column == column %}
{{ name }} <a href="{{ sort_url(column, True) }}">
{% if sort_desc %} {{ name }}
<i class="icon-chevron-up"></i> {% if sort_desc %}
<i class="icon-chevron-up"></i>
{% else %}
<i class="icon-chevron-down"></i>
{% endif %}
</a>
{% else %} {% else %}
<i class="icon-chevron-down"></i> <a href="{{ sort_url(column) }}">{{ name }}</a>
{% endif %} {% endif %}
</a> {% else %}
{% else %} {{ name }}
<a href="{{ sort_url(column) }}">{{ name }}</a> {% endif %}
{% endif %} </th>
{% else %} {% set column = column + 1 %}
{{ name }} {% endfor %}
{% endif %} {% endblock %}
</th>
{% set column = column + 1 %}
{% endfor %}
</tr> </tr>
</thead> </thead>
{% for row in data %} {% for row in data %}
<tr> <tr>
{% if actions %} {% block list_row scoped %}
<td> {% if actions %}
<input type="checkbox" name="rowid" class="action-checkbox" value="{{ get_pk_value(row) }}" /> <td>
</td> <input type="checkbox" name="rowid" class="action-checkbox" value="{{ get_pk_value(row) }}" />
{% endif %} </td>
<td> {% endif %}
{%- if admin_view.can_edit -%} <td>
<a class="icon" href="{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}"> {%- if admin_view.can_edit -%}
<i class="icon-pencil"></i> <a class="icon" href="{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}">
</a> <i class="icon-pencil"></i>
{%- endif -%} </a>
{%- if admin_view.can_delete -%} {%- endif -%}
<form class="icon" method="POST" action="{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}"> {%- if admin_view.can_delete -%}
<button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');"> <form class="icon" method="POST" action="{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}">
<i class="icon-remove"></i> <button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');">
</button> <i class="icon-remove"></i>
</form> </button>
{%- endif -%} </form>
</td> {%- endif -%}
{% block list_columns scoped %} </td>
{% for c, name in list_columns %} {% for c, name in list_columns %}
<td>{{ get_value(row, c) }}</td> <td>{{ get_value(row, c) }}</td>
{% endfor %} {% endfor %}
......
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