mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
sharing: CSS styling fixes and text changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
498a0e3407
commit
943142a0a5
@ -20,6 +20,17 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block page_head %}
|
||||||
|
<style type="text/css">
|
||||||
|
.share-operations form {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.share-operations {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
@ -29,10 +40,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a title="{% trans 'Add new share' %}"
|
<a title="{% trans 'Add share' %}"
|
||||||
role="button" class="btn btn-primary"
|
role="button" class="btn btn-primary"
|
||||||
href="{% url 'sharing:add' %}">
|
href="{% url 'sharing:add' %}">
|
||||||
{% trans 'Add new share' %}
|
{% trans 'Add share' %}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -42,10 +53,10 @@
|
|||||||
<table class="table table-bordered table-condensed table-striped" id="shares-list">
|
<table class="table table-bordered table-condensed table-striped" id="shares-list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Share Name" %}</th>
|
<th>{% trans "Name" %}</th>
|
||||||
<th>{% trans "Disk Path" %}</th>
|
<th>{% trans "Disk Path" %}</th>
|
||||||
<th>{% trans "Shared Over" %}</th>
|
<th>{% trans "Shared Over" %}</th>
|
||||||
<th>{% trans "To Groups" %}</th>
|
<th>{% trans "With Groups" %}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -63,16 +74,16 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="share-groups">{{ share.groups|join:", " }}</td>
|
<td class="share-groups">{{ share.groups|join:", " }}</td>
|
||||||
<td class="share-operations">
|
<td class="share-operations">
|
||||||
<form class="form form-inline" method="post"
|
<a class="share-edit btn btn-sm btn-default"
|
||||||
action="{% url 'sharing:remove' share.name %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
<button class="share-remove btn btn-sm btn-default glyphicon glyphicon-trash pull-right"
|
|
||||||
type="submit"></button>
|
|
||||||
</form>
|
|
||||||
<a class="share-edit btn btn-sm btn-default pull-right"
|
|
||||||
href="{% url 'sharing:edit' share.name %}">
|
href="{% url 'sharing:edit' share.name %}">
|
||||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
|
<form class="form form-inline" method="post"
|
||||||
|
action="{% url 'sharing:remove' share.name %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button class="share-remove btn btn-sm btn-default glyphicon glyphicon-trash"
|
||||||
|
type="submit"></button>
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user