Commit 00ebc818 authored by lumineau's avatar lumineau
Browse files

shared modifications for a little bit more usability

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12472 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 87d430de
......@@ -239,6 +239,10 @@ form{
margin:0.5rem 0 1rem 0;
clear:both;
}
main form form{
margin:1rem 0 0 0;
padding-left: 0!important;
}
label {
color: [% color_4 %];
......@@ -271,8 +275,14 @@ input {
input[type="checkbox"], input[type="radio"] {
border: none;
box-sizing: border-box;
*width: 13px;
*height: 13px;
}
input[type="file"]{
display: block;
margin-top:0.5rem;
}
select {
/*border: 1px solid [% color_12 %];
border-radius: 3px;
......@@ -336,12 +346,6 @@ button[disabled], input[disabled] {
cursor: default;
}
input[type="checkbox"], input[type="radio"] {
box-sizing: border-box;
*width: 13px;
*height: 13px;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
......@@ -707,6 +711,16 @@ dd {
/* end aside */
/*shared menu*/
menu.shared{
margin:1rem;
}
menu.shared li{
display:inline;
list-style:none;
}
/* end shared menu */
/*Top Button*/
.scroll-top-wrapper {
position: fixed;
......@@ -750,6 +764,13 @@ dd {
line-height: 2em;
}
/* Initials in list of lists */
main .top-bar-section li.letter,
main .top-bar-section li.letter a,
h4.letter {
text-transform: capitalize;
}
#top{
height: 0;
}
......@@ -1328,21 +1349,30 @@ a.dingbat {
font-size: 1.6em;
}
a.actionMenuLinks {
border: 1px solid;
text-decoration: none;
padding: 5px;
margin: 0 0.5em 0 0;
cursor:pointer;
background-color: [% color_10 %];
color: [% color_7 %];
font-size: 0.9em;
a.actionMenuLinksCurrentPage {
border: none;
text-decoration: none;
padding: 5px;
margin: 0 0.5em 0 0;
cursor:pointer;
background-color: [% color_10 %];
color: [% color_7 %];
font-size: 0.9em;
border-radius:2px;
}
a.actionMenuLinksCurrentPage {
border: 1px solid;
text-decoration: none;
padding: 0px 10px;
a.actionMenuLinks {
border: 1px solid;
font-size: 0.9em;
text-decoration: none;
padding: 4px;
border-radius:2px;
}
a.actionMenuLinks:hover {
border: 1px solid [% color_5 %];
background-color: [% color_5 %];
color: [% color_7 %];
border-radius:2px;
}
a.actionMenuLinksInactive {
......@@ -2078,13 +2108,6 @@ main nav ~ h6{
margin-top:1rem;
}
/* Initials in list of lists */
main .top-bar-section li.letter,
main .top-bar-section li.letter a,
h4.letter {
text-transform: capitalize;
}
/*font-awesome specificity*/
/* home page */
span.fa-stack i.fa-plus-circle {
......
<!-- $Id$ -->
<h2>[%|loc%]Shared documents[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<menu class="shared">
<li><span class="search_form"> <a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]" title="[%|loc%]Up to higher level directory[%END%]"><i class="fa fa-folder-open fa-lg"><i class="fa fa-level-up fa-lg"></i></i></a></span></li>
</menu>
<span class="search_form"><a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]">[%|loc%]Up to higher level directory[%END%]</a></span>
<h2>[%|loc(visible_path)%]Access control for the document %1[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<br />
<h3>[%|loc(visible_path)%]Access control for the document %1[%END%]</h3>
[%|loc(doc_owner)%]Owner: %1[%END%] <br />
[%|loc(doc_date)%]Last update: %1[%END%] <br />
[%|loc(doc_title)%]Description: %1[%END%] <br /><br />
[%|loc(doc_title)%]Description: %1[%END%] <br />
<div class="block">
<form action="[% path_cgi %]" method="post">
<fieldset>
<p>
<label for="read_access"><strong>[%|loc%]Read access[%END%]</strong></label><br />
<label for="read_access">[%|loc%]Read access[%END%]</label>
<select id="read_access" name="read_access">
[% FOREACH s = scenari_read %]
<option value='[% s.key %]' [% s.value.selected %]>[% s.value.web_title %]</option>
[% END %]
</select>
</p>
<p>
<label for="edit_access"><strong>[%|loc%]Edit access[%END%]</strong></label><br />
<label for="edit_access">[%|loc%]Edit access[%END%]</label>
<select id="edit_access" name="edit_access">
[% FOREACH s = scenari_edit %]
<option value='[% s.key %]' [% s.value.selected %]>[% s.value.web_title %]</option>
[% END %]
</select>
</p>
<p>
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="path" value="[% path %]" />
<input type="hidden" name="serial" value="[% serial_desc %]" />
<input class="MainMenuLinks" type="submit" name="action_d_change_access" value="[%|loc%]change access[%END%]" />
</fieldset>
</form>
</p>
</div>
<br /><br />
[% IF set_owner %]
<div class="block">
<form action="[% path_cgi %]" method="post">
<fieldset>
<p>
<label for="content"><strong>[%|loc(visible_path)%]Set the owner of the directory %1[%END%]</strong></label><br />
<label for="content">[%|loc(visible_path)%]Set the owner of the directory %1[%END%]</label>
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="path" value="[% path %]" />
<input type="hidden" name="serial" value="[% serial_desc %]" />
<input type="hidden" name="action" value="d_set_owner" />
<input maxlength="50" name="content" id="content" value="[% doc_owner %]" size="30" />
<input class="MainMenuLinks" type="submit" name="action_d_set_owner" value="[%|loc%]Set owner[%END%]" />
</P>
</fieldset>
</form>
</div>
[% END %]
<!-- end d_control.tt2 -->
<!-- $Id$ -->
<h2>[%|loc%]Shared documents[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<div class="block">
<div class="search_form">
<a href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]"><img src="[% father_icon %]" alt="up to higher level directory"> [%|loc%]Up to higher level directory[%END%] </a>
</div>
<br/>
<menu class="shared">
<li><span class="search_form"> <a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]" title="[%|loc%]Up to higher level directory[%END%]"><i class="fa fa-folder-open fa-lg"><i class="fa fa-level-up fa-lg"></i></i></a></span></li>
</menu>
[% IF url %]
<h1>[%|loc(visible_path)%]Edition of the bookmark %1[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h1>
<h3>[%|loc(visible_path)%]Edition of the bookmark %1[%END%]</h3>
[% ELSE %]
<h1>[%|loc(visible_path)%]Edition of the file %1[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h1>
<h3>[%|loc(visible_path)%]Edition of the file %1[%END%]</h3>
[% END %]
[%|loc(doc_owner)%]Owner: %1[%END%] <br />
[%|loc(doc_date)%]Last update: %1[%END%] <br />
[%|loc(desc)%]Description: %1[%END%] <br /><br />
</div>
[%|loc(desc)%]Description: %1[%END%] <br />
<br /><br />
[% IF !directory %]
<form method="post" action="[% path_cgi %]" enctype="multipart/form-data">
<fieldset>
[% IF url %]
<label for="url"><strong> [%|loc%]Bookmark URL[%END%] </strong></label><br />
<label for="url">[%|loc%]Bookmark URL[%END%]</label>
<input id="url" name="url" value="[% url %]" />
[% ELSE %]
<label for="uploaded_file"><strong> [%|loc(visible_path)%]Replace the file %1 with your file[%END%] </strong></label>
&nbsp;<input id="uploaded_file" type="file" name="uploaded_file" />&nbsp;
<label for="uploaded_file"> [%|loc(visible_path)%]Replace the file %1 with your file[%END%] </label>
<input id="uploaded_file" type="file" name="uploaded_file" />
[% END %]
&nbsp;
[% IF url %]
<input class="MainMenuLinks" type="submit" value="[%|loc%]Update[%END%]" name="action_d_savefile" />
[% ELSE %]
......@@ -47,18 +41,14 @@
[% END %]
<br />
<br />
[% IF !url %]
[% IF textfile %]
<form action="[% path_cgi %]" method="post">
<fieldset>
<label for="content"><strong> [%|loc(visible_path)%]Edit the file %1[%END%]</strong></label><br />
<label for="content">[%|loc(visible_path)%]Edit the file %1[%END%]</label>
<textarea id="content" name="content" cols="90" rows="25">
[%~ INSERT $filepath IF filepath ~%]
</textarea><br />
</textarea>
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="path" value="[% path %]" />
<input type="hidden" name="serial" value="[% serial_file %]" />
......
<!-- $Id$ -->
<h2>[%|loc%]Shared documents[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
[% IF file %]
[% INSERT $file IF file %]
[% ELSE %]
[% IF path %] <span class="search_form"> <a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]">[%|loc%]Up to higher level directory[%END%]</a></span>
<menu class="shared">
[% IF path %]<li><span class="search_form"> <a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_father %]" title="[%|loc%]Up to higher level directory[%END%]"><i class="fa fa-folder-open fa-lg"><i class="fa fa-level-up fa-lg"></i></i></a></span></li>
[% END %]
[% IF expert_page %]
<a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_user_page=1">[%|loc%]User mode[%END%]</a>
<a class="actionMenuLinksCurrentPage" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_expert_page=1">[%|loc%]Expert mode[%END%]</a>
<li><a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_user_page=1">[%|loc%]User mode[%END%]</a></li>
<li><a class="actionMenuLinksCurrentPage" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_expert_page=1">[%|loc%]Expert mode[%END%]</a></li>
[% ELSE %]
[% IF has_dir_rights %]
<a class="actionMenuLinksCurrentPage" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_user_page=1">[%|loc%]User mode[%END%]</a>
<a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_expert_page=1">[%|loc%]Expert mode[%END%]</a>
<li><a class="actionMenuLinksCurrentPage" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_user_page=1">[%|loc%]User mode[%END%]</a></li>
<li><a class="actionMenuLinks" href="[% path_cgi %]/d_read/[% list %]/[% escaped_path %]?type=directory&previous_action=d_read&show_expert_page=1">[%|loc%]Expert mode[%END%]</a></li>
[% END %]
[% END %]
</menu>
[% IF path %]
<h2>[%|loc%]Listing of folder[%END%] [% visible_path %] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<h3>[%|loc%]Listing of folder[%END%] [% visible_path %] </h3>
<menu class="shared">
[% IF expert_page %]
<span class="search_form">
[% IF may_edit %]
<a class="actionMenuLinks" href="[% path_cgi %]/d_delete/[% list %]/[% escaped_path %]" onclick="request_confirm_link('[% path_cgi %]/d_delete/[% list %]/[% escaped_path %]', '[% FILTER escape_quote %][%|loc(visible_path)%]Do you really want to delete %1?[%END%][%END%]'); return false;">[%|loc%]delete[%END%]</a>
<a class="actionMenuLinks" href="[% path_cgi %]/d_properties/[% list %]/[% escaped_path %]">[%|loc%]properties[%END%]</a>
<a class="actionMenuLinks" href="[% path_cgi %]/d_delete/[% list %]/[% escaped_path %]" onclick="request_confirm_link('[% path_cgi %]/d_delete/[% list %]/[% escaped_path %]', '[% FILTER escape_quote %][%|loc(visible_path)%]Do you really want to delete %1?[%END%][%END%]'); return false;">[%|loc%]delete[%END%]</a>
<a class="actionMenuLinks" href="[% path_cgi %]/d_properties/[% list %]/[% escaped_path %]">[%|loc%]properties[%END%]</a>
[% END %]
[% IF may_control %]
<a class="actionMenuLinks" href="[% path_cgi %]/d_control/[% list %]/[% escaped_path %]">[%|loc%]access[%END%]</a>
[% END %]
</span>
[% END %]
<br />
</menu>
[%|loc(doc_owner)%]Owner: %1[%END%] <br />
[%|loc(doc_date)%]Last update: %1[%END%] <br />
......@@ -44,7 +45,7 @@
<br />
[% ELSE %]
<h2>[%|loc%]Listing of root folder[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<h3>[%|loc%]Listing of root folder[%END%]</h3>
[% END %]
<table class="responsive listOfItems">
......@@ -307,16 +308,16 @@
[% IF expert_page %]
[% IF may_edit %]
[% IF total_edit %]
<div class="block">
<form method="post" action="[% path_cgi %]">
<fieldset>
<strong>
<h6>
[% IF path %]
[%|loc(visible_path)%]Create a new folder inside folder %1[%END%]
[% ELSE %]
[%|loc%]Create a new folder inside root folder[%END%]
[% END %]
</strong> <br />
</h6>
<label for="name_dir">[%|loc%]Folder name[%END%]</label> <input id="name_dir" maxlength="30" type="text" name="name_doc" />
<input class="MainMenuLinks" type="submit" value="[%|loc%]Create[%END%]" name="action_d_create_dir" />
<input type="hidden" name="previous_action" value="d_read" />
......@@ -326,13 +327,11 @@
<input type="hidden" name="action" value="d_create_dir" />
</fieldset>
</form>
</div><br/>
[% END %]
<div class="block">
<form method="post" action="[% path_cgi %]">
<fieldset>
<strong> [%|loc%]Create a new file[%END%]</strong> <br />
<h6> [%|loc%]Create a new file[%END%]</h6>
<label for="name_doc">[%|loc%]File name[%END%]</label> <input id="name_doc" maxlength="30" type="text" name="name_doc" />
<input class="MainMenuLinks" type="submit" value="[%|loc%]Create[%END%]" name="action_d_create_dir" />
<input type="hidden" name="previous_action" value="d_read" />
......@@ -342,13 +341,11 @@
<input type="hidden" name="action" value="d_create_dir" />
</fieldset>
</form>
</div>
<br /><div class="block">
<form method="post" action="[% path_cgi %]">
<fieldset>
<strong>[%|loc%]Add a bookmark[%END%]</strong><br />
<label for="name_title">[%|loc%]title[%END%]</label> <input id="name_title" maxlength="100" size="25" type="text" name="name_doc" /><br />
<h6>[%|loc%]Add a bookmark[%END%]</h6>
<label for="name_title">[%|loc%]title[%END%]</label> <input id="name_title" maxlength="100" size="25" type="text" name="name_doc" />
<label for="url">[%|loc%]URL[%END%]</label> <input id="url" size="35" type="text" name="url" />
<input class="MainMenuLinks" type="submit" value="[%|loc%]Add[%END%]" name="action_d_savefile" />
<input type="hidden" name="previous_action" value="d_read" />
......@@ -357,37 +354,32 @@
<input type="hidden" name="action" value="d_savefile" />
</fieldset>
</form>
</div><br/>
<div class="block">
<form method="post" action="[% path_cgi %]" enctype="multipart/form-data" >
<fieldset>
<label for="uploaded_file">
<strong>
<h6>
[% IF path %]
[%|loc(visible_path)%]Upload a file inside folder %1[%END%]
[% ELSE %]
<strong> [%|loc%]Upload a file inside folder SHARED[%END%]
[%|loc%]Upload a file inside folder SHARED[%END%]
[% END %]
</strong></label><br />
</h6>
<input id="uploaded_file" type="file" name="uploaded_file"/>
<input class="MainMenuLinks" type="submit" value="[%|loc%]Publish[%END%]" name="action_d_upload" />
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="path" value="[% path %]" />
</form>
</div><br />
[% IF total_edit %]
<div class="block">
<form method="post" action="[% path_cgi %]" enctype="multipart/form-data" >
<fieldset>
<label for="unzipped_file">
<strong>
<h6>
[% IF path %]
[%|loc(visible_path)%]Unzip a file inside the folder %1[%END%]
[% ELSE %]
[%|loc%]Unzip a file inside the folder SHARED[%END%]
[% END %]
</strong></label><br />
</h6>
<input id="unzipped_file" type="file" name="unzipped_file"/>
<input class="MainMenuLinks" type="submit" value="[%|loc%]Publish[%END%]" name="action_d_unzip" />
......@@ -395,7 +387,6 @@
<input type="hidden" name="path" value="[% path %]" />
</fieldset>
</form>
</div><br />
[% END %]
[% END %]
......
<!-- $Id$ -->
[%|loc(shortname)%]the file %1 already exists[%END%]
<h2>[%|loc%]Shared documents[%END%] <a href="[% path_cgi %]/nomenu/help/shared" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<p class="alert-box warning">[%|loc(shortname)%]the file %1 already exists[%END%]</p>
<form action="[% path_cgi %]" method="post">
<fieldset>
<label for="mode_delete">[%|loc(shortname)%]Do you want to delete the old file %1?[%END%]</label>
<input id="mode_delete" class="MainMenuLinks" type="submit" name="mode_delete" value="[%|loc%]Delete[%END%]" />
<br />
<label for="new_name">[%|loc(shortname)%]Do you want to rename your file %1?[%END%]</label>
<br />
<input id="new_name" size="20" maxlength="100" name="new_name" />
<input id="mode_rename" class="MainMenuLinks" type="submit" name="mode_rename" value="[%|loc%]Rename[%END%]" />
<br />
<label for="mode_cancel">[%|loc%]Do you want to cancel the upload?[%END%]</label>
<input id="mode_cancel" class="MainMenuLinks" type="submit" name="mode_cancel" value="[%|loc%]Cancel[%END%]" />
......
Supports Markdown
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