diff --git a/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/budget-tool/main.php b/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/budget-tool/main.php
index d21f800..158b723 100644
a
|
b
|
wcb.editable = <?php echo json_encode( $editable ); ?>; |
19 | 19 | <svg width="20" height="20" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> |
20 | 20 | <?php endif; ?> |
21 | 21 | |
22 | | <span>Preliminary Budget</span> |
| 22 | <span><?php _e( 'Preliminary Budget', 'wordcamporg' ); ?></span> |
23 | 23 | </a> |
24 | 24 | <?php elseif ( $budget['status'] == 'approved' ) : ?> |
25 | 25 | <a href="<?php echo esc_url( add_query_arg( 'wcb-view', 'approved' ) ); ?>" |
26 | 26 | class="nav-tab <?php if ( $view == 'approved' ) { ?>nav-tab-active<?php } ?>"> |
27 | 27 | <svg width="20" height="20" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> |
28 | 28 | |
29 | | <span>Approved Budget</span> |
| 29 | <span><?php _e( 'Approved Budget', 'wordcamporg' ); ?></span> |
30 | 30 | </a> |
31 | 31 | <a href="<?php echo esc_url( add_query_arg( 'wcb-view', 'working' ) ); ?>" |
32 | 32 | class="nav-tab <?php if ( $view == 'working' ) { ?>nav-tab-active<?php } ?>"> |
33 | | <span>Working Budget</span> |
| 33 | <span><?php _e( 'Working Budget', 'wordcamporg' ); ?></span> |
34 | 34 | </a> |
35 | 35 | <?php endif; ?> |
36 | | <!--<a href="#" class="nav-tab">Working Budget</a>--> |
| 36 | <!--<a href="#" class="nav-tab"><?php _e( 'Working Budget', 'wordcamporg' ); ?></a>--> |
37 | 37 | </h2> |
38 | 38 | |
39 | 39 | <?php if ( $budget['status'] == 'draft' ) : ?> |
40 | | <p style="max-width: 800px;">Welcome to your WordCamp budget, it's time to crunch some numbers! When you're done with the preliminary budget, hit the "Submit for Approval" button below – a WordCamp deputy will be notified and will review your work. If you're having trouble with these numbers, or if you have any questions, don't hesitate to reach out to your mentor or Central.</p> |
| 40 | <p style="max-width: 800px;"><?php _e( 'Welcome to your WordCamp budget, it\'s time to crunch some numbers! When you\'re done with the preliminary budget, hit the "Submit for Approval" button below – a WordCamp deputy will be notified and will review your work. If you\'re having trouble with these numbers, or if you have any questions, don\'t hesitate to reach out to your mentor or Central.', 'wordcamporg' ); ?></p> |
41 | 41 | <?php elseif ( $budget['status'] == 'pending' ) : ?> |
42 | | <p style="max-width: 800px;">This budget has been submitted for approval. You will be notified when it is approved. Or not.</p> |
| 42 | <p style="max-width: 800px;"><?php _e( 'This budget has been submitted for approval. You will be notified when it is approved. Or not.', 'wordcamporg' ); ?></p> |
43 | 43 | <?php elseif ( $budget['status'] == 'approved' && $view == 'approved' ) : ?> |
44 | | <p style="max-width: 800px;">This budget has been approved and can not be modified. Use the working budget if you'd like to play around with numbers.</p> |
| 44 | <p style="max-width: 800px;"><?php _e( 'This budget has been approved and can not be modified. Use the working budget if you\'d like to play around with numbers.', 'wordcamporg' ); ?></p> |
45 | 45 | <?php elseif ( $view == 'working' ) : ?> |
46 | | <p style="max-width: 800px;">Welcome to your working budget. Feel free to play around with numbers here. They will not affect your approved budget.</p> |
| 46 | <p style="max-width: 800px;"><?php _e( 'Welcome to your working budget. Feel free to play around with numbers here. They will not affect your approved budget.', 'wordcamporg' ); ?></p> |
47 | 47 | <?php endif; ?> |
48 | 48 | |
49 | 49 | <div class="left"> |
50 | | <h2>Event Data</h2> |
| 50 | <h2><?php _e( 'Event Data', 'wordcamporg' ); ?></h2> |
51 | 51 | <table class="wcb-budget-container"> |
52 | 52 | <tbody> |
53 | 53 | <tr class="wcb-group-header"> |
54 | | <th style="width: 50%;">Name</th> |
55 | | <th style="width: 50%;">Value</th> |
| 54 | <th style="width: 50%;"><?php _e( 'Name', 'wordcamporg' ); ?></th> |
| 55 | <th style="width: 50%;"><?php _e( 'Value', 'wordcamporg' ); ?></th> |
56 | 56 | </tr> |
57 | 57 | <tr class="wcb-meta-placeholder" style="display: none;"> |
58 | 58 | <td colspan="2"></td> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
61 | 61 | </table> |
62 | 62 | </div> |
63 | 63 | <div class="right"> |
64 | | <h2>Summary</h2> |
| 64 | <h2><?php _e( 'Summary', 'wordcamporg' ); ?></h2> |
65 | 65 | <div class="wcb-summary-placeholder"></div> |
66 | 66 | </div> |
67 | 67 | |
68 | 68 | <div class="clear"></div> |
69 | 69 | |
70 | | <h2>Expenses</h2> |
| 70 | <h2><?php _e( 'Expenses', 'wordcamporg' ); ?></h2> |
71 | 71 | <table class="wcb-budget-container"> |
72 | 72 | <tbody> |
73 | 73 | <tr class="wcb-group-header"> |
74 | | <th style="width: 20%;">Category</th> |
75 | | <th style="width: 40%;">Detail</th> |
76 | | <th style="width: 25%;" class="amount">Amount</th> |
| 74 | <th style="width: 20%;"><?php _e( 'Category', 'wordcamporg' ); ?></th> |
| 75 | <th style="width: 40%;"><?php _e( 'Detail', 'wordcamporg' ); ?></th> |
| 76 | <th style="width: 25%;" class="amount"><?php _e( 'Amount', 'wordcamporg' ); ?></th> |
77 | 77 | <th style="width: 15%;"></th> |
78 | 78 | </tr> |
79 | 79 | |
80 | 80 | <tr class="wcb-expense-placeholder"> |
81 | 81 | <?php if ( $editable ) : ?> |
82 | | <td colspan="4">New Expense Item</td> |
| 82 | <td colspan="4"><?php _e( 'New Expense Item', 'wordcamporg' ); ?></td> |
83 | 83 | <?php endif; ?> |
84 | 84 | </tr> |
85 | 85 | </tbody> |
86 | 86 | </table> |
87 | 87 | |
88 | | <h2>Income</h2> |
| 88 | <h2><?php _e( 'Income', 'wordcamporg' ); ?></h2> |
89 | 89 | <table class="wcb-budget-container"> |
90 | 90 | <tbody> |
91 | 91 | <tr class="wcb-group-header"> |
92 | | <th style="width: 20%;">Category</th> |
93 | | <th style="width: 40%;">Detail</th> |
94 | | <th style="width: 25%;" class="amount">Amount</th> |
| 92 | <th style="width: 20%;"><?php _e( 'Category', 'wordcamporg' ); ?></th> |
| 93 | <th style="width: 40%;"><?php _e( 'Detail', 'wordcamporg' ); ?></th> |
| 94 | <th style="width: 25%;" class="amount"><?php _e( 'Amount', 'wordcamporg' ); ?></th> |
95 | 95 | <th style="width: 15%;"></th> |
96 | 96 | </tr> |
97 | 97 | |
98 | 98 | <tr class="wcb-income-placeholder"> |
99 | 99 | <?php if ( $editable ) : ?> |
100 | | <td colspan="4">New Income Item</td> |
| 100 | <td colspan="4"><?php _e( 'New Income Item', 'wordcamporg' ); ?></td> |
101 | 101 | <?php endif; ?> |
102 | 102 | </tr> |
103 | 103 | </tbody> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
109 | 109 | |
110 | 110 | <?php if ( $budget['status'] == 'draft' ) : ?> |
111 | 111 | <p class="submit"> |
112 | | <?php submit_button( 'Save Draft', 'secondary', 'wcb-budget-save-draft', false ); ?> |
113 | | <?php submit_button( 'Save & Request Review', 'secondary', 'wcb-budget-request-review', false ); ?> |
114 | | <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget' ); ?>" class="button">Cancel Changes</a> |
115 | | <?php submit_button( 'Submit for Approval', 'primary', 'wcb-budget-submit', false ); ?> |
| 112 | <?php submit_button( __( 'Save Draft', 'wordcamporg' ), 'secondary', 'wcb-budget-save-draft', false ); ?> |
| 113 | <?php submit_button( __( 'Save & Request Review', 'wordcamporg' ), 'secondary', 'wcb-budget-request-review', false ); ?> |
| 114 | <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget' ); ?>" class="button"><?php _e( 'Cancel Changes', 'wordcamporg' ); ?></a> |
| 115 | <?php submit_button( __( 'Submit for Approval', 'wordcamporg' ), 'primary', 'wcb-budget-submit', false ); ?> |
116 | 116 | </p> |
117 | 117 | <?php elseif ( $budget['status'] == 'pending' && current_user_can( 'wcb_approve_budget' ) ) : ?> |
118 | 118 | <p class="submit"> |
119 | | <?php submit_button( 'Approve', 'primary', 'wcb-budget-approve', false ); ?> |
120 | | <?php submit_button( 'Reject', 'primary', 'wcb-budget-reject', false ); ?> |
| 119 | <?php submit_button( __( 'Approve', 'wordcamporg' ), 'primary', 'wcb-budget-approve', false ); ?> |
| 120 | <?php submit_button( __( 'Reject', 'wordcamporg' ), 'primary', 'wcb-budget-reject', false ); ?> |
121 | 121 | </p> |
122 | 122 | <?php elseif ( $budget['status'] == 'approved' && $view == 'working' ) : ?> |
123 | 123 | <p class="submit"> |
124 | | <?php submit_button( 'Update Working Budget', 'primary', 'wcb-budget-update-working', false ); ?> |
125 | | <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget&wcb-view=working' ); ?>" class="button">Cancel Changes</a> |
126 | | <?php submit_button( 'Reset to Approved Budget', 'secondary', 'wcb-budget-reset', false ); ?> |
| 124 | <?php submit_button( __( 'Update Working Budget', 'wordcamporg' ), 'primary', 'wcb-budget-update-working', false ); ?> |
| 125 | <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget&wcb-view=working' ); ?>" class="button"><?php _e( 'Cancel Changes', 'wordcamporg' ); ?></a> |
| 126 | <?php submit_button( __( 'Reset to Approved Budget', 'wordcamporg' ), 'secondary', 'wcb-budget-reset', false ); ?> |
127 | 127 | </p> |
128 | 128 | <?php endif; ?> |
129 | 129 | </form> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
136 | 136 | <th style="width: 50%;"></th> |
137 | 137 | </tr> |
138 | 138 | <tr> |
139 | | <td>Income</td> |
| 139 | <td><?php _e( 'Income', 'wordcamporg' ); ?></td> |
140 | 140 | <td class="amount">{{data.income}}</td> |
141 | 141 | </tr> |
142 | 142 | <tr> |
143 | | <td>Expenses</td> |
| 143 | <td><?php _e( 'Expenses', 'wordcamporg' ); ?></td> |
144 | 144 | <td class="amount">{{data.expenses}}</td> |
145 | 145 | </tr> |
146 | 146 | <tr> |
147 | | <td>Variance</td> |
| 147 | <td><?php _e( 'Variance', 'wordcamporg' ); ?></td> |
148 | 148 | <td class="amount <# if (data.variance_raw < 0) { #>wcb-negative<# } #>">{{data.variance}}</td> |
149 | 149 | </tr> |
150 | 150 | <tr> |
151 | | <td>Cost Per Person Per Day</td> |
| 151 | <td><?php _e( 'Cost Per Person Per Day', 'wordcamporg' ); ?></td> |
152 | 152 | <td class="amount">{{data.per_person}}</td> |
153 | 153 | </tr> |
154 | 154 | <tr> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
163 | 163 | <td></td> |
164 | 164 | <td class="amount"> |
165 | 165 | <# if (data.variance_raw < 0) { #> |
166 | | <a href="#" target="_blank" class="inspire">inspire me</a> |
| 166 | <a href="#" target="_blank" class="inspire"><?php _e( 'inspire me', 'wordcamporg' ); ?></a> |
167 | 167 | <# } #> |
168 | 168 | </td> |
169 | 169 | </tr> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
209 | 209 | </td> |
210 | 210 | <# } else { #> |
211 | 211 | <td style="width: 20%"> |
212 | | Income |
| 212 | <?php _e( 'Income', 'wordcamporg' ); ?> |
213 | 213 | <input type="hidden" class="category" value="{{data.category}}" /> |
214 | 214 | </td> |
215 | 215 | <# } #> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
218 | 218 | <# if (data.type == 'expense') { #> |
219 | 219 | {{wcb.categories[data.category]}} |
220 | 220 | <# } else { #> |
221 | | Income |
| 221 | <?php _e( 'Income', 'wordcamporg' ); ?> |
222 | 222 | <# } #> |
223 | 223 | </td> |
224 | 224 | <# } #> |
… |
… |
wcb.editable = <?php echo json_encode( $editable ); ?>; |
274 | 274 | |
275 | 275 | <td style="width: 15%" class="actions"> |
276 | 276 | <# if (wcb.editable) { #> |
277 | | <a href="#" class="move">Move</a> |
278 | | <a href="#" class="delete">Delete</a> |
| 277 | <a href="#" class="move"><?php _e( 'Move', 'wordcamporg' ); ?></a> |
| 278 | <a href="#" class="delete"><?php _e( 'Delete', 'wordcamporg' ); ?></a> |
279 | 279 | <# } #> |
280 | 280 | </td> |
281 | 281 | <# } #> |