diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 05:02:20 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 05:02:20 +0000 |
| commit | 9896c8e5b5aa9b110bea5c4dbc438525489e15c0 (patch) | |
| tree | cb1237f32a289854859c5ca4930074f60d639d45 /templates | |
| download | quota-9896c8e5b5aa9b110bea5c4dbc438525489e15c0.tar.gz quota-9896c8e5b5aa9b110bea5c4dbc438525489e15c0.tar.bz2 quota-9896c8e5b5aa9b110bea5c4dbc438525489e15c0.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin_quota.tpl | 80 | ||||
| -rw-r--r-- | templates/quota.tpl | 35 |
2 files changed, 115 insertions, 0 deletions
diff --git a/templates/admin_quota.tpl b/templates/admin_quota.tpl new file mode 100644 index 0000000..e2a3a98 --- /dev/null +++ b/templates/admin_quota.tpl @@ -0,0 +1,80 @@ +{strip} +{if $quotaList} + {form legend="Assign Quota to Groups"} + <input type="hidden" name="page" value="{$page}" /> + + {formfeedback error=`$errors.group`} + + <div class="row"> + {formlabel label="Group" for=""} + {forminput} + <strong>{tr}Quota{/tr}</strong> + {/forminput} + </div> + {foreach item=grp key=groupId from=$systemGroups} + <div class="row"> + {formlabel label=$grp.group_name for=""} + {forminput} + {$groupQuota.$groupId} + {/forminput} + </div> + {/foreach} + + <div class="row submit"> + <input type="submit" name="assignquota" value="{tr}Assign quota{/tr}" /> + </div> + {/form} + + <a href="{$smarty.server.PHP_SELF}?page=quota&newquota=1">{tr}Create New Quota{/tr}</a> + <table class="data"> + <caption>{tr}Defined Quotas{/tr}</caption> + <tr> + <th>{tr}Quota{/tr}</th> + <th>{tr}Disk Usage{/tr}</th> + <th>{tr}Monthly Transfer{/tr}</th> + </tr> + {foreach key=quotaId item=quota from=$quotaList} + <tr class="{cycle values=odd,even}"> + <td><a href="{$smarty.server.PHP_SELF}?page=quota"a_id={$quotaId}">{$quota.title}</a></td> + <td align="right">{$quota.disk_usage/1000000} MB</td> + <td align="right">{$quota.monthly_transfer/1000000} MB</td> + </tr> + {/foreach} + </table> +{else} + {assign var=editLabel value=$gQuota->mInfo.title|default:"New Quota"} + {form legend="Edit `$editLabel`"} + <input type="hidden" name="page" value="{$page}" /> + <input type="hidden" name="quota_id" value="{$gQuota->mQuotaId}" /> + <div class="row"> + {formfeedback error=`$errors.title`} + {formlabel label="Quota Title" for="title"} + {forminput} + <input size="40" type="text" name="title" id="title" value="{$gQuota->mInfo.title|escape}" /> + {formhelp note="This title is used to identify the quota limitations when you assign them to users and groups."} + {/forminput} + </div> + <div class="row"> + {formfeedback error=`$errors.disk_usage`} + {formlabel label="Disk Usage" for="disk_usage"} + {forminput} + <input size="10" type="text" name="disk_usage" id="disk_usage" value="{$gQuota->mInfo.disk_usage/1000000}" /> + {formhelp note="Please enter the desired value in MegaBytes."} + {/forminput} + </div> + <div class="row"> + {formfeedback error=`$errors.monthly_transfer`} + {formlabel label="Monthly Transfer" for="monthly_transfer"} + {forminput} + <input size="10" type="text" name="monthly_transfer" id="monthly_transfer" value="{$gQuota->mInfo.monthly_transfer/1000000}" /> + {formhelp note="Please enter the desired value in MegaBytes."} + {/forminput} + </div> + + <div class="row submit"> + <input type="submit" name="cancelquota" value="{tr}Cancel{/tr}" /> + <input type="submit" name="savequota" value="{tr}Save quota{/tr}" /> + </div> + {/form} +{/if} +{/strip} diff --git a/templates/quota.tpl b/templates/quota.tpl new file mode 100644 index 0000000..07ba1ce --- /dev/null +++ b/templates/quota.tpl @@ -0,0 +1,35 @@ +<div class="quota"> + <div class="header"> + <h1>{tr}Usage Quota{/tr}</h1> + </div> + + <div class="body"> + {legend legend="Your Personal Usage Quota"} + {if $gBitUser->isAdmin()} + Administrators have no enforced quota limit + {else} + {formfeedback error=$errors.disk_quota} + + <div class="row"> + {formlabel label="Your disk quota"} + {forminput} + {formfeedback note="$quota MB"} + {/forminput} + </div> + + <div class="row"> + {formlabel label="Your current usage"} + {forminput} + {formfeedback note="$usage MB <small>( `$quotaPercent`% )</small>"} + {/forminput} + </div> + + <div class="row"> + <div style="border:1px solid #ccc;background:#eee;"> + <div style="width:{$quotaPercent}%;background:#f80;text-align:left;color:#000;line-height:30px;"><small>{$quotaPercent}%</small></div> + </div> + </div> + {/if} + {/legend} + </div> <!-- end .body --> +</div> <!-- end .fisheye --> |
