-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-workspace-section-terms.php
65 lines (48 loc) · 1.85 KB
/
dashboard-workspace-section-terms.php
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
<?php
/**
* Project workspace terms section template
*
* @package HireBee\Templates
* @since 1.0.0
*/
?>
<div class="row">
<div class="large-12 columns">
<fieldset>
<legend><?php _e( 'Project Terms', APP_TD ) ?></legend>
<p><?php the_hrb_project_terms( $project->ID ); ?></p>
</fieldset>
<?php foreach ( $participants as $participant ) : ?>
<?php if ( 'reviewer' == $participant->type ) continue; ?>
<?php $proposal = hrb_get_proposal( $participant->proposal_id ); ?>
<?php if ( ! $proposal ) : ?>
<span class="label error"><?php printf( __( "Warning: Proposal for participant '%s' was not found. Please contact the site admin.", APP_TD ), $participant->display_name ); ?></span>
<?php continue; endif; ?>
<fieldset>
<legend><?php printf( __( '%s Terms', APP_TD ), ( $dashboard_user->ID == $participant->ID ?__( 'Your', APP_TD ) : __( 'Development', APP_TD ) ) ); ?></legend>
<?php
if ( $dashboard_user->ID != $participant->ID ) {
the_hrb_user_gravatar( $participant, 45 );
the_hrb_user_display_name( $participant );
}
?>
<p><?php echo ( $participant->development_terms ? $participant->development_terms : __( 'None specified', APP_TD ) ) ; ?></p>
</fieldset>
<fieldset>
<legend><?php _e( 'Amount', APP_TD ) ?></legend>
<p><?php the_hrb_user_proposal_total_amount( $proposal ); ?></p>
</fieldset>
<fieldset>
<legend><?php _e( 'Deliverables', APP_TD ) ?></legend>
<p><?php the_hrb_proposal_delivery_time( $proposal ); ?></p>
</fieldset>
<div class="row agreement-date">
<div class="large-12 columns">
<span class="label-meta right"><?php _e( 'On', APP_TD ); ?>
<strong><?php echo appthemes_display_date( $participant->agreement_timestamp ); ?></strong>
</span>
</div>
</div>
<?php endforeach; ?>
</div>
</div>