Changeset 4967 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/budget-tool/main.php
- Timestamp:
- 02/21/2017 12:03:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/budget-tool/main.php
r3858 r4967 20 20 <?php endif; ?> 21 21 22 <span> Preliminary Budget</span>22 <span><?php esc_html_e( 'Preliminary Budget', 'wordcamporg' ); ?></span> 23 23 </a> 24 24 <?php elseif ( $budget['status'] == 'approved' ) : ?> … … 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 esc_html_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 esc_html_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 esc_html_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>41 42 <p style="max-width: 800px;">This budget has been submitted for approval. You will be notified when it is approved. Or not.</p>43 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>45 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>40 <p style="max-width: 800px;"><?php esc_html_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 <?php elseif ( $budget['status'] == 'pending' ) : ?> 42 <p style="max-width: 800px;"><?php esc_html_e( 'This budget has been submitted for approval. You will be notified when it is reviewed.', 'wordcamporg' ); ?></p> 43 <?php elseif ( $budget['status'] == 'approved' && $view == 'approved' ) : ?> 44 <p style="max-width: 800px;"><?php esc_html_e( "This budget has been approved and cannot be modified. Use the working budget if you'd like to play around with numbers.", 'wordcamporg' ); ?></p> 45 <?php elseif ( $view == 'working' ) : ?> 46 <p style="max-width: 800px;"><?php esc_html_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 esc_html_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 esc_html_e( 'Name', 'wordcamporg' ); ?></th> 55 <th style="width: 50%;"><?php esc_html_e( 'Value', 'wordcamporg' ); ?></th> 56 56 </tr> 57 57 <tr class="wcb-meta-placeholder" style="display: none;"> … … 62 62 </div> 63 63 <div class="right"> 64 <h2> Summary</h2>64 <h2><?php esc_html_e( 'Summary', 'wordcamporg' ); ?></h2> 65 65 <div class="wcb-summary-placeholder"></div> 66 66 </div> … … 68 68 <div class="clear"></div> 69 69 70 <h2> Expenses</h2>70 <h2><?php esc_html_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 esc_html_e( 'Category', 'wordcamporg' ); ?></th> 75 <th style="width: 40%;"><?php esc_html_e( 'Detail', 'wordcamporg' ); ?></th> 76 <th style="width: 25%;" class="amount"><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></th> 77 77 <th style="width: 15%;"></th> 78 78 </tr> … … 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 esc_html_e( 'New Expense Item', 'wordcamporg' ); ?></td> 83 83 <?php endif; ?> 84 84 </tr> … … 86 86 </table> 87 87 88 <h2> Income</h2>88 <h2><?php esc_html_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 esc_html_e( 'Category', 'wordcamporg' ); ?></th> 93 <th style="width: 40%;"><?php esc_html_e( 'Detail', 'wordcamporg' ); ?></th> 94 <th style="width: 25%;" class="amount"><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></th> 95 95 <th style="width: 15%;"></th> 96 96 </tr> … … 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 esc_html_e( 'New Income Item', 'wordcamporg' ); ?></td> 101 101 <?php endif; ?> 102 102 </tr> … … 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( esc_html__( 'Save Draft', 'wordcamporg' ), 'secondary', 'wcb-budget-save-draft', false ); ?> 113 <?php submit_button( esc_html__( '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 esc_html_e( 'Cancel Changes', 'wordcamporg' ); ?></a> 115 <?php submit_button( esc_html__( '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( esc_html__( 'Approve', 'wordcamporg' ), 'primary', 'wcb-budget-approve', false ); ?> 120 <?php submit_button( esc_html__( '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( esc_html__( '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 esc_html_e( 'Cancel Changes', 'wordcamporg' ); ?></a> 126 <?php submit_button( esc_html__( 'Reset to Approved Budget', 'wordcamporg' ), 'secondary', 'wcb-budget-reset', false ); ?> 127 127 </p> 128 128 <?php endif; ?> … … 137 137 </tr> 138 138 <tr> 139 <td> Income</td>139 <td><?php esc_html_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 esc_html_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 esc_html_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 esc_html_e( 'Cost Per Person Per Day', 'wordcamporg' ); ?></td> 152 152 <td class="amount">{{data.per_person}}</td> 153 153 </tr> … … 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 esc_html_e( 'inspire me', 'wordcamporg' ); ?></a> 167 167 <# } #> 168 168 </td> … … 210 210 <# } else { #> 211 211 <td style="width: 20%"> 212 Income212 <?php esc_html_e( 'Income', 'wordcamporg' ); ?> 213 213 <input type="hidden" class="category" value="{{data.category}}" /> 214 214 </td> … … 219 219 {{wcb.categories[data.category]}} 220 220 <# } else { #> 221 Income221 <?php esc_html_e( 'Income', 'wordcamporg' ); ?> 222 222 <# } #> 223 223 </td> … … 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 esc_html_e( 'Move', 'wordcamporg' ); ?></a> 278 <a href="#" class="delete"><?php esc_html_e( 'Delete', 'wordcamporg' ); ?></a> 279 279 <# } #> 280 280 </td>
Note: See TracChangeset
for help on using the changeset viewer.