admin-metabox-sub-info.html.php
2.67 KB
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
87
88
89
<input type="hidden" name="nf_edit_sub" value="1">
<div id="minor-publishing">
<ul class="nf-sub-stats">
<li class="nf-sub-info-seq">
#: <strong><?php echo $seq_num; ?></strong>
</li>
<li class="nf-sub-info-status">
Status: <strong><?php echo $status; ?></strong>
<?php do_action( 'nf_sub_edit_after_status', $post ); ?>
</li>
<li class="nf-sub-info-form">
Form: <strong><?php echo $form_title; ?></strong>
</li>
<li class="nf-sub-info-updated">
<?php esc_html_e( 'Updated on: ', 'ninja-forms' ); ?><strong><?php echo $mod_date; ?></strong>
<?php do_action( 'nf_sub_edit_date_modified', $post ); ?>
</li>
<li class="nf-sub-info-created">
<?php esc_html_e( 'Submitted on: ', 'ninja-forms' ); ?><strong><?php echo $sub_date; ?></strong>
<?php do_action( 'nf_sub_edit_date_submitted', $post ); ?>
</li>
<li class="nf-sub-info-user"><?php esc_html_e( 'Submitted by: ', 'ninja-forms' ); ?><strong><?php echo $user; ?></strong></li>
</ul>
</div>
<div id="major-publishing-actions" class="nf-sub-actions">
<div id="delete-action"><a class="submitdelete deletion" style="color:red;" href="<?php echo get_delete_post_link( $post->ID ); ?>"><?php esc_html_e( 'Move to Trash', 'ninja-forms' ); ?></a></div>
<input name="save" type="submit" class="button button-primary button-large nf-sub-actions-save" id="publish" accesskey="p" value="<?php esc_html_e( 'Update', 'ninja-forms' ); ?>">
<span class="spinner"></span>
</div>
<!-- TODO: Move to Stylesheet. -->
<style>
.nf-sub-stats li {
padding: 5px 10px 5px;
}
.nf-sub-info-seq:before,
.nf-sub-info-form:before,
.nf-sub-info-status:before,
.nf-sub-info-created:before,
.nf-sub-info-updated:before,
.nf-sub-info-user:before {
color: #82878c;
font: 400 1.4em dashicons;
vertical-align: top;
padding-right: 5px;
}
.nf-sub-info-seq:before,
.nf-sub-info-form:before,
.nf-sub-info-status:before {
/* Dashicon: Post Screen - Status */
content: "\f173";
}
.nf-sub-info-created:before,
.nf-sub-info-updated:before {
/* Dashicon: Post Screen - Calendar */
content: "\f145";
}
.nf-sub-info-user:before {
/* Dashicon: Admin Menu - Users */
content: "\f110";
}
.nf-sub-actions {
margin: 10px -12px -12px;
}
.nf-sub-actions:after {
content: "";
display: table;
clear: both;
}
.nf-sub-actions .nf-sub-actions-save {
text-align: right;
float: right;
}
</style>