summaryrefslogtreecommitdiff
path: root/templates/quota_inc.tpl
blob: 79075a2aba42c49ed7696f80ae3190ac092fbf89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{strip}
{legend legend="Your Personal Usage Quota"}
	{if $gBitUser->isAdmin()}
		Administrators have no enforced quota limit
	{else}
		{formfeedback error=$errors.disk_quota}

		<div class="form-group">
			{formlabel label="Your disk quota"}
			{forminput}
				{formfeedback note="$quota MB"}
			{/forminput}
		</div>

		<div class="form-group">
			{formlabel label="Your current usage"}
			{forminput}
				{formfeedback note="$usage MB <small>( `$quotaPercent`% )</small>"}
			{/forminput}
		</div>

		<div class="form-group">
			<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}
{/strip}