1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

[repo setting] modified 'folder perm'

This commit is contained in:
llj
2015-06-17 13:33:40 +08:00
parent eb0bc2d937
commit a32ae19a4b
2 changed files with 15 additions and 12 deletions

View File

@@ -3423,6 +3423,9 @@ textarea:-moz-placeholder {/* for FF */
.group-perm-add-tr input { .group-perm-add-tr input {
padding:2px 5px; padding:2px 5px;
} }
#perm-add-grp-name {
width: 95%;
}
.perm-add-select-folder { .perm-add-select-folder {
position:relative; position:relative;
right:18px; right:18px;

View File

@@ -43,21 +43,21 @@
<div id="user-tab"> <div id="user-tab">
<table> <table>
<tr> <tr>
<th width="30%">{% trans "User" %}</th> <th width="40%">{% trans "User" %}</th>
<th width="30%">{% trans "Folder" %}</th> <th width="30%">{% trans "Folder" %}</th>
<th width="30%">{% trans "Permission" %}</th> <th width="20%">{% trans "Permission" %}</th>
<th width="10%"></th> <th width="10%"></th>
</tr> </tr>
<tr class="user-perm-add-tr hide"> <tr class="user-perm-add-tr hide">
<td><input id="perm-add-user" type="hidden" /></td> <td><input id="perm-add-user" type="hidden" class="w100" /></td>
<td> <td>
<input class="user-perm-add-folder-name" placeholder="{% trans "Select a folder"%}" type="text" /><img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="perm-add-select-folder add vam" /> <input class="user-perm-add-folder-name" placeholder="{% trans "Select a folder"%}" type="text" /><img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="perm-add-select-folder add vam" />
<input class="user-perm-add-folder-path" type="hidden" /> <input class="user-perm-add-folder-path" type="hidden" />
</td> </td>
<td> <td>
<select name="permission" class="user-perm-add-perm"> <select name="permission" class="user-perm-add-perm w100">
<option value="rw" selected="selected">{% trans "Read-Write"%}</option> <option value="rw" selected="selected">{% trans "Read-Write"%}</option>
<option value="r">{% trans "Read-Only"%}</option> <option value="r">{% trans "Read-Only"%}</option>
</select> </select>
</td> </td>
<td> <td>
@@ -95,14 +95,14 @@
<div id="group-tab" class="hide"> <div id="group-tab" class="hide">
<table> <table>
<tr> <tr>
<th width="30%">{% trans "Group" %}</th> <th width="40%">{% trans "Group" %}</th>
<th width="30%">{% trans "Folder" %}</th> <th width="30%">{% trans "Folder" %}</th>
<th width="30%">{% trans "Permission" %}</th> <th width="20%">{% trans "Permission" %}</th>
<th width="10%"></th> <th width="10%"></th>
</tr> </tr>
<tr class="group-perm-add-tr hide"> <tr class="group-perm-add-tr hide">
<td> <td>
<input id="perm-add-grp-name" placeholder="{% trans "Group"%}" /> <input id="perm-add-grp-name" placeholder="{% trans "Group"%}" type="text" />
<input id="perm-add-grp-id" type="hidden" /> <input id="perm-add-grp-id" type="hidden" />
</td> </td>
<td> <td>
@@ -110,7 +110,7 @@
<input class="group-perm-add-folder-path" type="hidden" /> <input class="group-perm-add-folder-path" type="hidden" />
</td> </td>
<td> <td>
<select name="permission" class="group-perm-add-perm"> <select name="permission" class="group-perm-add-perm w100">
<option value="rw" selected="selected">{% trans "Read-Write"%}</option> <option value="rw" selected="selected">{% trans "Read-Write"%}</option>
<option value="r">{% trans "Read-Only"%}</option> <option value="r">{% trans "Read-Only"%}</option>
</select> </select>
@@ -184,8 +184,8 @@ group_list.push({value:group_id, label:group_name});
{% endfor %} {% endfor %}
user_input.select2($.extend({ user_input.select2($.extend({
width: '203px', width: '270px',
placeholder: "{% trans "Search user" %}" placeholder: "{% trans "Search users or enter emails" %}"
}, userInputOPtionsForSelect2('{% url 'search-user' %}'))); }, userInputOPtionsForSelect2('{% url 'search-user' %}')));
group_input.bind('autocompleteopen', function(e, ui) { group_input.bind('autocompleteopen', function(e, ui) {