Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigating #104

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions templates/tbs/addfileform.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<div class="block_in_wrapper">

<h2>{#addfile#}</h2>
{#maxsize#}: {$postmax}<br/><br/>
<form novalidate class="main" action="managefile.php?action=upload&amp;id={$project.ID}" method="post" enctype="multipart/form-data" {literal} onsubmit="return validateCompleteForm(this,'input_error');"{/literal}>
<fieldset>
<div class="row">
<label for = "numfiles">{#count#}:</label>
<select name = "numfiles" id = "numfiles" onchange = "make_inputs(this.value);">
<option value = "1" selected="selected">1</option>
<option value = "2">2</option>
<option value = "3">3</option>
<option value = "4">4</option>
<option value = "5">5</option>
<option value = "6">6</option>
<option value = "7">7</option>
<option value = "8">8</option>
<option value = "9">9</option>
<option value = "10">10</option>
</select>
</div>

<div class = "row">
<label for = "upfolder">{#folder#}:</label>
<select name = "upfolder" id = "upfolder">
<option value = "">{#rootdir#}</option>
{section name=fold loop=$allfolders}
<option value = "{$allfolders[fold].ID}">{$allfolders[fold].abspath}</option>
{/section}
</select>
</div>

<div id = "inputs">
<div class="row"><label for = "title">{#title#}:</label><input type = "text" name = "userfile1-title" id="title" /></div>
<div class="row"><label for="file">{#file#}:</label>
<div class="fileinput" >
<input size = "40" type="file" class = "file" name="userfile1" id="filer" realname="{#file#}" size="19" onchange = "file.value = this.value;" multiple />
<table class = "faux" cellpadding="0" cellspacing="0" border="0" style="padding:0;margin:0;border:none;">
<tr>
<td><input type="text" class="text-file" name="userfile1" id="file" required="1" realname="{#file#}"></td>
<td class="choose"><button class="inner" onclick="return false;">{#chooseone#}</button></td>
</tr>
</table>
</div>
</div>
<div class="row">
<label for = "tags">{#tags#}:</label><input type = "text" name = "userfile1-tags" id="tags" />
</div>
</div>

<div class="row">
<label for = "desc">{#description#}:</label><textarea name="desc" id="desc" rows="3" cols="1"></textarea>
</div>

<div class = "row">
<label>{#visibility#}:</label>
<select name = "visible[]" multiple style = "height:80px;">
<option value = "" selected>{#all#}</option>
{section name=role loop=$roles}
<option value = "{$roles[role].ID}" >{$roles[role].name}</option>
{/section}
</select>
</div>

<div class = "row">
<label>{#notify#}:</label>
<select name = "sendto[]" multiple style = "height:100px;">
<option value = "" disabled style = "color:black;font-weight:bold;">{#general#}</option>
<option value = "all" selected>{#all#}</option>
<option value = "none" >{#none#}</option>
<option value = "" disabled style = "color:black;font-weight:bold;">{#members#}</option>
{section name=member loop=$members}
<option value = "{$members[member].ID}" >{$members[member].name}</option>
{/section}
</select>
</div>



<div class="row-butn-bottom">
<label>&nbsp;</label>
<img id = "fakeprogress" src = "templates/standard/images/symbols/ajax-loader.gif" alt = "fakeprogress" style = "display:none;" />

<div id = "filesubmit" >
<button type="submit" onclick = "$('filesubmit').hide();$('fakeprogress').show();" onfocus="this.blur();">{#addbutton#}</button>
<button type="reset" onclick="blindtoggle('form_file');toggleClass('addfile','addfile-active','addfile');toggleClass('add_file_butn','butn_link_active','butn_link');toggleClass('sm_files','smooth','nosmooth');return false;" onfocus="this.blur();">{#cancel#}</button>
</div>
</div>


</fieldset>
</form>

</div> {*block_in_wrapper end*}
80 changes: 80 additions & 0 deletions templates/tbs/addfileform_new.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<div class="block_in_wrapper">


<h2>{#addfile#}</h2>
{#maxsize#}: {$postmax}<br/><br/>
<form novalidate class="main" action="#" method="post" enctype="multipart/form-data">
<fieldset>
<div class = "row">
<label for = "upfolder">{#folder#}:</label>
<select name = "upfolder" id = "upfolder">
<option value = "">{#rootdir#}</option>
{section name=fold loop=$allfolders}
<option value = "{$allfolders[fold].ID}">{$allfolders[fold].abspath}</option>
{/section}
</select>
</div>

<div id = "inputs">

<div class="row"><label for="file">{#file#}:</label>
<div class="fileinput" >
<input size = "1" type="file" class = "file" name="userfile1" id="filer" realname="{#file#}" onchange = "uploader.fileInfo();" style = "cursor:pointer;" multiple />
<table class = "faux" cellpadding="0" cellspacing="0" border="0" style="padding:0;margin:0;border:none;">
<tr>
<td class="choose" style = "padding:0px;"><button class="inner" onclick="return false;" style = "float:left;cursor:pointer;">{#chooseone#}</button></td>
</tr>
</table>
</div>


</div>

<div class = "row">
<label>&nbsp;</label>
<div id = "fileInfo1"></div>
</div>

</div>

<div class = "row">
<label>{#notify#}:</label>
<select id = "sendto" name = "sendto[]" multiple style = "height:100px;">
<option value = "" disabled style = "color:black;font-weight:bold;">{#general#}</option>
<option value = "all" selected>{#all#}</option>
<option value = "none" >{#none#}</option>
<option value = "" disabled style = "color:black;font-weight:bold;">{#members#}</option>
{section name=member loop=$members}
<option value = "{$members[member].ID}" >{$members[member].name}</option>
{/section}
</select>
</div>

<div class = "row" id = "statusrow" style = "display:none;">
<label>&nbsp;</label>
<br />
<div class="statusbar" id = "fakeprogress" style = "width:314px;margin-left:140px;">
<div id="completed" class="complete" style="width: 0%;"></div>
</div>
</div>

<div class="row-butn-bottom">
<label>&nbsp;</label>
<div id = "filesubmit" >
<button onclick = "$('statusrow').show();uploader.upload();return false;" onfocus="this.blur();">{#addbutton#}</button>
</div>
</div>


</fieldset>
</form>
{literal}
<script type="text/javascript">
Event.observe(window,"load",function()
{

uploader = new html5up("filer","fileInfo1","completed","managefile.php?action=uploadAsync&id={/literal}{$project.ID}{literal}");
});
</script>
{/literal}
</div> {*block_in_wrapper end*}
42 changes: 42 additions & 0 deletions templates/tbs/addfolder.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<div class="block_in_wrapper">
<h2>{#addfolder#}</h2>

<form novalidate class="main" action="managefile.php?action=addfolder&amp;id={$project.ID}" method="post" {literal} onsubmit="return validateCompleteForm(this,'input_error');"{/literal}>
<fieldset>
<div class = "row">
<label for = "folderparent">{#parent#}:</label>
<select name = "folderparent" id = "folderparent">
<option value = "0">{#rootdir#}</option>
{section name=fold loop=$allfolders}
<option value = "{$allfolders[fold].ID}">{$allfolders[fold].abspath}</option>
{/section}
</select>
</div>

<div class="row">
<label for = "foldertitle">{#title#}:</label><input type = "text" class="text" name = "foldertitle" id="foldertitle" />
</div>

<div class="row">
<label for = "folderdesc">{#description#}:</label><input type = "text" class="text" name = "folderdesc" id="folderdesc" />
</div>

<div class = "row">
<label>{#visibility#}:</label>:
<select name = "visible[]" multiple style = "height:80px;">
<option value = "" selected>{#all#}</option>
{section name=role loop=$roles}
<option value = "{$roles[role].ID}" >{$roles[role].name}</option>
{/section}
</select>
</div>

<div class="row-butn-bottom">
<label>&nbsp;</label>
<button type="submit" onfocus="this.blur();">{#addbutton#}</button>
<button onclick="blindtoggle('form_folder');toggleClass('addfolder','addfolder-active','addfolder');toggleClass('add_folder_butn','butn_link_active','butn_link');toggleClass('sm_files','smooth','nosmooth');return false;" onfocus="this.blur();">{#cancel#}</button>
</div>

</fieldset>
</form>
</div> {*block_in_wrapper end*}
121 changes: 121 additions & 0 deletions templates/tbs/addmessageform.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<div class="block_in_wrapper">

<h2>{#addmessage#}</h2>

<form novalidate name = "addmessageform" id = "addmessageform" class="main" method="post" enctype="multipart/form-data" action="managemessage.php?action=add&amp;id={$project.ID}" {literal} onsubmit="return validateCompleteForm(this,'input_error');"{/literal} >
<fieldset>

<div class="row">
<label for="title">{#title#}:</label>
<input type="text" class="text" name="title" id="title" required="1" realname="{#title#}" />
</div>

<div class="row">
<label for="text">{#text#}:</label>
<div class="editor">
<textarea name="text" id="text" realname="{#text#}" rows="3" cols="1" ></textarea>
</div>
</div>


<div class="row">
<label>{#files#}:</label>
<button class="inner" onclick="blindtoggle('files-add');toggleClass(this,'inner-active','inner');return false;" onfocus="this.blur()">{#addbutton#}</button>
<button class="inner" onclick="blindtoggle('files-attach');toggleClass(this,'inner-active','inner');return false;" onfocus="this.blur()">{#attachbutton#}</button>
</div>


{*Attach*}
<div id = "files-attach" class="blinded" style = "display:none;clear:both;">
<div class="row">
<label for = "thefiles">{#attachfile#}:</label>
<select name = "thefiles" id = "thefiles">
<option value = "0">{#chooseone#}</option>
{section name = file loop=$files}
<option value = "{$files[file].ID}">{$files[file].name}</option>
{/section}
{section name = file loop=$myprojects[project].files}
<option value = "{$myprojects[project].files[file].ID}">{$myprojects[project].files[file].name}</option>
{/section}
</select>
</div>
</div>

{*Add*}
<div id = "files-add" class="blinded" style = "display:none;">
<div class="row">
<label for = "numfiles{$myprojects[project].ID}">{#count#}:</label>
<select name = "numfiles" id = "numfiles{$myprojects[project].ID}" onchange = "make_inputs(this.value);">
<option value = "1" selected="selected">1</option>
<option value = "2">2</option>
<option value = "3">3</option>
<option value = "4">4</option>
<option value = "5">5</option>
<option value = "6">6</option>
<option value = "7">7</option>
<option value = "8">8</option>
<option value = "9">9</option>
<option value = "10">10</option>
</select>
</div>

<div id = "inputs">
<div class="row">
<label for = "title">{#title#}:</label>
<input type = "text" name = "userfile1-title" id="title" />
</div>
<div class="row">
<label for="file">{#file#}:</label>
<div class="fileinput">
<input type="file" class="file" name="userfile1" id="file" realname="{#file#}" size="19" onchange = "file_{$myprojects[project].ID}.value = this.value;" />
<table class = "faux" cellpadding="0" cellspacing="0" border="0" style="padding:0;margin:0;border:none;">
<tr>
<td><input type="text" class="text-file" name = "file-$myprojects[project].ID" id="file_{$myprojects[project].ID}"></td>
<td class="choose"><button class="inner" onclick="return false;">{#chooseone#}</button></td>
</tr>
</table>
</div>
</div>
<input type = "hidden" name="desc" id="desc" value = "" />
</div>
</div>

<div class="row">
<label for="tags">{#tags#}:</label>
<input type="text" name="tags" id="tags" realname="{#tags#}" />
</div>


<div class="row">
<label for="milestone">{#milestone#}:</label>
<select name="milestone" id="milestone" realname="{#milestone#}">
<option value="0" selected="selected">{#chooseone#}</option>
{section name=stone loop=$milestones}
<option value="{$milestones[stone].ID}">{$milestones[stone].name}</option>
{/section}
</select>
</div>

<div class = "row">
<label>{#notify#}:</label>
<select name = "sendto[]" multiple style = "height:100px;">
<option value = "" disabled style = "color:black;font-weight:bold;">{#general#}</option>
<option value = "all" selected>{#all#}</option>
<option value = "none" >{#none#}</option>
<option value = "" disabled style = "color:black;font-weight:bold;">{#members#}</option>
{section name=member loop=$members}
<option value = "{$members[member].ID}" >{$members[member].name}</option>
{/section}
</select>
</div>

<div class="row-butn-bottom">
<label>&nbsp;</label>
<button type="submit" onfocus="this.blur()">{#send#}</button>
<button onclick="blindtoggle('addmsg');toggleClass('add','add-active','add');toggleClass('add_butn','butn_link_active','butn_link');toggleClass('sm_msgs','smooth','nosmooth');return false;" onfocus="this.blur()">{#cancel#}</button>
</div>

</fieldset>
</form>

</div> {*block_in_wrapper end*}
Loading