コード例 #1
0
</li>
                          <?php 
            }
            ?>
      
                          <?php 
            if (has_permission('delete any survey')) {
                ?>
                          <?php 
                $class = 'danger';
                ?>
                          <?php 
                $class .= !$survey_entity->status_allows('delete any survey') ? ' disabled' : '';
                ?>
                          <li><?php 
                echo anchor_csrf($survey_entity->get_url_delete(), 'Delete', array('class' => $class, 'data-confirm-action' => 'Are you sure you want to delete: <em>' . $survey_entity->title . '</em>?'));
                ?>
</li>
                          <?php 
            }
            ?>
                        </ul>
                      </li>
                    </ul>
                    <?php 
        }
        ?>
                    
                  </td>
                </tr>
                <?php 
コード例 #2
0
                          <?php 
            if (has_permission('edit any account')) {
                ?>
                          <li><?php 
                echo anchor($user_entity->get_url_edit(), 'Modify');
                ?>
</li>
                          <?php 
            }
            ?>
      
                          <?php 
            if (has_permission('delete any account')) {
                ?>
                          <li><?php 
                echo anchor_csrf($user_entity->get_url_delete(), 'Delete', array('class' => 'danger', 'data-confirm-action' => 'Are you sure you want to delete: <em>' . $user_entity->name . '</em>?'));
                ?>
</li>
                          <?php 
            }
            ?>
                        </ul>
                      </li>
                    </ul>
                    <?php 
        }
        ?>
                    
                  </td>
                </tr>
                <?php 
コード例 #3
0
        ?>
</td>
                    <td>
                      <ul class="bttn-toolbar">
                        <li>
                          <a href="#" class="bttn bttn-primary bttn-small bttn-dropdown bttn-icon-edit" data-dropdown="action-bttn">Edit</a>
                          <ul class="action-dropdown for-bttn-small">
                            <?php 
        $class = 'danger';
        $activity = $resp->get_activity();
        if (!empty($activity) || !$survey->status_allows('delete respondents any survey')) {
            $class .= ' disabled';
        }
        ?>
                            <li><?php 
        echo anchor_csrf($resp->get_url_delete(), 'Delete', array('class' => $class, 'data-confirm-action' => 'Are you sure?'));
        ?>
</li>
                          </ul>
                        </li>
                      </ul>
                    </td>
                  </tr>
                <?php 
    }
    ?>
                </tbody>
              </table>
              <?php 
    echo form_button(array('type' => 'submit', 'name' => 'respondent-delete', 'id' => 'respondent-delete', 'value' => 'respondent-delete', 'class' => 'hide', 'content' => 'Delete'));
    ?>
コード例 #4
0
                    <a href="#" class="bttn bttn-default-light bttn-small bttn-dropdown <?php 
        echo $survey->get_status_html_class();
        ?>
 <?php 
        echo empty($available_statuses) ? 'disabled' : '';
        ?>
" data-dropdown="action-bttn"><?php 
        echo $survey->get_status_label();
        ?>
</a>
                    <ul class="action-dropdown for-bttn-small">
                      <?php 
        foreach ($available_statuses as $status_code) {
            ?>
                      <li><?php 
            echo anchor_csrf($survey->get_url_change_status($status_code), Survey_entity::status_label($status_code), array('class' => Survey_entity::status_html_class($status_code), 'data-confirm-action' => "Status changes are irreversible. Are you sure you want to change the status to <em>" . Survey_entity::status_label($status_code) . "</em>?", 'data-confirm-title' => "Change survey status"));
            ?>
</li>
                      <?php 
        }
        ?>
                    </ul>
                  </li>
                </ul>
              </div>
            </article>
            <?php 
    }
    ?>
            
            <?php