1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

[lib setting] folder perm: modified ui

This commit is contained in:
llj
2016-02-20 14:20:50 +08:00
parent 9b4e4d0460
commit 3d27c05520
3 changed files with 20 additions and 13 deletions

View File

@@ -3374,7 +3374,7 @@ textarea:-moz-placeholder {/* for FF */
line-height:16px; line-height:16px;
} }
/* repo setting */ /* repo setting TODO*/
.user-perm-add-tr input, .user-perm-add-tr input,
.group-perm-add-tr input { .group-perm-add-tr input {
padding:2px 5px; padding:2px 5px;
@@ -3485,6 +3485,13 @@ textarea:-moz-placeholder {/* for FF */
max-height:250px; max-height:250px;
overflow:auto; overflow:auto;
} }
#repo-folder-perm .tabs-panel {
width:600px;
}
.repo-folder-perm-folder-path {
padding:3px 5px;
width:155px;
}
#share-popup .share-permission-select, #share-popup .share-permission-select,
#folder-perm-tabs .perm-select { #folder-perm-tabs .perm-select {
height:30px; height:30px;

View File

@@ -1194,17 +1194,17 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th width="30%">{% trans "User" %}</th> <th width="32%">{% trans "User" %}</th>
<th width="30%">{% trans "Folder" %}</th> <th width="32%">{% trans "Folder" %}</th>
<th width="30%">{% trans "Permission" %}</th> <th width="26%">{% trans "Permission" %}</th>
<th width="10%"><!--op--></th> <th width="10%"><!--op--></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr class="user-perm-add-tr"> <tr>
<td><input name="emails" type="hidden" /></td> <td><input name="emails" type="hidden" /></td>
<td> <td>
<input type="text" name="folder_path" /> <input type="text" name="folder_path" class="repo-folder-perm-folder-path" />
<img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="add vam" /> <img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="add vam" />
</td> </td>
<td> <td>
@@ -1226,19 +1226,19 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th width="30%">{% trans "Group" %}</th> <th width="32%">{% trans "Group" %}</th>
<th width="30%">{% trans "Folder" %}</th> <th width="32%">{% trans "Folder" %}</th>
<th width="30%">{% trans "Permission" %}</th> <th width="26%">{% trans "Permission" %}</th>
<th width="10%"><!--op--></th> <th width="10%"><!--op--></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr class="group-perm-add-tr"> <tr>
<td> <td>
<select name="groups" class="w100" multiple="multiple"></select> <select name="groups" class="w100" multiple="multiple"></select>
</td> </td>
<td> <td>
<input type="text" name="folder_path" /> <input type="text" name="folder_path" class="repo-folder-perm-folder-path" />
<img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="add vam" /> <img src="{{ MEDIA_URL }}img/add.png" alt="" title="{% trans "Select a folder" %}" class="add vam" />
</td> </td>
<td> <td>

View File

@@ -66,7 +66,7 @@ define([
if (collection.perm_type == 'user') { if (collection.perm_type == 'user') {
$('[name="emails"]', $panel).select2($.extend({ $('[name="emails"]', $panel).select2($.extend({
width: '160px' width: '190px'
},Common.contactInputOptionsForSelect2())); },Common.contactInputOptionsForSelect2()));
} else { } else {
var groups = app.pageOptions.groups || []; var groups = app.pageOptions.groups || [];
@@ -76,7 +76,7 @@ define([
} }
$('[name="groups"]', $panel).html(g_opts).select2({ $('[name="groups"]', $panel).html(g_opts).select2({
placeholder: gettext("Select groups"), placeholder: gettext("Select groups"),
width: '160px', width: '190px',
escapeMarkup: function(m) { return m; } escapeMarkup: function(m) { return m; }
}); });
} }