Add TPL files
This commit is contained in:
6
modules/Documents3/tpl/fieldList_DetailView.tpl
Executable file
6
modules/Documents3/tpl/fieldList_DetailView.tpl
Executable file
@@ -0,0 +1,6 @@
|
||||
<script type="text/javascript" src="modules/Documents/js/DetailViewDocumentReady.js"></script>
|
||||
{*<input type="hidden" id="test">
|
||||
{$fields.register_date.value}<br>
|
||||
<span id='categoryspan'>{$fields.category.value}</span><br>
|
||||
{$fields.document_number.value}<br>
|
||||
<br><br>*}
|
||||
14
modules/Documents3/tpl/fieldList_EditView.tpl
Executable file
14
modules/Documents3/tpl/fieldList_EditView.tpl
Executable file
@@ -0,0 +1,14 @@
|
||||
<input autocomplete="off" type="text" name="register_date" id="register_date" value="{$fields.register_date.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger111" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "register_date",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger111",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<br>
|
||||
4
modules/Documents3/tpl/parentlist_DetailView.tpl
Executable file
4
modules/Documents3/tpl/parentlist_DetailView.tpl
Executable file
@@ -0,0 +1,4 @@
|
||||
|
||||
{foreach from=$PARENT_LIST key=k item=v}
|
||||
<li><a href="index.php?module={$v.parent_type}s&action=DetailView&record={$v.parent_id}">{$v.parent_name}</a></li>
|
||||
{/foreach}
|
||||
14
modules/Documents3/tpl/parentlist_EditView.tpl
Executable file
14
modules/Documents3/tpl/parentlist_EditView.tpl
Executable file
@@ -0,0 +1,14 @@
|
||||
<input type="hidden" name="parent_list" id="parent_list" value='{$PARENT_LIST}'>
|
||||
<input type="hidden" name="parent_type_list" id="parent_type_list" value='{$PARENT_TYPE_LIST|@json_encode}'>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
id="AddAssociatedWith"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
onclick="addAssociatedWithField();"
|
||||
title="{$MOD.HELP_LBL_USERACCEPT_BUTTON}">
|
||||
<img src="{sugar_getimagepath file="id-ff-add.png"}">
|
||||
</button>
|
||||
|
||||
<table id="associated_with">
|
||||
</table>
|
||||
6
modules/Documents3/tpl/timeTable_EditView.tpl
Executable file
6
modules/Documents3/tpl/timeTable_EditView.tpl
Executable file
@@ -0,0 +1,6 @@
|
||||
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
|
||||
|
||||
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;">
|
||||
<table id="tableCostEdit" class="positions" style="width:100%">
|
||||
</table>
|
||||
</div>
|
||||
158
modules/Documents3/tpl/userlist_DetailView.tpl
Executable file
158
modules/Documents3/tpl/userlist_DetailView.tpl
Executable file
@@ -0,0 +1,158 @@
|
||||
|
||||
{foreach from=$USER_LIST key=k item=v}
|
||||
<li>
|
||||
<a href="index.php?module=Users&action=DetailView&record={$v.user_id}">{$v.user_name}</a>
|
||||
{*brak akceptacji*}
|
||||
{if $v.accepted == '0'}
|
||||
{*brak akceptacji i brak opisu i jest sie zalogowanym uzytkownikiem*}
|
||||
{if $v.accepted_description == '' && $v.user_id eq $CURRENT_USER}
|
||||
<input type="button" id="userListButton"
|
||||
value="Akceptuj" onclick="$('#userDiv').toggle('slow');">
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
|
||||
<select id="statusik">
|
||||
<option value='1'>Akceptuj</option>
|
||||
<option value='0'>Oczekuj</option>
|
||||
<option value='2'>Odrzuć</option>
|
||||
</select>
|
||||
<input type="button"
|
||||
id="userSaveDes"
|
||||
value="Zapisz"
|
||||
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
|
||||
>
|
||||
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{*brak akceptacji i jest opis i jest sie zalogowanym uzytkownikiem*}
|
||||
{if $v.accepted_description != '' && $v.user_id eq $CURRENT_USER}
|
||||
<input type="button" id="userListButton"
|
||||
value="Zmień status" onclick="$('#userDiv').toggle('slow');">
|
||||
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
|
||||
<select id="statusik">
|
||||
<option value='1'>Akceptuj</option>
|
||||
<option value='0'>Oczekuj</option>
|
||||
<option value='2'>Odrzuć</option>
|
||||
</select>
|
||||
<input type="button"
|
||||
id="userSaveDes"
|
||||
value="Zapisz"
|
||||
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
|
||||
>
|
||||
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{elseif $v.accepted_description != '' }
|
||||
<input type="button" id="userListButton"
|
||||
value="Pokaż opis" onclick="$('#userDiv').toggle('slow');">
|
||||
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{*Jest akceptacja bądź odrzucony*}
|
||||
{if $v.accepted == '1'}
|
||||
<input type="button" id="userShowDes"
|
||||
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
Status: Zaakceptowano {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDess_{$v.id}" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{if $v.accepted == '2'}
|
||||
<input type="button" id="userShowDes"
|
||||
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
Status: Odrzucono {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDess_{$v.id}" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}</li>
|
||||
{/foreach}
|
||||
12
modules/Documents3/tpl/userlist_EditView.tpl
Executable file
12
modules/Documents3/tpl/userlist_EditView.tpl
Executable file
@@ -0,0 +1,12 @@
|
||||
<input type="hidden" name="user_list" id="user_list" value='{$USER_LIST}'>
|
||||
<button
|
||||
type="button"
|
||||
id="AddMoreUSERBox"
|
||||
value="{$APP.LBL_ADD_BUTTON}"
|
||||
onclick="addUserAcceptanceField();"
|
||||
title="{$MOD.HELP_LBL_USERACCEPT_BUTTON}">
|
||||
<img src="{sugar_getimagepath file="id-ff-add.png"}">
|
||||
</button>
|
||||
|
||||
<table id="user_acceptance_table">
|
||||
</table>
|
||||
19
modules/Documents3/tpl/vatlist_DetailView.tpl
Executable file
19
modules/Documents3/tpl/vatlist_DetailView.tpl
Executable file
@@ -0,0 +1,19 @@
|
||||
<table style="width: 500px;"><tbody>
|
||||
<th style="text-align: right">Stawka VAT</th>
|
||||
<th style="text-align: right">Wartość Netto</th>
|
||||
<th style="text-align: right">Wartość VAT</tH>
|
||||
</tbody>
|
||||
{foreach from=$VAT_LIST key=k item=v}
|
||||
<tr>
|
||||
<td style="text-align: right">
|
||||
{$v.vat_value}
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{if $v.netto != 'NaN' or $v.netto != 'NaN.NaN' }{$v.netto|number_format:2:",":"."}{/if}
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{$v.vat|number_format:2:",":"."}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
Reference in New Issue
Block a user