Welcome to mirror list, hosted at ThFree Co, Russian Federation.

compose.php « templates - github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 030aa86c8667d3b96446a212367ade88ce6b5d1d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
style('mail','mail');
style('mail','mobile');
script('mail','vendor/autosize/jquery.autosize');
script('mail', 'send-mail');
?>

<script id="mail-account-manager" type="text/x-handlebars-template">
	<select class="mail_account">
		{{#each this}}
		<option value="{{accountId}}"><?php p($l->t('from')); ?> {{name}} &lt;{{emailAddress}}&gt;</option>
		{{/each}}
	</select>
</script>

<script id="mail-attachment-template" type="text/x-handlebars-template">
	<span><%= displayName %></span><div class="new-message-attachments-action svg icon-delete"></div>
</script>

<script id="mail-composer" type="text/x-handlebars-template">
	<div class="message-composer">
		{{#unless isReply}}
		<select class="mail-account">
			{{#each aliases}}
			<option value="{{accountId}}"><?php p($l->t('from')); ?> {{name}} &lt;{{emailAddress}}&gt;</option>
			{{/each}}
		</select>
		{{/unless}}
		<div class="composer-fields">
			<a href="#" class="composer-cc-bcc-toggle transparency 
                                {{#ifHasCC replyCc replyCcList}}
				hidden
				{{/ifHasCC}}"><?php p($l->t('+ cc/bcc')); ?></a>
			<input type="text" name="to"p($_['mailto'])
                            {{#if replyToList}}
                            value="{{printAddressListPlain replyToList}}"
                            {{else}}
                            value="{{to}}"
                            {{/if}}
                            class="to recipient-autocomplete" />
			<label class="to-label" for="to" class="transparency"><?php p($l->t('to')); ?></label>
			<div class="composer-cc-bcc
                            {{#unlessHasCC replyCc replyCcList}}
                            hidden
                            {{/unlessHasCC}}">
				<input type="text" name="cc"
                                    {{#if replyCc}}
                                    value="{{replyCc}}"
                                    {{else}}
                                        {{#if replyCcList}}
                                        value="{{printAddressListPlain replyCcList}}"
                                        {{else}}
                                        value="{{cc}}"
                                        {{/if}}
                                    {{/if}}
                                    class="cc recipient-autocomplete" />
				<label for="cc" class="cc-label transparency"><?php p($l->t('cc')); ?></label>
				<input type="text" name="bcc" value="{{bcc}}" class="bcc recipient-autocomplete" />
				<label for="bcc" class="bcc-label transparency"><?php p($l->t('bcc')); ?></label>
			</div>
			{{#unless isReply}}
			<input type="text" name="subject" value="{{subject}}" class="subject"
				placeholder="<?php p($l->t('Subject')); ?>" />
			{{/unless}}
			<textarea name="body" class="message-body
						{{#if isReply}} reply{{/if}}"
				placeholder="<?php p($l->t('Message …')); ?>">{{message}}</textarea>
			<input class="submit-message send primary" type="submit" value="{{submitButtonTitle}}" disabled>
			<div class="new-message-attachments">
			</div>
		</div>
		<div id="nav-buttons" class="hidden">
			<input type="button" id="nav-to-mail" value="<?php p($l->t('Open Mail App')); ?>">
			<input type="button" id="back-in-time" value="<?php p($l->t('Back to website')); ?>">
		</div>
	</div>
</script>
<script id="mail-attachments-template" type="text/x-handlebars-template">
	<ul></ul>
	<input type="button" id="mail_new_attachment" value="<?php p($l->t('Add attachment from Files')); ?>">
</script>

<div id="app" data-mailto="<?php p($_['mailto']) ?>">
	<div id="app-content" class="compose">
	</div>
</div>